Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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