* java/lang/reflect/Method.java (toString): Avoid extra whitespace
on method with no modifiers.
From-SVN: r72919
+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:
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);