MCPcopy Create free account
hub / github.com/antlr/codebuff / finish

Method finish

corpus/java/training/guava/io/LineBuffer.java:104–108  ·  view source on GitHub ↗

Subclasses must call this method after finishing character processing, in order to ensure that any unterminated line in the buffer is passed to #handleLine. @throws IOException if an I/O error occurs

()

Source from the content-addressed store, hash-verified

102 * @throws IOException if an I/O error occurs
103 */
104 protected void finish() throws IOException {
105 if (sawReturn || line.length() > 0) {
106 finishLine(false);
107 }
108 }
109
110 /**
111 * Called for each line found in the character data passed to {@link #add}.

Callers 2

readLineMethod · 0.45
hashCodeMethod · 0.45

Calls 2

finishLineMethod · 0.95
lengthMethod · 0.45

Tested by

no test coverage detected