PipedInputStream.java (read(byte[],int,int)): Mostly rewrote.

* java/io/PipedInputStream.java (read(byte[],int,int)): Mostly
	rewrote.
	(receive): Streamlined.

From-SVN: r35556
This commit is contained in:
Tom Tromey 2000-08-07 19:59:48 +00:00 committed by Tom Tromey
parent 320f95489d
commit 8ac80386ca
4 changed files with 85 additions and 111 deletions

View file

@ -1,4 +1,4 @@
/* Copyright (C) 1998, 1999 Free Software Foundation
/* Copyright (C) 1998, 1999, 2000 Free Software Foundation
This file is part of libgcj.
@ -253,10 +253,13 @@ public final class Field extends AccessibleObject implements Member
StringBuffer sbuf = new StringBuffer ();
int mods = getModifiers();
if (mods != 0)
Modifier.toString(mods, sbuf);
{
Modifier.toString(mods, sbuf);
sbuf.append(' ');
}
sbuf.append(getType());
sbuf.append(' ');
sbuf.append(getDeclaringClass());
sbuf.append(getDeclaringClass().getName());
sbuf.append('.');
sbuf.append(getName());
return sbuf.toString();

View file

@ -78,17 +78,17 @@ public final class Method extends AccessibleObject implements Member
getType ();
StringBuffer b = new StringBuffer ();
b.append(Modifier.toString(getModifiers()));
Modifier.toString(getModifiers(), b);
b.append(" ");
b.append(return_type.toString());
b.append(" ");
b.append(declaringClass.toString());
b.append(declaringClass.getName());
b.append(".");
b.append(name);
b.append("(");
for (int i = 0; i < parameter_types.length; ++i)
{
b.append(parameter_types[i].toString());
b.append(parameter_types[i].getName());
if (i < parameter_types.length - 1)
b.append(",");
}
@ -98,7 +98,7 @@ public final class Method extends AccessibleObject implements Member
b.append(" throws ");
for (int i = 0; i < exception_types.length; ++i)
{
b.append(exception_types[i].toString());
b.append(exception_types[i].getName());
if (i < exception_types.length - 1)
b.append(",");
}