src/share/classes/java/lang/reflect/Modifier.java

Print this page

        

@@ -41,12 +41,11 @@
  * @see Member#getModifiers()
  *
  * @author Nakul Saraiya
  * @author Kenneth Russell
  */
-public
-class Modifier {
+public class Modifier {
 
     /*
      * Bootstrapping protocol between java.lang and java.lang.reflect
      *  packages
      */

@@ -231,11 +230,11 @@
      * @param   mod a set of modifiers
      * @return  a string representation of the set of modifiers
      * represented by {@code mod}
      */
     public static String toString(int mod) {
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         int len;
 
         if ((mod & PUBLIC) != 0)        sb.append("public ");
         if ((mod & PROTECTED) != 0)     sb.append("protected ");
         if ((mod & PRIVATE) != 0)       sb.append("private ");