Skip to content

Commit 708085c

Browse files
committed
javadoc fixes
1 parent f4a14ad commit 708085c

3 files changed

Lines changed: 14 additions & 18 deletions

File tree

src/main/java/org/htmlunit/cyberneko/HTMLScanner.java

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ public class HTMLScanner implements XMLDocumentSource, XMLLocator, HTMLComponent
419419
/** Error reporter. */
420420
protected HTMLErrorReporter fErrorReporter;
421421

422-
/** Error reporter. */
422+
/** Encoding translator. */
423423
protected EncodingTranslator fEncodingTranslator;
424424

425425
/** Doctype declaration public identifier. */
@@ -488,14 +488,10 @@ public class HTMLScanner implements XMLDocumentSource, XMLLocator, HTMLComponent
488488
*/
489489
protected final SpecialScanner fSpecialScanner = new SpecialScanner();
490490

491-
/**
492-
* Special scanner used script tags.
493-
*/
491+
/** Special scanner used script tags. */
494492
protected final ScriptScanner fScriptScanner = new ScriptScanner();
495493

496-
/**
497-
* Special scanner used script tags.
498-
*/
494+
/** Special scanner used for plaintext content. */
499495
protected final PlainTextScanner fPlainTextScanner = new PlainTextScanner();
500496

501497
// temp vars
@@ -1652,7 +1648,7 @@ public interface Scanner {
16521648
* @param complete True if the scanner should not return until scanning is
16531649
* complete.
16541650
*
1655-
* @return True if additional scanning is required.
1651+
* @return One of SCAN_TRUE, SCAN_EOF, or SCAN_FALSE indicating the scanning result.
16561652
*
16571653
* @throws IOException Thrown if I/O error occurs.
16581654
*/
@@ -2503,11 +2499,11 @@ private void eof() {
25032499
}
25042500

25052501
/**
2506-
* Scans the content of <noscript&gr;: it doesn't get parsed but is considered as
2507-
* plain text when feature {@link HTMLScanner#PARSE_NOSCRIPT_CONTENT} is set to
2508-
* false.
2502+
* Scans the content of <noscript> <noframes>, <noembed&get;, and <iframe>
2503+
* it doesn't get parsed but is considered as plain text
2504+
* when feature {@link HTMLScanner#PARSE_NOSCRIPT_CONTENT} is set to false.
25092505
*
2510-
* @param tagName the tag for which content is scanned (one of "/noscript",
2506+
* @param tagNameWithLeadingSlash the tag for which content is scanned (one of "/noscript",
25112507
* "/noframes", "/noembed", "/iframe")
25122508
* @throws IOException on error
25132509
*/
@@ -2969,7 +2965,7 @@ else if (c == '>') {
29692965
*
29702966
* @param empty Is used for a second return value to indicate whether the start
29712967
* element tag is empty (e.g. "/>").
2972-
* @return ename
2968+
* @return One of SCAN_TRUE, SCAN_FALSE, or SCAN_EOF.
29732969
* @throws IOException in case of io problems
29742970
*/
29752971
protected int scanStartElement(final boolean[] empty) throws IOException {

src/main/java/org/htmlunit/cyberneko/SynthesizedItem.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public boolean isSynthesized() {
9090
}
9191

9292
/**
93-
* Save to return this instance because it does not have state
93+
* Safe to return this instance because it does not have state
9494
*
9595
* @return this instance
9696
*/

src/main/java/org/htmlunit/cyberneko/xerces/xni/XMLString.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ public int hashCode() {
804804
* represented by two UTF-16 code points.
805805
*
806806
* @param codePoint The character value.
807-
* @return this instance for fluid programming
807+
* @return true if the code point was valid and appended, false if a replacement character was used instead
808808
*
809809
* @throws IllegalArgumentException if the specified
810810
* {@code codePoint} is not a valid Unicode code point.
@@ -886,7 +886,7 @@ public XMLString toUpperCase(final Locale locale) {
886886
* This lowercases an XMLString in place and will likely not
887887
* consume extra memory unless the character might grow. This
888888
* conversion can be incorrect for certain characters from some
889-
* locales. See {@link String#toUpperCase()}.
889+
* locales. See {@link String#toLowerCase()}.
890890
*
891891
* <p>Note: We change the current XMLString and don't get a copy back
892892
* but this instance.
@@ -1121,7 +1121,7 @@ public void ignorableWhitespace(final ContentHandler contentHandler) throws SAXE
11211121
public void comment(final LexicalHandler lexicalHandler) throws SAXException {
11221122
lexicalHandler.comment(data_, 0, length_);
11231123
}
1124-
1124+
11251125
/**
11261126
* Returns true if the first {@code prefix.length()} chars of this buffer
11271127
* match {@code prefix} case-insensitively, where {@code prefix} is assumed
@@ -1142,7 +1142,7 @@ public boolean startsWithLowerCase(final String lowercasePrefix) {
11421142
}
11431143
return true;
11441144
}
1145-
1145+
11461146
/**
11471147
* Returns the char at {@code index}, or {@code defaultChar} if index is
11481148
* out of bounds.

0 commit comments

Comments
 (0)