Constructor.java (toString): Use more efficient form of Modifier.toString().

* java/lang/reflect/Constructor.java (toString): Use more
	efficient form of Modifier.toString().

From-SVN: r47031
This commit is contained in:
Tom Tromey 2001-11-14 23:42:38 +00:00 committed by Tom Tromey
parent c1a7b241d1
commit 6d88e1c332
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2001-11-14 Tom Tromey <tromey@redhat.com>
* java/lang/reflect/Constructor.java (toString): Use more
efficient form of Modifier.toString().
Re-merges with Classpath, from various people:
* java/lang/reflect/Modifier.java: Reindented.
(toString): Only trim trailing space if text was added to

View File

@ -75,7 +75,7 @@ public final class Constructor extends AccessibleObject implements Member
if (parameter_types == null)
getType ();
StringBuffer b = new StringBuffer ();
b.append(Modifier.toString(getModifiers()));
Modifier.toString(getModifiers(), b);
b.append(" ");
Method.appendClassName (b, declaringClass);
b.append("(");