diff --git a/src/main/java/org/htmlunit/cyberneko/HTMLScanner.java b/src/main/java/org/htmlunit/cyberneko/HTMLScanner.java index 9fdb793e..09f74008 100644 --- a/src/main/java/org/htmlunit/cyberneko/HTMLScanner.java +++ b/src/main/java/org/htmlunit/cyberneko/HTMLScanner.java @@ -2128,9 +2128,9 @@ else if (c == '/') { if ("script".equals(enameLC)) { if (!fAllowSelfclosingScript_) { - setScanner(fScriptScanner); - setScannerState(STATE_CONTENT); - return true; + setScanner(fScriptScanner); + setScannerState(STATE_CONTENT); + return true; } } else if (!fAllowSelfclosingTags_ && !fAllowSelfclosingIframe_ && "iframe".equals(enameLC)) { @@ -2571,7 +2571,7 @@ protected boolean scanCDataContent(final XMLString xmlString) throws IOException } break; } - else if (fCDATAEarlyClosing_&& c == '>') { + else if (fCDATAEarlyClosing_ && c == '>') { // don't add the ]] to the buffer return false; } diff --git a/src/main/java/org/htmlunit/cyberneko/HTMLTagBalancer.java b/src/main/java/org/htmlunit/cyberneko/HTMLTagBalancer.java index 6d97aaed..5a1dafa1 100644 --- a/src/main/java/org/htmlunit/cyberneko/HTMLTagBalancer.java +++ b/src/main/java/org/htmlunit/cyberneko/HTMLTagBalancer.java @@ -1017,7 +1017,7 @@ public void characters(final XMLString text, final Augmentations augs) throws XN // strange code but it is worth the price int whitespace = -1; if (fElementStack.top < 2 || endElementsBuffer_.size() == 1) { - whitespace = text.isWhitespace() ? 1: 0; + whitespace = text.isWhitespace() ? 1 : 0; if (whitespace == 1) { // ignore spaces directly within return; diff --git a/src/main/java/org/htmlunit/cyberneko/html/dom/HTMLElementImpl.java b/src/main/java/org/htmlunit/cyberneko/html/dom/HTMLElementImpl.java index 69eb89ec..b13bde51 100644 --- a/src/main/java/org/htmlunit/cyberneko/html/dom/HTMLElementImpl.java +++ b/src/main/java/org/htmlunit/cyberneko/html/dom/HTMLElementImpl.java @@ -201,7 +201,7 @@ String capitalize(final String value) { if (value.length() > 0) { final char[] chars = value.toCharArray(); chars[0] = Character.toUpperCase(chars[0]); - for (int i=1; i < chars.length; ++i) { + for (int i = 1; i < chars.length; ++i) { chars[i] = Character.toLowerCase(chars[i]); } return String.valueOf(chars); diff --git a/src/main/java/org/htmlunit/cyberneko/xerces/xni/XMLDocumentHandler.java b/src/main/java/org/htmlunit/cyberneko/xerces/xni/XMLDocumentHandler.java index c9d7965f..dfe8760b 100644 --- a/src/main/java/org/htmlunit/cyberneko/xerces/xni/XMLDocumentHandler.java +++ b/src/main/java/org/htmlunit/cyberneko/xerces/xni/XMLDocumentHandler.java @@ -188,4 +188,5 @@ void startDocument(XMLLocator locator, String encoding, NamespaceContext namespa void setDocumentSource(XMLDocumentSource source); /** @return the document source. */ - XMLDocumentSource getDocumentSource();} + XMLDocumentSource getDocumentSource(); +} diff --git a/src/test/java/org/htmlunit/cyberneko/Writer.java b/src/test/java/org/htmlunit/cyberneko/Writer.java index 98e2ebe6..361e1669 100644 --- a/src/test/java/org/htmlunit/cyberneko/Writer.java +++ b/src/test/java/org/htmlunit/cyberneko/Writer.java @@ -219,7 +219,7 @@ public void startElement(final QName element, final XMLAttributes attrs, final A out_.print(' '); print(attrs.getValue(aname)); - if(anamesNonNormalized[i] != null && !anamesNonNormalized[i].equals(attrs.getValue(aname))) { + if (anamesNonNormalized[i] != null && !anamesNonNormalized[i].equals(attrs.getValue(aname))) { out_.print(" / "); out_.print(anamesNonNormalized[i]); }