@@ -1787,19 +1787,19 @@ void testPerformance2()
17871787 }
17881788
17891789 @ Test
1790- void testComputeIfAbsent () {
1791- CaseInsensitiveMap <String , String > map = new CaseInsensitiveMap <>();
1792- map .put ("One" , "Two" );
1793- map .put ("Three" , "Four" );
1794-
1795- // Key present, should not overwrite
1796- map .computeIfAbsent ("oNe" , k -> "NotUsed" );
1797- assertEquals ("Two" , map .get ("one" ));
1798-
1799- // Key absent, should add
1800- map .computeIfAbsent ("fIvE" , k -> "Six" );
1801- assertEquals ("Six" , map .get ("five" ));
1802- }
1790+ void testComputeIfAbsent () {
1791+ CaseInsensitiveMap <String , String > map = new CaseInsensitiveMap <>();
1792+ map .put ("One" , "Two" );
1793+ map .put ("Three" , "Four" );
1794+
1795+ // Key present, should not overwrite
1796+ map .computeIfAbsent ("oNe" , k -> "NotUsed" );
1797+ assertEquals ("Two" , map .get ("one" ));
1798+
1799+ // Key absent, should add
1800+ map .computeIfAbsent ("fIvE" , k -> "Six" );
1801+ assertEquals ("Six" , map .get ("five" ));
1802+ }
18031803
18041804 @ Test
18051805 void testComputeIfPresent () {
0 commit comments