(commons-io) branch master updated: Remove @SuppressWarnings

2024-05-24 Thread ggregory
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 f1c46c3ad Remove @SuppressWarnings
f1c46c3ad is described below

commit f1c46c3ad050c504f50b93390efdbcf5cf58307f
Author: Gary Gregory 
AuthorDate: Fri May 24 10:23:10 2024 -0400

Remove @SuppressWarnings
---
 src/main/java/org/apache/commons/io/function/IOStreamAdapter.java | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/io/function/IOStreamAdapter.java 
b/src/main/java/org/apache/commons/io/function/IOStreamAdapter.java
index aed21a7f5..10a7dc975 100644
--- a/src/main/java/org/apache/commons/io/function/IOStreamAdapter.java
+++ b/src/main/java/org/apache/commons/io/function/IOStreamAdapter.java
@@ -28,7 +28,6 @@ import java.util.stream.Stream;
  */
 final class IOStreamAdapter extends IOBaseStreamAdapter, 
Stream> implements IOStream {
 
-@SuppressWarnings("resource")
 static  IOStream adapt(final Stream delegate) {
 return delegate != null ? new IOStreamAdapter<>(delegate) : 
IOStream.empty();
 }



(commons-io) branch master updated: Remove @SuppressWarnings

2024-05-24 Thread ggregory
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 938362c7c Remove @SuppressWarnings
938362c7c is described below

commit 938362c7c7f79ee506187a24effa41c043b68293
Author: Gary Gregory 
AuthorDate: Fri May 24 10:22:52 2024 -0400

Remove @SuppressWarnings
---
 src/main/java/org/apache/commons/io/input/DemuxInputStream.java | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/io/input/DemuxInputStream.java 
b/src/main/java/org/apache/commons/io/input/DemuxInputStream.java
index 451f4ce71..0dfdce4ad 100644
--- a/src/main/java/org/apache/commons/io/input/DemuxInputStream.java
+++ b/src/main/java/org/apache/commons/io/input/DemuxInputStream.java
@@ -59,7 +59,6 @@ public class DemuxInputStream extends InputStream {
  * @return the byte read from stream
  * @throws IOException if an error occurs
  */
-@SuppressWarnings("resource")
 @Override
 public int read() throws IOException {
 final InputStream inputStream = inputStreamLocal.get();



(commons-io) branch master updated: Remove @SuppressWarnings

2024-05-24 Thread ggregory
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 f026f9569 Remove @SuppressWarnings
f026f9569 is described below

commit f026f956941a56aa4481d79feb083f44b9fc7d74
Author: Gary Gregory 
AuthorDate: Fri May 24 10:22:33 2024 -0400

Remove @SuppressWarnings
---
 src/main/java/org/apache/commons/io/function/IOStream.java | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/main/java/org/apache/commons/io/function/IOStream.java 
b/src/main/java/org/apache/commons/io/function/IOStream.java
index 99065f62a..94d3d7e7a 100644
--- a/src/main/java/org/apache/commons/io/function/IOStream.java
+++ b/src/main/java/org/apache/commons/io/function/IOStream.java
@@ -116,7 +116,6 @@ public interface IOStream extends IOBaseStream, Stream> {
  * @param values the elements of the new stream, may be {@code null}.
  * @return the new stream on {@code values} or {@link Stream#empty()}.
  */
-@SuppressWarnings("resource") // call to #empty()
 static  IOStream of(final Iterable values) {
 return values == null ? empty() : 
adapt(StreamSupport.stream(values.spliterator(), false));
 }
@@ -128,7 +127,6 @@ public interface IOStream extends IOBaseStream, Stream> {
  * @param values the elements of the new stream, may be {@code null}.
  * @return the new stream on {@code values} or {@link Stream#empty()}.
  */
-@SuppressWarnings("resource")
 @SafeVarargs // Creating a stream from an array is safe
 static  IOStream of(final T... values) {
 return values == null || values.length == 0 ? empty() : 
adapt(Arrays.stream(values));



[commons-io] branch master updated: Remove @SuppressWarnings, not needed.

2022-02-12 Thread ggregory
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 3da2535  Remove @SuppressWarnings, not needed.
3da2535 is described below

commit 3da2535d8b145449f6c35c0e29c595bcae73e073
Author: Gary Gregory 
AuthorDate: Sat Feb 12 13:30:42 2022 -0500

Remove @SuppressWarnings, not needed.
---
 src/main/java/org/apache/commons/io/CloseableURLConnection.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/io/CloseableURLConnection.java 
b/src/main/java/org/apache/commons/io/CloseableURLConnection.java
index d07335f..6895bfd 100644
--- a/src/main/java/org/apache/commons/io/CloseableURLConnection.java
+++ b/src/main/java/org/apache/commons/io/CloseableURLConnection.java
@@ -83,7 +83,7 @@ class CloseableURLConnection extends URLConnection implements 
AutoCloseable {
 }
 
 @Override
-public Object getContent(@SuppressWarnings("rawtypes") final Class[] 
classes) throws IOException {
+public Object getContent(final Class[] classes) throws IOException {
 return urlConnection.getContent(classes);
 }
 


[commons-io] branch master updated: Remove @SuppressWarnings no longer applicable.

2021-07-10 Thread ggregory
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 bbc4283  Remove @SuppressWarnings no longer applicable.
bbc4283 is described below

commit bbc42830e58e706c7d99315f8e2620ca57ef51e7
Author: Gary Gregory 
AuthorDate: Sat Jul 10 10:05:52 2021 -0400

Remove @SuppressWarnings no longer applicable.
---
 src/main/java/org/apache/commons/io/input/ProxyReader.java | 2 --
 1 file changed, 2 deletions(-)

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 8ed16ae..6f1eb19 100644
--- a/src/main/java/org/apache/commons/io/input/ProxyReader.java
+++ b/src/main/java/org/apache/commons/io/input/ProxyReader.java
@@ -223,7 +223,6 @@ 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
 }
@@ -245,7 +244,6 @@ 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
 }