From 84897eab4b02a7283e1617623744a98675baacb3 Mon Sep 17 00:00:00 2001 From: Geolykt Date: Sat, 20 Mar 2021 13:43:44 +0100 Subject: Less strict JRE check (#362) Resolves #353 The issue here lies in that this changes the behaviour of the code by quite a bit, so alternatively the irrelevant javax check could be dropped, which would optimize the code only slightly--- .../java/cuchaz/enigma/translation/representation/entry/ClassEntry.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'enigma/src/main/java') diff --git a/enigma/src/main/java/cuchaz/enigma/translation/representation/entry/ClassEntry.java b/enigma/src/main/java/cuchaz/enigma/translation/representation/entry/ClassEntry.java index b4a22f1..47319e0 100644 --- a/enigma/src/main/java/cuchaz/enigma/translation/representation/entry/ClassEntry.java +++ b/enigma/src/main/java/cuchaz/enigma/translation/representation/entry/ClassEntry.java @@ -174,7 +174,7 @@ public class ClassEntry extends ParentedEntry implements Comparable< public boolean isJre() { String packageName = getPackageName(); - return packageName != null && (packageName.startsWith("java") || packageName.startsWith("javax")); + return packageName != null && (packageName.startsWith("java/") || packageName.startsWith("javax/")); } public static String getPackageName(String name) { -- cgit v1.2.3