Skip to content

Commit

Permalink
Use JDK 23 for compilation (and a few other plugins), while keeping o…
Browse files Browse the repository at this point in the history
…verrides in place for a few others.

(For more detail on the other plugins, see cl/655647768.)

RELNOTES=n/a
PiperOrigin-RevId: 681043097
  • Loading branch information
cpovirk authored and Google Java Core Libraries committed Oct 1, 2024
1 parent 7c0bf08 commit f358c05
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ public String toString() {

assertEquals("StringWrapper.andThen(string2long)", converter.toString());

assertEquals(first.andThen(STR_TO_LONG), first.andThen(STR_TO_LONG));
new EqualsTester()
.addEqualityGroup(first.andThen(STR_TO_LONG), first.andThen(STR_TO_LONG))
.testEquals();
}

@GwtIncompatible // J2CL generics problem
Expand Down
8 changes: 4 additions & 4 deletions android/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
<path>
<groupId>com.google.errorprone</groupId>
<artifactId>error_prone_core</artifactId>
<version>2.23.0</version>
<version>2.33.0</version>
</path>
</annotationProcessorPaths>
<!-- Fork because we need args like add-exports. (But see the TODO above about .mvn/jvm.config.) -->
Expand Down Expand Up @@ -206,14 +206,14 @@
</configuration>
</execution>
<execution>
<id>download-22-and-surefire-version</id>
<id>download-23-and-surefire-version</id>
<goals>
<goal>toolchain</goal>
</goals>
<configuration>
<toolchains>
<jdk>
<version>22</version>
<version>23</version>
<vendor>zulu</vendor>
</jdk>
<testJdk>
Expand All @@ -238,7 +238,7 @@
<configuration>
<toolchains>
<jdk>
<version>22</version>
<version>23</version>
<vendor>zulu</vendor>
</jdk>
</toolchains>
Expand Down
4 changes: 3 additions & 1 deletion guava-tests/test/com/google/common/base/ConverterTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ public String toString() {

assertEquals("StringWrapper.andThen(string2long)", converter.toString());

assertEquals(first.andThen(STR_TO_LONG), first.andThen(STR_TO_LONG));
new EqualsTester()
.addEqualityGroup(first.andThen(STR_TO_LONG), first.andThen(STR_TO_LONG))
.testEquals();
}

@GwtIncompatible // J2CL generics problem
Expand Down
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
<path>
<groupId>com.google.errorprone</groupId>
<artifactId>error_prone_core</artifactId>
<version>2.23.0</version>
<version>2.33.0</version>
</path>
</annotationProcessorPaths>
<!-- Fork because we need args like add-exports. (But see the TODO above about .mvn/jvm.config.) -->
Expand Down Expand Up @@ -207,14 +207,14 @@
</configuration>
</execution>
<execution>
<id>download-22-and-surefire-version</id>
<id>download-23-and-surefire-version</id>
<goals>
<goal>toolchain</goal>
</goals>
<configuration>
<toolchains>
<jdk>
<version>22</version>
<version>23</version>
<vendor>zulu</vendor>
</jdk>
<testJdk>
Expand All @@ -239,7 +239,7 @@
<configuration>
<toolchains>
<jdk>
<version>22</version>
<version>23</version>
<vendor>zulu</vendor>
</jdk>
</toolchains>
Expand Down

0 comments on commit f358c05

Please sign in to comment.