summaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authormark <mark@138bc75d-0d04-0410-961f-82ee72b054a4>2002-04-04 08:32:28 +0000
committermark <mark@138bc75d-0d04-0410-961f-82ee72b054a4>2002-04-04 08:32:28 +0000
commite6ce127ffc5d97ae43a6826bb67b75115e1ed02b (patch)
tree5cfa65505969fe3b90d0868161f4e6c83178d8ab /libjava
parent0c2e6eb94ae7c60fdaafda4bee69704226ff5917 (diff)
downloadgcc-e6ce127ffc5d97ae43a6826bb67b75115e1ed02b.tar.gz
* java/lang/reflect/Modifier.java (toString(int,StringBuffer)): Fix
ordering. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51848 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava')
-rw-r--r--libjava/ChangeLog5
-rw-r--r--libjava/java/lang/reflect/Modifier.java16
2 files changed, 13 insertions, 8 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index 50e91e8809e..60d724267f1 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,3 +1,8 @@
+2002-04-03 Mark Wielaard <mark@klomp.org>
+
+ * java/lang/reflect/Modifier.java (toString(int,StringBuffer)): Fix
+ ordering.
+
2002-04-02 Tom Tromey <tromey@redhat.com>
* java/lang/natClassLoader.cc (findClass): Compare against `3',
diff --git a/libjava/java/lang/reflect/Modifier.java b/libjava/java/lang/reflect/Modifier.java
index 3e36d370d4e..75d0c9b47f5 100644
--- a/libjava/java/lang/reflect/Modifier.java
+++ b/libjava/java/lang/reflect/Modifier.java
@@ -280,8 +280,8 @@ public class Modifier
/**
* Get a string representation of all the modifiers represented by the
* given int. The keywords are printed in this order:
- * <code>&lt;public|private|protected&gt; abstract static final transient
- * volatile native synchronized interface strictfp</code>.
+ * <code>&lt;public|protected|private&gt; abstract static final transient
+ * volatile synchronized native strictfp interface</code>.
*
* @param mod the modifier.
* @return the String representing the modifiers.
@@ -301,10 +301,10 @@ public class Modifier
{
if (isPublic(mod))
r.append("public ");
- if (isPrivate(mod))
- r.append("private ");
if (isProtected(mod))
r.append("protected ");
+ if (isPrivate(mod))
+ r.append("private ");
if (isAbstract(mod))
r.append("abstract ");
if (isStatic(mod))
@@ -315,14 +315,14 @@ public class Modifier
r.append("transient ");
if (isVolatile(mod))
r.append("volatile ");
- if (isNative(mod))
- r.append("native ");
if (isSynchronized(mod))
r.append("synchronized ");
- if (isInterface(mod))
- r.append("interface ");
+ if (isNative(mod))
+ r.append("native ");
if (isStrict(mod))
r.append("strictfp ");
+ if (isInterface(mod))
+ r.append("interface ");
// Trim trailing space.
if ((mod & ALL_FLAGS) != 0)