Method.java (toString): Avoid extra whitespace on method with no modifiers.
* java/lang/reflect/Method.java (toString): Avoid extra whitespace on method with no modifiers. From-SVN: r72919
This commit is contained in:
parent
a10fd35601
commit
8822f4aaf9
@ -1,3 +1,8 @@
|
||||
2003-10-25 Bryce McKinlay <bryce@mckinlay.net.nz>
|
||||
|
||||
* java/lang/reflect/Method.java (toString): Avoid extra whitespace
|
||||
on method with no modifiers.
|
||||
|
||||
2003-10-25 Bryce McKinlay <bryce@mckinlay.net.nz>
|
||||
|
||||
PR libgcj/11780:
|
||||
|
@ -163,8 +163,12 @@ public final class Method extends AccessibleObject implements Member
|
||||
getType ();
|
||||
|
||||
StringBuffer b = new StringBuffer ();
|
||||
Modifier.toString(getModifiers(), b);
|
||||
b.append(" ");
|
||||
int mods = getModifiers();
|
||||
if (mods != 0)
|
||||
{
|
||||
Modifier.toString(mods, b);
|
||||
b.append(" ");
|
||||
}
|
||||
appendClassName (b, return_type);
|
||||
b.append(" ");
|
||||
appendClassName (b, declaringClass);
|
||||
|
Loading…
Reference in New Issue
Block a user