mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-02-25 11:55:21 +01:00
fixed reported bug
Former-commit-id: a60403eea234dd78663314c9405c6629d60fa5ae
This commit is contained in:
@@ -63,7 +63,8 @@ public class JarAnalyzerTest {
|
|||||||
instance.analyze(result);
|
instance.analyze(result);
|
||||||
boolean found = false;
|
boolean found = false;
|
||||||
for (Evidence e : result.getProductEvidence()) {
|
for (Evidence e : result.getProductEvidence()) {
|
||||||
if (e.getName().equals("package-title") && e.getValue().equals("org.mortbay.http")) {
|
if (e.getName().equalsIgnoreCase("package-title")
|
||||||
|
&& e.getValue().equalsIgnoreCase("org.mortbay.http")) {
|
||||||
found = true;
|
found = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -72,7 +73,8 @@ public class JarAnalyzerTest {
|
|||||||
|
|
||||||
found = false;
|
found = false;
|
||||||
for (Evidence e : result.getVendorEvidence()) {
|
for (Evidence e : result.getVendorEvidence()) {
|
||||||
if (e.getName().equals("implementation-url") && e.getValue().equals("http://jetty.mortbay.org")) {
|
if (e.getName().equalsIgnoreCase("implementation-url")
|
||||||
|
&& e.getValue().equalsIgnoreCase("http://jetty.mortbay.org")) {
|
||||||
found = true;
|
found = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -81,7 +83,8 @@ public class JarAnalyzerTest {
|
|||||||
|
|
||||||
found = false;
|
found = false;
|
||||||
for (Evidence e : result.getVersionEvidence()) {
|
for (Evidence e : result.getVersionEvidence()) {
|
||||||
if (e.getName().equals("Implementation-Version") && e.getValue().equals("4.2.27")) {
|
if (e.getName().equalsIgnoreCase("Implementation-Version")
|
||||||
|
&& e.getValue().equalsIgnoreCase("4.2.27")) {
|
||||||
found = true;
|
found = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user