+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',
/**
* Get a string representation of all the modifiers represented by the
* given int. The keywords are printed in this order:
- * <code><public|private|protected> abstract static final transient
- * volatile native synchronized interface strictfp</code>.
+ * <code><public|protected|private> abstract static final transient
+ * volatile synchronized native strictfp interface</code>.
*
* @param mod the modifier.
* @return the String representing the modifiers.
{
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))
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)