Skip to content
Snippets Groups Projects
Commit 1534625b authored by Andreas Romeyke's avatar Andreas Romeyke
Browse files

- increased readability of encapsulated if-then

parent 269f1c08
Branches
Tags
No related merge requests found
......@@ -375,9 +375,10 @@ public class SLUBXmlFormatValidationPlugin implements FormatValidationPlugin {
private ValidationSchemaType checkIfDtdIsApplicable(Document doc) {
ValidationSchemaType result = ValidationSchemaType.nothing;
var info = getXMLinfo(doc);
if (null != info.systemID && info.systemID.endsWith(".dtd")) {
if (null != info.systemID) {
if (info.systemID.endsWith(".dtd")) {
result = ValidationSchemaType.dtd;
} else if (null != info.systemID) {
}
if (debug) {
System.out.println("no dtd applicable");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment