/[classpath]/classpath/java/nio/ShortBufferImpl.java
ViewVC logotype

Diff of /classpath/java/nio/ShortBufferImpl.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by robilad, Wed Jun 16 08:57:10 2004 UTC revision 1.5.2.1 by gnu_andrew, Sun Jan 16 15:15:12 2005 UTC
# Line 80  final class ShortBufferImpl extends Shor Line 80  final class ShortBufferImpl extends Shor
80        
81    public ShortBuffer compact ()    public ShortBuffer compact ()
82    {    {
83        checkIfReadOnly();
84        mark = -1;
85      int copied = 0;      int copied = 0;
86            
87      while (remaining () > 0)      while (remaining () > 0)
# Line 89  final class ShortBufferImpl extends Shor Line 91  final class ShortBufferImpl extends Shor
91        }        }
92    
93      position (copied);      position (copied);
94        limit(capacity());
95      return this;      return this;
96    }    }
97        

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.5.2.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26