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 <gardgreg...@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; }