Skip to content

Commit

Permalink
Fix sonarqube fails 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Dang Ly committed Feb 1, 2024
1 parent 324ffa0 commit 5d54d9a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/com/rapiddweller/common/BeanUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -1476,8 +1476,7 @@ private static void findClassesInNestedJar(String path, String packagePath, List
String outerJarFilePath = jarPathList.get(0).substring(5);
String nestedJarEntryName = jarPathList.get(1);

try {
JarFile outerJarFile = new JarFile(outerJarFilePath);
try (JarFile outerJarFile = new JarFile(outerJarFilePath)) {
JarEntry nestedJarEntry = outerJarFile.getJarEntry(nestedJarEntryName);

if (nestedJarEntry != null) {
Expand Down

0 comments on commit 5d54d9a

Please sign in to comment.