From 4f3a9a439240940b9f2fcbd4734c53d63c40a02a Mon Sep 17 00:00:00 2001 From: Mandy Chung Date: Tue, 20 Jan 2009 13:04:19 -0800 Subject: [PATCH] 6769976: (fc) FileChannelImpl.isAMappedBufferField not used Remove the FileChannelImpl.isAMappedBufferField field Reviewed-by: alanb --- jdk/src/share/classes/sun/nio/ch/FileChannelImpl.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/jdk/src/share/classes/sun/nio/ch/FileChannelImpl.java b/jdk/src/share/classes/sun/nio/ch/FileChannelImpl.java index 894c489cd85..4d0543e4b1c 100644 --- a/jdk/src/share/classes/sun/nio/ch/FileChannelImpl.java +++ b/jdk/src/share/classes/sun/nio/ch/FileChannelImpl.java @@ -60,9 +60,6 @@ public class FileChannelImpl // 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 @@ public class FileChannelImpl Util.load(); allocationGranularity = initIDs(); nd = new FileDispatcher(); - isAMappedBufferField = Reflect.lookupField("java.nio.MappedByteBuffer", - "isAMappedBuffer"); } }