6769976: (fc) FileChannelImpl.isAMappedBufferField not used
authormchung
Tue, 20 Jan 2009 13:04:19 -0800
changeset 1821 fe2556ead537
parent 1820 04d22534971a
child 1822 dd4ba253de9f
6769976: (fc) FileChannelImpl.isAMappedBufferField not used Summary: Remove the FileChannelImpl.isAMappedBufferField field Reviewed-by: alanb
jdk/src/share/classes/sun/nio/ch/FileChannelImpl.java
--- 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");
     }
 
 }