File tree Expand file tree Collapse file tree
src/main/java/org/apache/commons/io/input Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ private String readLine() { //NOPMD Bug in PMD
203203 break ; // skip last few bytes and leave it to the next file part
204204 }
205205
206- // --- check for newline ---
206+ // check for newline
207207 if ((newLineMatchByteCount = getNewLineMatchByteCount (data , i )) > 0 /* found newline */ ) {
208208 final int lineStart = i + 1 ;
209209 final int lineLengthBytes = currentLastBytePos - lineStart + 1 ;
@@ -219,17 +219,17 @@ private String readLine() { //NOPMD Bug in PMD
219219 break ; // found line
220220 }
221221
222- // --- move cursor ---
222+ // move cursor
223223 i -= byteDecrement ;
224224
225- // --- end of file part handling ---
225+ // end of file part handling
226226 if (i < 0 ) {
227227 createLeftOver ();
228228 break ; // end of file part
229229 }
230230 }
231231
232- // --- last file part handling ---
232+ // last file part handling
233233 if (isLastFilePart && leftOver != null ) {
234234 // there will be no line break anymore, this is the first line of the file
235235 line = new String (leftOver , charset );
You can’t perform that action at this time.
0 commit comments