checkstyle corrections

Former-commit-id: 0fd9070170429a79aa7efdd9c7c5d85e88e8a10f
This commit is contained in:
Jeremy Long
2015-05-10 08:19:02 -04:00
parent 0d0de4d5b3
commit 31022ea8de

View File

@@ -155,18 +155,20 @@ public class PomHandler extends DefaultHandler {
model.setParentVersion(currentText.toString());
}
} else if (LICENSE.equals(parentNode)) {
if (license == null) {
if (license != null) {
if (NAME.equals(qName)) {
license.setName(currentText.toString());
} else if (URL.equals(qName)) {
license.setUrl(currentText.toString());
}
//} else {
//TODO add error logging
} else if (NAME.equals(qName)) {
license.setName(currentText.toString());
} else if (URL.equals(qName)) {
license.setUrl(currentText.toString());
}
} else if (LICENSES.equals(parentNode)) {
if (LICENSE.equals(qName)) {
if (license != null) {
model.addLicense(license);
} else {
//} else {
//TODO add error logging
}
}