Skip to content

Commit c2e18c6

Browse files
committed
Javadoc @SInCE tag should be after @return and @throws
1 parent 7815650 commit c2e18c6

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,9 @@ public int available() throws IOException {
204204
* you want to add pre-processing steps also to them.
205205
* </p>
206206
*
207-
* @since 2.0
208207
* @param n number of bytes that the caller asked to be read.
209208
* @throws IOException if the pre-processing fails in a subclass.
209+
* @since 2.0
210210
*/
211211
@SuppressWarnings("unused") // Possibly thrown from subclasses.
212212
protected void beforeRead(final int n) throws IOException {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ public ProxyReader(final Reader delegate) {
6060
* {@link #reset()}. You need to explicitly override those methods if
6161
* you want to add post-processing steps also to them.
6262
*
63-
* @since 2.0
6463
* @param n number of chars read, or -1 if the end of stream was reached
6564
* @throws IOException if the post-processing fails
65+
* @since 2.0
6666
*/
6767
@SuppressWarnings("unused") // Possibly thrown from subclasses.
6868
protected void afterRead(final int n) throws IOException {
@@ -83,9 +83,9 @@ protected void afterRead(final int n) throws IOException {
8383
* {@link #reset()}. You need to explicitly override those methods if
8484
* you want to add pre-processing steps also to them.
8585
*
86-
* @since 2.0
8786
* @param n number of chars that the caller asked to be read
8887
* @throws IOException if the pre-processing fails
88+
* @since 2.0
8989
*/
9090
@SuppressWarnings("unused") // Possibly thrown from subclasses.
9191
protected void beforeRead(final int n) throws IOException {

src/main/java/org/apache/commons/io/output/ProxyOutputStream.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ public ProxyOutputStream(final OutputStream delegate) {
9696
* functionality without having to override all the write methods.
9797
* The default implementation does nothing.
9898
*
99-
* @since 2.0
10099
* @param n number of bytes written
101100
* @throws IOException if the post-processing fails
101+
* @since 2.0
102102
*/
103103
@SuppressWarnings("unused") // Possibly thrown from subclasses.
104104
protected void afterWrite(final int n) throws IOException {
@@ -114,9 +114,9 @@ protected void afterWrite(final int n) throws IOException {
114114
* functionality without having to override all the write methods.
115115
* The default implementation does nothing.
116116
*
117-
* @since 2.0
118117
* @param n number of bytes to be written
119118
* @throws IOException if the pre-processing fails
119+
* @since 2.0
120120
*/
121121
@SuppressWarnings("unused") // Possibly thrown from subclasses.
122122
protected void beforeWrite(final int n) throws IOException {

src/main/java/org/apache/commons/io/output/ProxyWriter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ public ProxyWriter(final Writer delegate) {
5151
* The default implementation does nothing.
5252
* </p>
5353
*
54-
* @since 2.0
5554
* @param n number of chars written
5655
* @throws IOException if the post-processing fails
56+
* @since 2.0
5757
*/
5858
@SuppressWarnings("unused") // Possibly thrown from subclasses.
5959
protected void afterWrite(final int n) throws IOException {
@@ -130,9 +130,9 @@ public Writer append(final CharSequence csq, final int start, final int end) thr
130130
* The default implementation does nothing.
131131
* </p>
132132
*
133-
* @since 2.0
134133
* @param n number of chars to be written
135134
* @throws IOException if the pre-processing fails
135+
* @since 2.0
136136
*/
137137
@SuppressWarnings("unused") // Possibly thrown from subclasses.
138138
protected void beforeWrite(final int n) throws IOException {

0 commit comments

Comments
 (0)