patch for issue #34 - hibernate3.jar no longer reports cpe:/a:jboss:jboss

Former-commit-id: e67337af94b3b83cae112f10beed5020540c6440
This commit is contained in:
Jeremy Long
2014-02-13 20:51:54 -05:00
parent c45ff40250
commit 11d7d25037

View File

@@ -285,6 +285,9 @@ public class FalsePositiveAnalyzer extends AbstractAnalyzer {
} else if (i.getValue().startsWith("cpe:/a:m-core:m-core")
&& !dependency.getEvidenceUsed().containsUsedString("m-core")) {
itr.remove();
} else if (i.getValue().startsWith("cpe:/a:jboss:jboss")
&& !dependency.getFileName().toLowerCase().matches("jboss-[\\d\\.]+(GA)?\\.jar")) {
itr.remove();
}
}
}