2003-05-19 Michael Koch <konqueror@gmx.de>
* java/nio/CharBuffer.java (toString): Compile fix. From-SVN: r66953
This commit is contained in:
committed by
Michael Koch
parent
21c9500d3e
commit
27d645f767
@@ -426,7 +426,9 @@ public abstract class CharBuffer extends Buffer
|
||||
return new String (array (), position (), length ());
|
||||
|
||||
char[] buf = new char [length ()];
|
||||
get (position (), buf);
|
||||
int pos = position ();
|
||||
get (buf, 0, buf.length);
|
||||
position (pos);
|
||||
return new String (buf);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user