Skip to content

Commit c1e5f3c

Browse files
authored
Merge pull request #8 from oracle-devrel/presentest
Update JarFileLoader.java
2 parents d9d6ca2 + a3138f5 commit c1e5f3c

File tree

1 file changed

+2
-2
lines changed
  • dependencyanalyser/src/main/java/com/oracle/timg/demo/dependencyanalyser/importers

1 file changed

+2
-2
lines changed

dependencyanalyser/src/main/java/com/oracle/timg/demo/dependencyanalyser/importers/JarFileLoader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public JarTree loadDependencyTree(File sourceFile, File origionalSourceFile) thr
108108
// if we loaded the jar details then we will use them later, but if we didn't
109109
// then fall back to trying to get them from the pom
110110
if (jarFileIdentifiedJarVerion == null) {
111-
if (pomXMLEntry.isEmpty()) {
111+
if (!pomXMLEntry.isPresent()) {
112112
throw new JarFIleProcessorException("Unfortunately jar file " + sourceFile.getPath()
113113
+ " does not containe a usable pom.properties file or pom.xml file, cannot process this jar file");
114114
}
@@ -131,7 +131,7 @@ public JarTree loadDependencyTree(File sourceFile, File origionalSourceFile) thr
131131
}
132132
// have to check for the pom file directly as we may have gotten the info from
133133
// the pom.properties file
134-
if (pomXMLEntry.isEmpty()) {
134+
if (!pomXMLEntry.isPresent()) {
135135
throw new JarFIleProcessorException("Unfortunately jar file " + sourceFile.getPath()
136136
+ " does not containe a pom.xml file, cannot process this jar file");
137137
}

0 commit comments

Comments
 (0)