Skip to content
Merged
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 @@ -219,8 +219,10 @@ protected Properties getPom() throws IOException {
return null;
}
Properties props = new Properties();
props.load(jarFile.getInputStream(jarEntry));
pom = props;
try (InputStream in = jarFile.getInputStream(jarEntry)) {
props.load(in);
pom = props;
}
}
}
return pom;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ public static ClassLoader getInstance(
}

private static void includeEmbeddedExtensionsIfFound(List<URL> extensions, File javaagentFile) {
try {
JarFile jarFile = new JarFile(javaagentFile, false);
try (JarFile jarFile = new JarFile(javaagentFile, false)) {
Enumeration<JarEntry> entryEnumeration = jarFile.entries();
String prefix = "extensions/";
File tempDirectory = null;
Expand Down
Loading