You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2021/07/30 19:14:53 UTC
[commons-io] branch master updated: Add @SuppressWarnings.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git
The following commit(s) were added to refs/heads/master by this push:
new c9d5443 Add @SuppressWarnings.
c9d5443 is described below
commit c9d544360d8d055bdeaa16462522957db35bf5c4
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Jul 30 15:14:49 2021 -0400
Add @SuppressWarnings.
---
src/main/java/org/apache/commons/io/input/ProxyReader.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/main/java/org/apache/commons/io/input/ProxyReader.java b/src/main/java/org/apache/commons/io/input/ProxyReader.java
index 6f1eb19..8ed16ae 100644
--- a/src/main/java/org/apache/commons/io/input/ProxyReader.java
+++ b/src/main/java/org/apache/commons/io/input/ProxyReader.java
@@ -223,6 +223,7 @@ public abstract class ProxyReader extends FilterReader {
* @param n number of chars that the caller asked to be read
* @throws IOException if the pre-processing fails
*/
+ @SuppressWarnings("unused") // Possibly thrown from subclasses.
protected void beforeRead(final int n) throws IOException {
// noop
}
@@ -244,6 +245,7 @@ public abstract class ProxyReader extends FilterReader {
* @param n number of chars read, or -1 if the end of stream was reached
* @throws IOException if the post-processing fails
*/
+ @SuppressWarnings("unused") // Possibly thrown from subclasses.
protected void afterRead(final int n) throws IOException {
// noop
}