Skip to content

Commit e6e8074

Browse files
committed
Removed an unused constructor in ExtendedBufferedReader
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1199761 13f79535-47bb-0310-9956-ffa450edef68
1 parent 5f1aa66 commit e6e8074

2 files changed

Lines changed: 10 additions & 35 deletions

File tree

src/main/java/org/apache/commons/csv/ExtendedBufferedReader.java

Lines changed: 10 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*/
17+
1718
package org.apache.commons.csv;
1819

1920
import java.io.BufferedReader;
@@ -32,28 +33,21 @@
3233
*/
3334
class ExtendedBufferedReader extends BufferedReader {
3435

35-
36-
/**
37-
* the end of stream symbol
38-
*/
36+
/** The end of stream symbol */
3937
public static final int END_OF_STREAM = -1;
40-
/**
41-
* undefined state for the lookahead char
42-
*/
38+
39+
/** Undefined state for the lookahead char */
4340
public static final int UNDEFINED = -2;
4441

45-
/**
46-
* the lookahead chars
47-
*/
42+
/** The lookahead chars */
4843
private int lookaheadChar = UNDEFINED;
49-
/**
50-
* the last char returned
51-
*/
44+
45+
/** The last char returned */
5246
private int lastChar = UNDEFINED;
53-
/**
54-
* the line counter
55-
*/
47+
48+
/** The line counter */
5649
private int lineCounter = 0;
50+
5751
private CharBuffer line = new CharBuffer();
5852

5953
/**
@@ -66,16 +60,6 @@ public ExtendedBufferedReader(Reader r) {
6660
*/
6761
}
6862

69-
/**
70-
* Create extended buffered reader using the given buffer-size
71-
*/
72-
public ExtendedBufferedReader(Reader r, int bufSize) {
73-
super(r, bufSize);
74-
/* note uh: do not fetch the first char here,
75-
* because this might block the method!
76-
*/
77-
}
78-
7963
/**
8064
* Reads the next char from the input stream.
8165
*

src/test/java/org/apache/commons/csv/ExtendedBufferedReaderTest.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,6 @@
2626
*/
2727
public class ExtendedBufferedReaderTest extends TestCase {
2828

29-
// ======================================================
30-
// the test cases
31-
// ======================================================
32-
33-
public void testConstructors() {
34-
ExtendedBufferedReader br = new ExtendedBufferedReader(new StringReader(""));
35-
br = new ExtendedBufferedReader(new StringReader(""), 10);
36-
}
37-
3829
public void testReadLookahead1() throws Exception {
3930

4031
assertEquals(ExtendedBufferedReader.END_OF_STREAM, getEBR("").read());

0 commit comments

Comments
 (0)