Skip to content

Commit

Permalink
Make code style conform to standards
Browse files Browse the repository at this point in the history
  • Loading branch information
ufolr committed Apr 17, 2020
1 parent 07a731b commit 9837838
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ public CharSequence subSequence(final int beginIndex, final int endIndex) {
if (beginIndex > endIndex) {
throw new IndexOutOfBoundsException("beginIndex: " + beginIndex + " > endIndex: " + endIndex);
}
CharArrayBuffer charArrayBuffer = new CharArrayBuffer(endIndex - beginIndex);
final CharArrayBuffer charArrayBuffer = new CharArrayBuffer(endIndex - beginIndex);
charArrayBuffer.append(array, beginIndex, endIndex-beginIndex);
return charArrayBuffer;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.nio.charset.StandardCharsets;

import org.junit.Assert;
import org.junit.Test;

Expand Down Expand Up @@ -413,7 +412,7 @@ public void testSubSequence() {
public void testSubSequenceReturnType(){
final CharArrayBuffer buffer = new CharArrayBuffer(16);
buffer.append("SubSequence return the same class type as original");
CharSequence cs = buffer.subSequence(23, 27);
final CharSequence cs = buffer.subSequence(23, 27);
Assert.assertTrue(cs instanceof CharArrayBuffer);
}

Expand Down

0 comments on commit 9837838

Please sign in to comment.