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

Print this page

        

*** 41,52 **** * @see Member#getModifiers() * * @author Nakul Saraiya * @author Kenneth Russell */ ! public ! class Modifier { /* * Bootstrapping protocol between java.lang and java.lang.reflect * packages */ --- 41,51 ---- * @see Member#getModifiers() * * @author Nakul Saraiya * @author Kenneth Russell */ ! public class Modifier { /* * Bootstrapping protocol between java.lang and java.lang.reflect * packages */
*** 231,241 **** * @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(); int len; if ((mod & PUBLIC) != 0) sb.append("public "); if ((mod & PROTECTED) != 0) sb.append("protected "); if ((mod & PRIVATE) != 0) sb.append("private "); --- 230,240 ---- * @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) { ! 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 ");