Commit 2801df0e by Mark Wielaard Committed by Mark Wielaard

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

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

From-SVN: r51848
parent 257b325b
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> 2002-04-02 Tom Tromey <tromey@redhat.com>
* java/lang/natClassLoader.cc (findClass): Compare against `3', * java/lang/natClassLoader.cc (findClass): Compare against `3',
......
...@@ -280,8 +280,8 @@ public class Modifier ...@@ -280,8 +280,8 @@ public class Modifier
/** /**
* Get a string representation of all the modifiers represented by the * Get a string representation of all the modifiers represented by the
* given int. The keywords are printed in this order: * given int. The keywords are printed in this order:
* <code>&lt;public|private|protected&gt; abstract static final transient * <code>&lt;public|protected|private&gt; abstract static final transient
* volatile native synchronized interface strictfp</code>. * volatile synchronized native strictfp interface</code>.
* *
* @param mod the modifier. * @param mod the modifier.
* @return the String representing the modifiers. * @return the String representing the modifiers.
...@@ -301,10 +301,10 @@ public class Modifier ...@@ -301,10 +301,10 @@ public class Modifier
{ {
if (isPublic(mod)) if (isPublic(mod))
r.append("public "); r.append("public ");
if (isPrivate(mod))
r.append("private ");
if (isProtected(mod)) if (isProtected(mod))
r.append("protected "); r.append("protected ");
if (isPrivate(mod))
r.append("private ");
if (isAbstract(mod)) if (isAbstract(mod))
r.append("abstract "); r.append("abstract ");
if (isStatic(mod)) if (isStatic(mod))
...@@ -315,14 +315,14 @@ public class Modifier ...@@ -315,14 +315,14 @@ public class Modifier
r.append("transient "); r.append("transient ");
if (isVolatile(mod)) if (isVolatile(mod))
r.append("volatile "); r.append("volatile ");
if (isNative(mod))
r.append("native ");
if (isSynchronized(mod)) if (isSynchronized(mod))
r.append("synchronized "); r.append("synchronized ");
if (isInterface(mod)) if (isNative(mod))
r.append("interface "); r.append("native ");
if (isStrict(mod)) if (isStrict(mod))
r.append("strictfp "); r.append("strictfp ");
if (isInterface(mod))
r.append("interface ");
// Trim trailing space. // Trim trailing space.
if ((mod & ALL_FLAGS) != 0) if ((mod & ALL_FLAGS) != 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment