Skip to content

Commit a0615c6

Browse files
committed
Inline single-use local variable
1 parent d23f3e9 commit a0615c6

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/main/java/org/apache/commons/io/input/CharSequenceReader.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,14 +298,13 @@ private int start() {
298298
}
299299

300300
/**
301-
* Return a String representation of the underlying
301+
* Gets a String representation of the underlying
302302
* character sequence.
303303
*
304304
* @return The contents of the character sequence
305305
*/
306306
@Override
307307
public String toString() {
308-
final CharSequence subSequence = charSequence.subSequence(start(), end());
309-
return subSequence.toString();
308+
return charSequence.subSequence(start(), end()).toString();
310309
}
311310
}

0 commit comments

Comments
 (0)