Skip to content

Commit 68171e2

Browse files
committed
Target Java 17 for snapshots
1 parent 7ef4fe0 commit 68171e2

31 files changed

Lines changed: 276 additions & 277 deletions

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ project(":scip-snapshots") {
471471
rootProject.layout.projectDirectory.dir("scip-snapshots/expected/kotlin/common").asFile.absolutePath,
472472
"snapshot.case.kotlin-common.targetroot" to kotlinTargetroot.get().asFile.absolutePath,
473473
"snapshot.case.kotlin-common.aggregateNoEmitInverseRelationships" to "true",
474-
"scip.jdk.version" to "11",
474+
"scip.jdk.version" to "17",
475475
)
476476

477477
tasks.named<Test>("test") {

scip-snapshots/expected/java/common/scip-snapshots/cases/java/common/src/main/java/minimized/AbstractClasses.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public abstract class AbstractClasses {
1414
// > public AbstractClasses()
1515
// ⌄ enclosing_range_start scip-java maven . . minimized/AbstractClasses#defaultImplementation().
1616
public String defaultImplementation() {
17-
// ^^^^^^ reference scip-java maven jdk 11 java/lang/String#
17+
// ^^^^^^ reference scip-java maven jdk 17 java/lang/String#
1818
// ^^^^^^^^^^^^^^^^^^^^^ definition scip-java maven . . minimized/AbstractClasses#defaultImplementation().
1919
// kind Method
2020
// display_name defaultImplementation
@@ -26,7 +26,7 @@ public String defaultImplementation() {
2626

2727
// ⌄ enclosing_range_start scip-java maven . . minimized/AbstractClasses#abstractImplementation().
2828
public abstract String abstractImplementation();
29-
// ^^^^^^ reference scip-java maven jdk 11 java/lang/String#
29+
// ^^^^^^ reference scip-java maven jdk 17 java/lang/String#
3030
// ^^^^^^^^^^^^^^^^^^^^^^ definition scip-java maven . . minimized/AbstractClasses#abstractImplementation().
3131
// kind AbstractMethod
3232
// display_name abstractImplementation

scip-snapshots/expected/java/common/scip-snapshots/cases/java/common/src/main/java/minimized/AnnotationParameters.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// display_name Bar
88
// signature_documentation
99
// > @interface Bar
10-
// relationship scip-java maven jdk 11 java/lang/annotation/Annotation# implementation
10+
// relationship scip-java maven jdk 17 java/lang/annotation/Annotation# implementation
1111
// ⌄ enclosing_range_start scip-java maven . . minimized/Bar#value().
1212
double value();
1313
// ^^^^^ definition scip-java maven . . minimized/Bar#value().
@@ -26,7 +26,7 @@
2626
// display_name BarB
2727
// signature_documentation
2828
// > @interface BarB
29-
// relationship scip-java maven jdk 11 java/lang/annotation/Annotation# implementation
29+
// relationship scip-java maven jdk 17 java/lang/annotation/Annotation# implementation
3030
// ⌄ enclosing_range_start scip-java maven . . minimized/BarB#value().
3131
boolean value();
3232
// ^^^^^ definition scip-java maven . . minimized/BarB#value().
@@ -45,10 +45,10 @@
4545
// display_name Nullable
4646
// signature_documentation
4747
// > @interface Nullable
48-
// relationship scip-java maven jdk 11 java/lang/annotation/Annotation# implementation
48+
// relationship scip-java maven jdk 17 java/lang/annotation/Annotation# implementation
4949
// ⌄ enclosing_range_start scip-java maven . . minimized/Nullable#value().
5050
String value() default "";
51-
// ^^^^^^ reference scip-java maven jdk 11 java/lang/String#
51+
// ^^^^^^ reference scip-java maven jdk 17 java/lang/String#
5252
// ^^^^^ definition scip-java maven . . minimized/Nullable#value().
5353
// kind AbstractMethod
5454
// display_name value
@@ -66,10 +66,10 @@
6666
// display_name BarRef
6767
// signature_documentation
6868
// > @interface BarRef
69-
// relationship scip-java maven jdk 11 java/lang/annotation/Annotation# implementation
69+
// relationship scip-java maven jdk 17 java/lang/annotation/Annotation# implementation
7070
// ⌄ enclosing_range_start scip-java maven . . minimized/BarRef#value().
7171
SuppressWarnings value();
72-
// ^^^^^^^^^^^^^^^^ reference scip-java maven jdk 11 java/lang/SuppressWarnings#
72+
// ^^^^^^^^^^^^^^^^ reference scip-java maven jdk 17 java/lang/SuppressWarnings#
7373
// ^^^^^ definition scip-java maven . . minimized/BarRef#value().
7474
// kind AbstractMethod
7575
// display_name value
@@ -102,8 +102,8 @@ interface Foo {
102102
@Bar(~5)
103103
// ^^^ reference scip-java maven . . minimized/Bar#
104104
@SuppressWarnings(value = "unchecked")
105-
// ^^^^^^^^^^^^^^^^ reference scip-java maven jdk 11 java/lang/SuppressWarnings#
106-
// ^^^^^ reference scip-java maven jdk 11 java/lang/SuppressWarnings#value().
105+
// ^^^^^^^^^^^^^^^^ reference scip-java maven jdk 17 java/lang/SuppressWarnings#
106+
// ^^^^^ reference scip-java maven jdk 17 java/lang/SuppressWarnings#value().
107107
double test2();
108108
// ^^^^^ definition scip-java maven . . minimized/Foo#test2().
109109
// kind AbstractMethod
@@ -163,8 +163,8 @@ interface TestRef {
163163
// ⌄ enclosing_range_start scip-java maven . . minimized/TestRef#testCase().
164164
@BarRef(@SuppressWarnings(value = "unchecked"))
165165
// ^^^^^^ reference scip-java maven . . minimized/BarRef#
166-
// ^^^^^^^^^^^^^^^^ reference scip-java maven jdk 11 java/lang/SuppressWarnings#
167-
// ^^^^^ reference scip-java maven jdk 11 java/lang/SuppressWarnings#value().
166+
// ^^^^^^^^^^^^^^^^ reference scip-java maven jdk 17 java/lang/SuppressWarnings#
167+
// ^^^^^ reference scip-java maven jdk 17 java/lang/SuppressWarnings#value().
168168
abstract double testCase();
169169
// ^^^^^^^^ definition scip-java maven . . minimized/TestRef#testCase().
170170
// kind AbstractMethod

scip-snapshots/expected/java/common/scip-snapshots/cases/java/common/src/main/java/minimized/Annotations.java

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,52 +4,52 @@
44
// ^^^^ reference scip-java maven . . java/
55
// ^^^^ reference scip-java maven . . java/lang/
66
// ^^^^^^^^^^ reference scip-java maven . . java/lang/annotation/
7-
// ^^^^^^^^^^ reference scip-java maven jdk 11 java/lang/annotation/Documented#
7+
// ^^^^^^^^^^ reference scip-java maven jdk 17 java/lang/annotation/Documented#
88
import java.lang.annotation.Retention;
99
// ^^^^ reference scip-java maven . . java/
1010
// ^^^^ reference scip-java maven . . java/lang/
1111
// ^^^^^^^^^^ reference scip-java maven . . java/lang/annotation/
12-
// ^^^^^^^^^ reference scip-java maven jdk 11 java/lang/annotation/Retention#
12+
// ^^^^^^^^^ reference scip-java maven jdk 17 java/lang/annotation/Retention#
1313
import java.lang.annotation.RetentionPolicy;
1414
// ^^^^ reference scip-java maven . . java/
1515
// ^^^^ reference scip-java maven . . java/lang/
1616
// ^^^^^^^^^^ reference scip-java maven . . java/lang/annotation/
17-
// ^^^^^^^^^^^^^^^ reference scip-java maven jdk 11 java/lang/annotation/RetentionPolicy#
17+
// ^^^^^^^^^^^^^^^ reference scip-java maven jdk 17 java/lang/annotation/RetentionPolicy#
1818
import java.lang.annotation.Target;
1919
// ^^^^ reference scip-java maven . . java/
2020
// ^^^^ reference scip-java maven . . java/lang/
2121
// ^^^^^^^^^^ reference scip-java maven . . java/lang/annotation/
22-
// ^^^^^^ reference scip-java maven jdk 11 java/lang/annotation/Target#
22+
// ^^^^^^ reference scip-java maven jdk 17 java/lang/annotation/Target#
2323

2424
import static java.lang.annotation.ElementType.*;
2525
// ^^^^ reference scip-java maven . . java/
2626
// ^^^^ reference scip-java maven . . java/lang/
2727
// ^^^^^^^^^^ reference scip-java maven . . java/lang/annotation/
28-
// ^^^^^^^^^^^ reference scip-java maven jdk 11 java/lang/annotation/ElementType#
28+
// ^^^^^^^^^^^ reference scip-java maven jdk 17 java/lang/annotation/ElementType#
2929

3030
//⌄ enclosing_range_start scip-java maven . . minimized/Annotations#
3131
@Documented
32-
// ^^^^^^^^^^ reference scip-java maven jdk 11 java/lang/annotation/Documented#
32+
// ^^^^^^^^^^ reference scip-java maven jdk 17 java/lang/annotation/Documented#
3333
@Retention(RetentionPolicy.RUNTIME)
34-
// ^^^^^^^^^ reference scip-java maven jdk 11 java/lang/annotation/Retention#
35-
// ^^^^^^^^^^^^^^^ reference scip-java maven jdk 11 java/lang/annotation/RetentionPolicy#
36-
// ^^^^^^^ reference scip-java maven jdk 11 java/lang/annotation/RetentionPolicy#RUNTIME.
34+
// ^^^^^^^^^ reference scip-java maven jdk 17 java/lang/annotation/Retention#
35+
// ^^^^^^^^^^^^^^^ reference scip-java maven jdk 17 java/lang/annotation/RetentionPolicy#
36+
// ^^^^^^^ reference scip-java maven jdk 17 java/lang/annotation/RetentionPolicy#RUNTIME.
3737
@Target(value = {CONSTRUCTOR,
38-
// ^^^^^^ reference scip-java maven jdk 11 java/lang/annotation/Target#
39-
// ^^^^^ reference scip-java maven jdk 11 java/lang/annotation/Target#value().
40-
// ^^^^^^^^^^^ reference scip-java maven jdk 11 java/lang/annotation/ElementType#CONSTRUCTOR.
38+
// ^^^^^^ reference scip-java maven jdk 17 java/lang/annotation/Target#
39+
// ^^^^^ reference scip-java maven jdk 17 java/lang/annotation/Target#value().
40+
// ^^^^^^^^^^^ reference scip-java maven jdk 17 java/lang/annotation/ElementType#CONSTRUCTOR.
4141
FIELD,
42-
// ^^^^^ reference scip-java maven jdk 11 java/lang/annotation/ElementType#FIELD.
42+
// ^^^^^ reference scip-java maven jdk 17 java/lang/annotation/ElementType#FIELD.
4343
LOCAL_VARIABLE,
44-
// ^^^^^^^^^^^^^^ reference scip-java maven jdk 11 java/lang/annotation/ElementType#LOCAL_VARIABLE.
44+
// ^^^^^^^^^^^^^^ reference scip-java maven jdk 17 java/lang/annotation/ElementType#LOCAL_VARIABLE.
4545
METHOD,
46-
// ^^^^^^ reference scip-java maven jdk 11 java/lang/annotation/ElementType#METHOD.
46+
// ^^^^^^ reference scip-java maven jdk 17 java/lang/annotation/ElementType#METHOD.
4747
PACKAGE,
48-
// ^^^^^^^ reference scip-java maven jdk 11 java/lang/annotation/ElementType#PACKAGE.
48+
// ^^^^^^^ reference scip-java maven jdk 17 java/lang/annotation/ElementType#PACKAGE.
4949
PARAMETER,
50-
// ^^^^^^^^^ reference scip-java maven jdk 11 java/lang/annotation/ElementType#PARAMETER.
50+
// ^^^^^^^^^ reference scip-java maven jdk 17 java/lang/annotation/ElementType#PARAMETER.
5151
TYPE}
52-
// ^^^^ reference scip-java maven jdk 11 java/lang/annotation/ElementType#TYPE.
52+
// ^^^^ reference scip-java maven jdk 17 java/lang/annotation/ElementType#TYPE.
5353
)
5454
public @interface Annotations {
5555
// ^^^^^^^^^^^ definition scip-java maven . . minimized/Annotations#
@@ -60,11 +60,11 @@
6060
// > @Retention(RetentionPolicy.RUNTIME)
6161
// > @Target({CONSTRUCTOR, FIELD, LOCAL_VARIABLE, METHOD, PACKAGE, PARAMETER, TYPE})
6262
// > public @interface Annotations
63-
// relationship scip-java maven jdk 11 java/lang/annotation/Annotation# implementation
63+
// relationship scip-java maven jdk 17 java/lang/annotation/Annotation# implementation
6464

6565
// ⌄ enclosing_range_start scip-java maven . . minimized/Annotations#value().
6666
String value() default "";
67-
// ^^^^^^ reference scip-java maven jdk 11 java/lang/String#
67+
// ^^^^^^ reference scip-java maven jdk 17 java/lang/String#
6868
// ^^^^^ definition scip-java maven . . minimized/Annotations#value().
6969
// kind AbstractMethod
7070
// display_name value
@@ -74,7 +74,7 @@
7474

7575
// ⌄ enclosing_range_start scip-java maven . . minimized/Annotations#format().
7676
String format() default "";
77-
// ^^^^^^ reference scip-java maven jdk 11 java/lang/String#
77+
// ^^^^^^ reference scip-java maven jdk 17 java/lang/String#
7878
// ^^^^^^ definition scip-java maven . . minimized/Annotations#format().
7979
// kind AbstractMethod
8080
// display_name format

0 commit comments

Comments
 (0)