6769976: (fc) FileChannelImpl.isAMappedBufferField not used
Summary: Remove the FileChannelImpl.isAMappedBufferField field
Reviewed-by: alanb
--- a/jdk/src/share/classes/sun/nio/ch/FileChannelImpl.java Tue Jan 20 13:02:58 2009 -0800
+++ b/jdk/src/share/classes/sun/nio/ch/FileChannelImpl.java Tue Jan 20 13:04:19 2009 -0800
@@ -60,9 +60,6 @@
// Memory allocation size for mapping buffers
private static final long allocationGranularity;
- // Cached field for MappedByteBuffer.isAMappedBuffer
- private static final Field isAMappedBufferField;
-
// File descriptor
private final FileDescriptor fd;
@@ -1315,8 +1312,6 @@
Util.load();
allocationGranularity = initIDs();
nd = new FileDispatcher();
- isAMappedBufferField = Reflect.lookupField("java.nio.MappedByteBuffer",
- "isAMappedBuffer");
}
}