/[classpath]/classpath/java/io/ByteArrayOutputStream.java
ViewVC logotype

Diff of /classpath/java/io/ByteArrayOutputStream.java

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

revision 1.14 by mkoch, Sun Mar 23 10:39:02 2003 UTC revision 1.15 by jsturm, Tue Nov 18 04:54:54 2003 UTC
# Line 198  public class ByteArrayOutputStream exten Line 198  public class ByteArrayOutputStream exten
198    // Resize buffer to accommodate new bytes.    // Resize buffer to accommodate new bytes.
199    private void resize (int add)    private void resize (int add)
200    {    {
201      if (count + add >= buf.length)      if (count + add > buf.length)
202        {        {
203          int newlen = buf.length * 2;          int newlen = buf.length * 2;
204          if (count + add > newlen)          if (count + add > newlen)

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

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