Skip to content

Commit 70aa490

Browse files
authored
Merge pull request #14503 from smowton/smowton/admin/adapt-tests-to-jdk21
Java: Adapt tests to JDK21
2 parents 15afc3e + 3145c53 commit 70aa490

File tree

6 files changed

+9
-4
lines changed

6 files changed

+9
-4
lines changed

java/ql/test/kotlin/library-tests/java-kotlin-collection-type-generic-methods/test.expected

+4
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ methodWithDuplicate
165165
| List | add | int |
166166
| List | addAll | Collection<? extends E> |
167167
| List | addAll | int |
168+
| List | addFirst | E |
169+
| List | addLast | E |
168170
| List | contains | Object |
169171
| List | containsAll | Collection<?> |
170172
| List | copyOf | Collection<? extends E> |
@@ -213,6 +215,8 @@ methodWithDuplicate
213215
| List<String> | add | int |
214216
| List<String> | addAll | Collection<? extends String> |
215217
| List<String> | addAll | int |
218+
| List<String> | addFirst | String |
219+
| List<String> | addLast | String |
216220
| List<String> | contains | Object |
217221
| List<String> | containsAll | Collection<?> |
218222
| List<String> | copyOf | Collection<? extends E> |
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
//semmle-extractor-options: --javac-args -cp ${testdir}/../../../stubs/apache-commons-collections4-4.4
1+
//semmle-extractor-options: --javac-args -cp ${testdir}/../../../stubs/apache-commons-collections4-4.4 --release 11

java/ql/test/library-tests/sensitive-actions/test.expected

-2
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,3 @@ sensitiveDataMethod
6767
| Test.java:37:18:37:31 | aaCryptAccntaa |
6868
| Test.java:39:18:39:33 | aaCryptTrustedaa |
6969
| Test.java:41:18:41:40 | aaCryptRefreshaaTokenaa |
70-
| file:///modules/java.base/java/lang/invoke/MemberName.class:0:0:0:0 | isTrustedFinalField |
71-
| file:///modules/java.base/java/lang/reflect/Field.class:0:0:0:0 | isTrustedFinal |

java/ql/test/library-tests/sensitive-actions/test.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ query predicate sensitiveVariable(Variable v) {
99
v.getName().regexpMatch(getCommonSensitiveInfoRegex())
1010
}
1111

12-
query predicate sensitiveDataMethod(SensitiveDataMethod m) { any() }
12+
query predicate sensitiveDataMethod(SensitiveDataMethod m) { m.fromSource() }

java/ql/test/library-tests/types/record-classes/RecordClasses.ql

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import java
22

33
from Record r, boolean isFinal, boolean isStatic, string superTypes
44
where
5+
r.fromSource() and
56
(if r.isFinal() then isFinal = true else isFinal = false) and
67
(if r.isStatic() then isStatic = true else isStatic = false) and
78
superTypes = concat(RefType superType | superType = r.getASupertype() | superType.toString(), ",")

java/ql/test/stubs/apache-mina-sshd-2.8.0/org/apache/sshd/common/util/threads/CloseableExecutorService.java

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)