@@ -51,8 +51,8 @@ public class Test {
51
51
<K , V > K getMapKey (Map <K , V > container ) { return container .keySet ().iterator ().next (); }
52
52
<K , V > V getMapValue (Map <K , V > container ) { return container .get (null ); }
53
53
Object [] newWithArrayElement (Object element ) { return new Object [] {element }; }
54
- Properties newPropertiesWithMapKey (Object element ) { Properties p = new Properties (); p .put (element , null ); return p ; }
55
- Properties newPropertiesWithMapValue (Object element ) { Properties p = new Properties (); p .put (null , element ); return p ; }
54
+ Properties newPropertiesWithMapKey (Object element ) { Properties p = new Properties (); p .put (element , null ); return p ; }
55
+ Properties newPropertiesWithMapValue (Object element ) { Properties p = new Properties (); p .put (null , element ); return p ; }
56
56
static Object source () { return null ; }
57
57
static void sink (Object o ) { }
58
58
@@ -68,14 +68,14 @@ public void test() throws Exception {
68
68
sink (out .get ("someKey" )); // $hasTaintFlow
69
69
}
70
70
{
71
- // "org.springframework.util;AntPathMatcher;false;tokenizePath;;;Argument[0];ArrayValue of ReturnValue;taint",
71
+ // "org.springframework.util;AntPathMatcher;false;tokenizePath;;;Argument[0];ArrayValue of ReturnValue;taint",
72
72
String [] out = null ;
73
73
String in = (String )source ();
74
74
out = this .tokenizePath (in );
75
75
sink (out [0 ]); // $hasTaintFlow
76
76
}
77
77
{
78
- // "org.springframework.util;AntPathMatcher;false;tokenizePattern;;;Argument[0];ArrayValue of ReturnValue;taint",
78
+ // "org.springframework.util;AntPathMatcher;false;tokenizePattern;;;Argument[0];ArrayValue of ReturnValue;taint",
79
79
String [] out = null ;
80
80
String in = (String )source ();
81
81
out = this .tokenizePattern (in );
@@ -298,7 +298,7 @@ public void test() throws Exception {
298
298
// "org.springframework.util;CollectionUtils;false;unmodifiableMultiValueMap;;;MapValue of Argument[0];MapValue of ReturnValue;value"
299
299
MultiValueMap <Object , Object > out = null ;
300
300
MultiValueMap in = new LinkedMultiValueMap ();
301
- in .put (null , source ());
301
+ in .put (null , source ());
302
302
out = CollectionUtils .unmodifiableMultiValueMap (in );
303
303
sink (getMapValue (out )); // $hasValueFlow
304
304
}
@@ -313,7 +313,7 @@ public void test() throws Exception {
313
313
// "org.springframework.util;CompositeIterator;false;next;;;Element of Argument[-1];ReturnValue;value"
314
314
Object out = null ;
315
315
CompositeIterator in = new CompositeIterator ();
316
- in .add (List .of (source ()).iterator ());
316
+ in .add (List .of (source ()).iterator ());
317
317
out = in .next ();
318
318
sink (out ); // $hasValueFlow
319
319
}
@@ -1061,7 +1061,7 @@ public void test() throws Exception {
1061
1061
sink (out ); // $hasTaintFlow
1062
1062
}
1063
1063
{
1064
- // "org.springframework.util;StringUtils;false;arrayToCommaDelimitedString;;;ArrayElement of Argument[0];ReturnValue;taint",
1064
+ // "org.springframework.util;StringUtils;false;arrayToCommaDelimitedString;;;ArrayElement of Argument[0];ReturnValue;taint",
1065
1065
String out = null ;
1066
1066
Object [] in = { source () };
1067
1067
out = StringUtils .arrayToCommaDelimitedString (in );
@@ -1075,7 +1075,7 @@ public void test() throws Exception {
1075
1075
sink (out ); // $hasTaintFlow
1076
1076
}
1077
1077
{
1078
- // "org.springframework.util;StringUtils;false;arrayToDelimitedString;;;ArrayElement of Argument[0];ReturnValue;taint",
1078
+ // "org.springframework.util;StringUtils;false;arrayToDelimitedString;;;ArrayElement of Argument[0];ReturnValue;taint",
1079
1079
String out = null ;
1080
1080
Object [] in = { source () };
1081
1081
out = StringUtils .arrayToDelimitedString (in , null );
@@ -1278,14 +1278,14 @@ public void test() throws Exception {
1278
1278
sink (getArrayElement (out )); // $hasTaintFlow
1279
1279
}
1280
1280
{
1281
- // "org.springframework.util;StringUtils;false;splitArrayElementsIntoProperties;;;ArrayElement of Argument[0];MapKey of ReturnValue;taint",
1281
+ // "org.springframework.util;StringUtils;false;splitArrayElementsIntoProperties;;;ArrayElement of Argument[0];MapKey of ReturnValue;taint",
1282
1282
Properties out = null ;
1283
1283
String [] in = { (String )source () };
1284
1284
out = StringUtils .splitArrayElementsIntoProperties (in , null , null );
1285
1285
sink (getMapKey (out )); // $hasTaintFlow
1286
1286
}
1287
1287
{
1288
- // "org.springframework.util;StringUtils;false;splitArrayElementsIntoProperties;;;ArrayElement of Argument[0];MapValue of ReturnValue;taint",
1288
+ // "org.springframework.util;StringUtils;false;splitArrayElementsIntoProperties;;;ArrayElement of Argument[0];MapValue of ReturnValue;taint",
1289
1289
Properties out = null ;
1290
1290
String [] in = { (String )source () };
1291
1291
out = StringUtils .splitArrayElementsIntoProperties (in , null , null );
@@ -1306,14 +1306,14 @@ public void test() throws Exception {
1306
1306
sink (out ); // $hasTaintFlow
1307
1307
}
1308
1308
{
1309
- // "org.springframework.util;StringUtils;false;toStringArray;;;Element of Argument[0];ArrayElement of ReturnValue;value",
1309
+ // "org.springframework.util;StringUtils;false;toStringArray;;;Element of Argument[0];ArrayElement of ReturnValue;value",
1310
1310
String [] out = null ;
1311
1311
Enumeration in = Collections .enumeration (List .of (source ()));;
1312
1312
out = StringUtils .toStringArray (in );
1313
1313
sink (getArrayElement (out )); // $hasValueFlow
1314
1314
}
1315
1315
{
1316
- // "org.springframework.util;StringUtils;false;toStringArray;;;Element of Argument[0];ArrayElement of ReturnValue;value",
1316
+ // "org.springframework.util;StringUtils;false;toStringArray;;;Element of Argument[0];ArrayElement of ReturnValue;value",
1317
1317
String [] out = null ;
1318
1318
Collection in = List .of (source ());
1319
1319
out = StringUtils .toStringArray (in );
0 commit comments