Skip to content

Commit 1f1a58c

Browse files
committed
Specify type parameter in test
1 parent e410f02 commit 1f1a58c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

java/ql/test/query-tests/security/CWE-089/semmle/examples/AllowListSanitizerWithJavaUtilList.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ private static void testMultipleSources(String[] args) throws IOException, SQLEx
278278
}
279279
}
280280

281-
private static void possiblyMutate(List list) {
281+
private static void possiblyMutate(List<String> list) {
282282
list.add(getNonConstantString());
283283
}
284284

java/ql/test/query-tests/security/CWE-089/semmle/examples/AllowListSanitizerWithJavaUtilSet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ private static void testMultipleSources(String[] args) throws IOException, SQLEx
277277
}
278278
}
279279

280-
private static void possiblyMutate(Set set) {
280+
private static void possiblyMutate(Set<String> set) {
281281
set.add(getNonConstantString());
282282
}
283283

0 commit comments

Comments
 (0)