diff options
| author | 2021-03-20 13:43:44 +0100 | |
|---|---|---|
| committer | 2021-03-20 12:43:44 +0000 | |
| commit | 84897eab4b02a7283e1617623744a98675baacb3 (patch) | |
| tree | 3c532648f6a2dbc1115ac02e6401eafe92ca2ebe | |
| parent | Merge pull request #358 from Juuxel/flatlaf (diff) | |
| download | enigma-84897eab4b02a7283e1617623744a98675baacb3.tar.gz enigma-84897eab4b02a7283e1617623744a98675baacb3.tar.xz enigma-84897eab4b02a7283e1617623744a98675baacb3.zip | |
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
| -rw-r--r-- | enigma/src/main/java/cuchaz/enigma/translation/representation/entry/ClassEntry.java | 2 |
1 files changed, 1 insertions, 1 deletions
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 b4a22f1e..47319e0d 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<ClassEntry> implements Comparable< | |||
| 174 | 174 | ||
| 175 | public boolean isJre() { | 175 | public boolean isJre() { |
| 176 | String packageName = getPackageName(); | 176 | String packageName = getPackageName(); |
| 177 | return packageName != null && (packageName.startsWith("java") || packageName.startsWith("javax")); | 177 | return packageName != null && (packageName.startsWith("java/") || packageName.startsWith("javax/")); |
| 178 | } | 178 | } |
| 179 | 179 | ||
| 180 | public static String getPackageName(String name) { | 180 | public static String getPackageName(String name) { |