File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
main/java/com/fortify/ssc/parser/owasp/dependencycheck/domain
test/java/com/fortify/ssc/parser/owasp/dependencycheck Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1+ * .gitignore. *
Original file line number Diff line number Diff line change @@ -44,8 +44,7 @@ public final String getFilePathOrName() {
4444 }
4545
4646 public final String getDependencyIdentifier () {
47- return StringUtils .defaultIfBlank (sha256 ,
48- StringUtils .defaultIfBlank (sha1 ,
49- StringUtils .defaultIfBlank (md5 , getFilePathOrName ())));
47+ return getFilePathOrName () + "-" + StringUtils .defaultIfBlank (sha256 ,
48+ StringUtils .defaultIfBlank (sha1 , md5 ));
5049 }
5150}
Original file line number Diff line number Diff line change 4444
4545class OWASPDependencyCheckParserPluginTest {
4646 private static final String [] SAMPLE_FILES = {
47- // "dependency-check-report-java.json",
48- // "dependency-check-report-php.json",
47+ "dependency-check-report-java.json" ,
48+ "dependency-check-report-php.json" ,
4949 "dependency-check-report-with-npm.json" ,
50+ //"dependency-check-report.gitignore.json"
5051 };
5152
5253 private final ScanData getScanData (final String fileName ) {
You can’t perform that action at this time.
0 commit comments