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/05/17 14:20:27 UTC
[commons-io] branch master updated: Fix compiler warnings regarding
generics.
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 e569d0f Fix compiler warnings regarding generics.
e569d0f is described below
commit e569d0f76924502007ba838dded7d5fdfcedd578
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon May 17 10:14:52 2021 -0400
Fix compiler warnings regarding generics.
---
.../apache/commons/io/input/BufferedFileChannelInputStream.java | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/main/java/org/apache/commons/io/input/BufferedFileChannelInputStream.java b/src/main/java/org/apache/commons/io/input/BufferedFileChannelInputStream.java
index 2ee1e59..6edb3f4 100644
--- a/src/main/java/org/apache/commons/io/input/BufferedFileChannelInputStream.java
+++ b/src/main/java/org/apache/commons/io/input/BufferedFileChannelInputStream.java
@@ -47,13 +47,14 @@ public final class BufferedFileChannelInputStream extends InputStream {
private final FileChannel fileChannel;
- private static final Class DIRECT_BUFFER_CLASS = getDirectBufferClass();
+ private static final Class<?> DIRECT_BUFFER_CLASS = getDirectBufferClass();
- private static Class getDirectBufferClass() {
- Class res = null;
+ private static Class<?> getDirectBufferClass() {
+ Class<?> res = null;
try {
res = Class.forName("sun.nio.ch.DirectBuffer");
} catch (IllegalAccessError | ClassNotFoundException ignored) {
+ // ignored
}
return res;
}