Skip to content

Commit

Permalink
small improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
xpenatan committed Dec 6, 2023
1 parent 56c6264 commit 824ba7c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ private static ArrayList<TeaVMResourceProperties> getAllProperties(ArrayList<URL
ArrayList<String> filteredUrl = new ArrayList<>();
for(URL url : acceptedURL) {
String path = url.getPath();
path = URLDecoder.decode(path, StandardCharsets.UTF_8);
boolean accept = !(
!(path.endsWith(".jar")) ||
path.contains("org.teavm"
Expand All @@ -133,7 +134,7 @@ private static ArrayList<TeaVMResourceProperties> getAllProperties(ArrayList<URL

private static TeaVMResourceProperties getProperties(String path) {
try {
try(ZipFile zipFile = new ZipFile(URLDecoder.decode(path, StandardCharsets.UTF_8))) {
try(ZipFile zipFile = new ZipFile(path)) {
ZipEntry propertyEntry = zipFile.getEntry("META-INF/gdx-teavm.properties");
if(propertyEntry != null) {
InputStream inputStream = zipFile.getInputStream(propertyEntry);
Expand Down

0 comments on commit 824ba7c

Please sign in to comment.