2003-10-13 Michael Koch <konqueror@gmx.de>
* java/nio/Buffer.java (hasRemaining): Made implementation more clear. * java/nio/MappedByteBuffer.java (loaded): New member variable. (force): Added comment. (isLoaded): Return value of loaded. (load): Set loaded to true, added comment. From-SVN: r72418
This commit is contained in:
parent
bc9b32c230
commit
1adef66864
3 changed files with 18 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
/* Buffer.java --
|
||||
Copyright (C) 2002 Free Software Foundation, Inc.
|
||||
Copyright (C) 2002, 2003 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
|
@ -102,7 +102,7 @@ public abstract class Buffer
|
|||
*/
|
||||
public final boolean hasRemaining ()
|
||||
{
|
||||
return limit > pos;
|
||||
return remaining() > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue