mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-21 00:29:21 +01:00
checkstyle corrections
Former-commit-id: 0fd9070170429a79aa7efdd9c7c5d85e88e8a10f
This commit is contained in:
@@ -155,18 +155,20 @@ public class PomHandler extends DefaultHandler {
|
|||||||
model.setParentVersion(currentText.toString());
|
model.setParentVersion(currentText.toString());
|
||||||
}
|
}
|
||||||
} else if (LICENSE.equals(parentNode)) {
|
} else if (LICENSE.equals(parentNode)) {
|
||||||
if (license == null) {
|
if (license != null) {
|
||||||
//TODO add error logging
|
if (NAME.equals(qName)) {
|
||||||
} else if (NAME.equals(qName)) {
|
|
||||||
license.setName(currentText.toString());
|
license.setName(currentText.toString());
|
||||||
} else if (URL.equals(qName)) {
|
} else if (URL.equals(qName)) {
|
||||||
license.setUrl(currentText.toString());
|
license.setUrl(currentText.toString());
|
||||||
}
|
}
|
||||||
|
//} else {
|
||||||
|
//TODO add error logging
|
||||||
|
}
|
||||||
} else if (LICENSES.equals(parentNode)) {
|
} else if (LICENSES.equals(parentNode)) {
|
||||||
if (LICENSE.equals(qName)) {
|
if (LICENSE.equals(qName)) {
|
||||||
if (license != null) {
|
if (license != null) {
|
||||||
model.addLicense(license);
|
model.addLicense(license);
|
||||||
} else {
|
//} else {
|
||||||
//TODO add error logging
|
//TODO add error logging
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user