harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From regi...@apache.org
Subject svn commit: r784686 - /harmony/enhanced/classlib/trunk/modules/nio/src/main/java/common/java/nio/ReadWriteDirectByteBuffer.java
Date Mon, 15 Jun 2009 08:28:10 GMT
Author: regisxu
Date: Mon Jun 15 08:28:10 2009
New Revision: 784686

URL: http://svn.apache.org/viewvc?rev=784686&view=rev
Log:
remove useless check: ReadWriteDirectByteBuffer never be read only.

Modified:
    harmony/enhanced/classlib/trunk/modules/nio/src/main/java/common/java/nio/ReadWriteDirectByteBuffer.java

Modified: harmony/enhanced/classlib/trunk/modules/nio/src/main/java/common/java/nio/ReadWriteDirectByteBuffer.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/nio/src/main/java/common/java/nio/ReadWriteDirectByteBuffer.java?rev=784686&r1=784685&r2=784686&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/nio/src/main/java/common/java/nio/ReadWriteDirectByteBuffer.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/nio/src/main/java/common/java/nio/ReadWriteDirectByteBuffer.java
Mon Jun 15 08:28:10 2009
@@ -117,9 +117,6 @@
         if (len > remaining()) {
             throw new BufferOverflowException();
         }
-        if (isReadOnly()) {
-            throw new ReadOnlyBufferException();
-        }
         getBaseAddress().setByteArray(offset + position, src, off, len);
         position += len;
         return this;



Mime
View raw message