Modifier.java (toString(int,StringBuffer)): Fix ordering.

* java/lang/reflect/Modifier.java (toString(int,StringBuffer)): Fix
        ordering.

From-SVN: r51848
This commit is contained in:
Mark Wielaard 2002-04-04 08:32:28 +00:00 committed by Mark Wielaard
parent 257b325b51
commit 2801df0ed6
2 changed files with 13 additions and 8 deletions

View file

@ -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',

View file

@ -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)