Fix compiler warnings regarding generics.
MODIFY
src/main/java/org/apache/commons/io/input/BufferedFileChannelInputStream.java
src/main/java/org/apache/commons/io/input/BufferedFileChannelInputStream.java
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;
}

Fix compiler warnings regarding generics.