From 6d88e1c332e7b91bad806ea4bc6cfa4c1191ae0e Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 14 Nov 2001 23:42:38 +0000 Subject: [PATCH] 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 --- libjava/ChangeLog | 3 +++ libjava/java/lang/reflect/Constructor.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index eead06f7300..b32af473fc6 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,5 +1,8 @@ 2001-11-14 Tom Tromey + * 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 diff --git a/libjava/java/lang/reflect/Constructor.java b/libjava/java/lang/reflect/Constructor.java index cd07a43f26e..4a30e2ae394 100644 --- a/libjava/java/lang/reflect/Constructor.java +++ b/libjava/java/lang/reflect/Constructor.java @@ -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("(");