mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-18 07:14:09 +01:00
changed nested ifs to avoid checkstyle complaint
Former-commit-id: ed48131125733c56cf48a817425abdb2ca117ef6
This commit is contained in:
@@ -73,22 +73,22 @@ public class VulnerableSoftware extends IndexEntry implements Serializable, Comp
|
|||||||
if (cpeName != null && cpeName.length() > 7) {
|
if (cpeName != null && cpeName.length() > 7) {
|
||||||
final String[] data = cpeName.substring(7).split(":");
|
final String[] data = cpeName.substring(7).split(":");
|
||||||
if (data.length >= 1) {
|
if (data.length >= 1) {
|
||||||
this.setVendor(URLDecoder.decode(data[0].replace("+", "%2B"), "UTF-8")); //.replaceAll("[_-]", " ")
|
this.setVendor(URLDecoder.decode(data[0].replace("+", "%2B"), "UTF-8"));
|
||||||
|
}
|
||||||
if (data.length >= 2) {
|
if (data.length >= 2) {
|
||||||
this.setProduct(URLDecoder.decode(data[1].replace("+", "%2B"), "UTF-8")); //.replaceAll("[_-]", " ")
|
this.setProduct(URLDecoder.decode(data[1].replace("+", "%2B"), "UTF-8"));
|
||||||
|
}
|
||||||
if (data.length >= 3) {
|
if (data.length >= 3) {
|
||||||
version = URLDecoder.decode(data[2].replace("+", "%2B"), "UTF-8");
|
version = URLDecoder.decode(data[2].replace("+", "%2B"), "UTF-8");
|
||||||
|
}
|
||||||
if (data.length >= 4) {
|
if (data.length >= 4) {
|
||||||
revision = URLDecoder.decode(data[3].replace("+", "%2B"), "UTF-8");
|
revision = URLDecoder.decode(data[3].replace("+", "%2B"), "UTF-8");
|
||||||
|
}
|
||||||
if (data.length >= 5) {
|
if (data.length >= 5) {
|
||||||
edition = URLDecoder.decode(data[4].replace("+", "%2B"), "UTF-8");
|
edition = URLDecoder.decode(data[4].replace("+", "%2B"), "UTF-8");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* If present, indicates that previous version are vulnerable.
|
* If present, indicates that previous version are vulnerable.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user