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

Method finishLine

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

Called when a line is complete.

(boolean sawNewline)

Source from the content-addressed store, hash-verified

85
86 /** Called when a line is complete. */
87 @CanIgnoreReturnValue
88 private boolean finishLine(boolean sawNewline) throws IOException {
89 String separator = sawReturn
90 ? (sawNewline ? "\r\n" : "\r")
91 : (sawNewline ? "\n" : "");
92 handleLine(line.toString(), separator);
93 line = new StringBuilder();
94 sawReturn = false;
95 return sawNewline;
96 }
97
98 /**
99 * Subclasses must call this method after finishing character processing, in order to ensure that

Callers 2

addMethod · 0.95
finishMethod · 0.95

Calls 2

handleLineMethod · 0.95
toStringMethod · 0.65

Tested by

no test coverage detected