src/share/classes/java/lang/Integer.java

Print this page

        

*** 795,804 **** --- 795,806 ---- * {@code getInteger(nm, null)} * </blockquote> * * @param nm property name. * @return the {@code Integer} value of the property. + * @throws SecurityException for the same reasons as + * {@link System#getProperty(String) System.getProperty} * @see java.lang.System#getProperty(java.lang.String) * @see java.lang.System#getProperty(java.lang.String, java.lang.String) */ public static Integer getInteger(String nm) { return getInteger(nm, null);
*** 839,848 **** --- 841,852 ---- * object when the default value is not needed. * * @param nm property name. * @param val default value. * @return the {@code Integer} value of the property. + * @throws SecurityException for the same reasons as + * {@link System#getProperty(String) System.getProperty} * @see java.lang.System#getProperty(java.lang.String) * @see java.lang.System#getProperty(java.lang.String, java.lang.String) */ public static Integer getInteger(String nm, int val) { Integer result = getInteger(nm, null);
*** 879,888 **** --- 883,894 ---- * specified name is empty or {@code null}. * * @param nm property name. * @param val default value. * @return the {@code Integer} value of the property. + * @throws SecurityException for the same reasons as + * {@link System#getProperty(String) System.getProperty} * @see System#getProperty(java.lang.String) * @see System#getProperty(java.lang.String, java.lang.String) */ public static Integer getInteger(String nm, Integer val) { String v = null;