Skip to content

Commit 660f37a

Browse files
committed
@OverRide + Javadoc
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@1298215 13f79535-47bb-0310-9956-ffa450edef68
1 parent 194e21c commit 660f37a

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,9 @@ char charAt(int pos) {
184184
* Converts the contents of the buffer into a StringBuffer.
185185
* This method involves copying the new data once!
186186
*
187-
* @return
187+
* @return the contents of the character buffer as a String
188188
*/
189+
@Override
189190
public String toString() {
190191
return new String(c, 0, length);
191192
}

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ class ExtendedBufferedReader extends BufferedReader {
6565
*
6666
* @return the next char or END_OF_STREAM if end of stream has been reached.
6767
*/
68+
@Override
6869
public int read() throws IOException {
6970
// initialize the lookahead
7071
if (lookaheadChar == UNDEFINED) {
@@ -103,6 +104,7 @@ int readAgain() {
103104
*
104105
* @return nof chars actually read or END_OF_STREAM
105106
*/
107+
@Override
106108
public int read(char[] buf, int off, int len) throws IOException {
107109
// do not claim if len == 0
108110
if (len == 0) {
@@ -145,6 +147,7 @@ public int read(char[] buf, int off, int len) throws IOException {
145147
* including any line-termination characters, or null
146148
* if the end of the stream has been reached
147149
*/
150+
@Override
148151
public String readLine() throws IOException {
149152

150153
if (lookaheadChar == UNDEFINED) {
@@ -186,6 +189,7 @@ public String readLine() throws IOException {
186189
/**
187190
* Unsupported
188191
*/
192+
@Override
189193
public long skip(long n) throws IllegalArgumentException, IOException {
190194
throw new UnsupportedOperationException("CSV has no reason to implement this");
191195
}
@@ -216,8 +220,10 @@ int getLineNumber() {
216220
}
217221

218222
/**
219-
* Unsupported
223+
* Unsupported.
224+
* @throws UnsupportedOperationException if invoked
220225
*/
226+
@Override
221227
public boolean markSupported() {
222228
throw new UnsupportedOperationException("CSV has no reason to implement this");
223229
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class UnicodeUnescapeReader extends Reader {
3838
this.reader = new PushbackReader(reader, sequence.length);
3939
}
4040

41+
@Override
4142
public int read(char[] cbuf, int off, int len) throws IOException {
4243
int count = 0;
4344
for (int i = 0; i < len; i++) {
@@ -75,6 +76,7 @@ private boolean isHexadecimal(char c) {
7576
return ('0' <= c && c <= '9') || ('a' <= c && c <= 'f') || ('A' <= c && c <= 'F');
7677
}
7778

79+
@Override
7880
public void close() throws IOException {
7981
if (reader != null) {
8082
reader.close();

0 commit comments

Comments
 (0)