Skip to content

Commit b793c19

Browse files
author
Stephen Colebourne
committed
Javadoc style (less loud) and Checkstyle spaces
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/io/trunk@462795 13f79535-47bb-0310-9956-ffa450edef68
1 parent e855f3b commit b793c19

1 file changed

Lines changed: 9 additions & 11 deletions

File tree

src/java/org/apache/commons/io/input/CountingInputStream.java

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public long skip(final long length) throws IOException {
9595
* @deprecated use <code>getByteCount()</code> - see issue IO-84
9696
*/
9797
public int getCount() {
98-
return (int)getByteCount();
98+
return (int) getByteCount();
9999
}
100100

101101
/**
@@ -109,17 +109,16 @@ public int getCount() {
109109
* @deprecated use <code>resetByteCount()</code> - see issue IO-84
110110
*/
111111
public synchronized int resetCount() {
112-
return (int)resetByteCount();
112+
return (int) resetByteCount();
113113
}
114114

115115
/**
116116
* The number of bytes that have passed through this stream.
117117
* <p>
118-
* <strong>N.B.</strong> This method was introduced as an
119-
* alternative for the <code>getCount()</code> method
120-
* because that method returns an integer which will result
121-
* in incorrect count for files over 2GB being returned.
122-
*
118+
* NOTE: This method is a replacement for <code>getCount()</code>
119+
* and was added because that method returns an integer which will
120+
* result in incorrect count for files over 2GB.
121+
*
123122
* @return the number of bytes accumulated
124123
*/
125124
public long getByteCount() {
@@ -129,10 +128,9 @@ public long getByteCount() {
129128
/**
130129
* Set the count back to 0.
131130
* <p>
132-
* <strong>N.B.</strong> This method was introduced as an
133-
* alternative for the <code>resetCount()</code> method
134-
* because that method returns an integer which will result
135-
* in incorrect count for files over 2GB being returned.
131+
* NOTE: This method is a replacement for <code>resetCount()</code>
132+
* and was added because that method returns an integer which will
133+
* result in incorrect count for files over 2GB.
136134
*
137135
* @return the count previous to resetting.
138136
*/

0 commit comments

Comments
 (0)