Skip to content

Commit

Permalink
Rename ForJava9AndLater to ForJava10AndLater to match the actual meaning
Browse files Browse the repository at this point in the history
Signed-off-by: Sven Strickroth <[email protected]>
  • Loading branch information
csware committed Aug 21, 2024
1 parent f729a08 commit a685b02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import java.util.*;

@SuppressWarnings("Since15") // We're compiling two versions to handle @since problems.
final class ForJava9AndLater extends Java8Shim {
final class ForJava10AndLater extends Java8Shim {

@Override public <T> List<T> listOf() {
return List.of();
Expand Down
4 changes: 2 additions & 2 deletions java8-shim/src/main/java/org/owasp/shim/Java8Shim.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ public abstract class Java8Shim {
Object _instance;
try {
try {
// This is compiled with -release 1.9 in a separate project.
_instance = Class.forName("org.owasp.shim.ForJava9AndLater").newInstance();
// This is compiled with -release 1.10 in a separate project.
_instance = Class.forName("org.owasp.shim.ForJava10AndLater").newInstance();
} catch (Error e) {
// This is co-located with this project and is a fall-back.
_instance = Class.forName("org.owasp.shim.ForJava8").newInstance();
Expand Down

0 comments on commit a685b02

Please sign in to comment.