Skip to content

Commit c1b89c9

Browse files
committed
make some methods private (already in a final class)
1 parent 2bcecb6 commit c1b89c9

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1871,7 +1871,7 @@ int read() throws IOException {
18711871
* @return the read string (length may be smaller if EOF is encountered)
18721872
* @throws IOException in case of io problems
18731873
*/
1874-
protected String nextContent(final int len) throws IOException {
1874+
String nextContent(final int len) throws IOException {
18751875
final int originalOffset = offset_;
18761876
final int originalColumnNumber = getColumnNumber();
18771877
final int originalCharacterOffset = getCharacterOffset();
@@ -1902,7 +1902,7 @@ protected String nextContent(final int len) throws IOException {
19021902
}
19031903

19041904
// Reads a single character, preserving the old buffer content
1905-
protected int readPreservingBufferContent() throws IOException {
1905+
private int readPreservingBufferContent() throws IOException {
19061906
if (DEBUG_BUFFER) {
19071907
debugBufferIfNeeded("(readPreserving: ");
19081908
}
@@ -2028,7 +2028,7 @@ int getCharacterOffset() {
20282028

20292029
// Returns true if the specified text is present (case-insensitive) and is skipped.
20302030
// for performance reasons you have to provide the specified text in uppercase
2031-
protected boolean skip(final String expectedInUpperCase) throws IOException {
2031+
private boolean skip(final String expectedInUpperCase) throws IOException {
20322032
final int length = expectedInUpperCase != null ? expectedInUpperCase.length() : 0;
20332033
for (int i = 0; i < length; i++) {
20342034
if (offset_ == length_) {
@@ -2049,7 +2049,7 @@ protected boolean skip(final String expectedInUpperCase) throws IOException {
20492049
}
20502050

20512051
// Skips markup.
2052-
protected boolean skipMarkup(final boolean balance) throws IOException {
2052+
private boolean skipMarkup(final boolean balance) throws IOException {
20532053
if (DEBUG_BUFFER) {
20542054
debugBufferIfNeeded("(skipMarkup: ");
20552055
}
@@ -2103,7 +2103,7 @@ else if (c == '\r' || c == '\n') {
21032103
}
21042104

21052105
// Skips whitespace.
2106-
protected boolean skipSpaces() throws IOException {
2106+
private boolean skipSpaces() throws IOException {
21072107
if (DEBUG_BUFFER) {
21082108
debugBufferIfNeeded("(skipSpaces: ");
21092109
}
@@ -2139,7 +2139,7 @@ else if (Character.isWhitespace(c)) {
21392139
}
21402140

21412141
// Skips newlines and returns the number of newlines skipped.
2142-
protected int skipNewlines() throws IOException {
2142+
private int skipNewlines() throws IOException {
21432143
if (DEBUG_BUFFER) {
21442144
debugBufferIfNeeded("(skipNewlines: ");
21452145
}

0 commit comments

Comments
 (0)