From 38afb5138c96355130dc144b3203d602ec67d12f Mon Sep 17 00:00:00 2001 From: Joe Darcy Date: Mon, 15 Aug 2011 12:56:01 -0700 Subject: [PATCH] 4850225: Integer.getInteger() : Bad reference to getProperty? Reviewed-by: lancea --- jdk/src/share/classes/java/lang/Integer.java | 39 ++++++++--------- jdk/src/share/classes/java/lang/Long.java | 46 +++++++++----------- 2 files changed, 38 insertions(+), 47 deletions(-) diff --git a/jdk/src/share/classes/java/lang/Integer.java b/jdk/src/share/classes/java/lang/Integer.java index 605918c839e..b253529d007 100644 --- a/jdk/src/share/classes/java/lang/Integer.java +++ b/jdk/src/share/classes/java/lang/Integer.java @@ -776,17 +776,17 @@ public final class Integer extends Number implements Comparable { * Determines the integer value of the system property with the * specified name. * - *

The first argument is treated as the name of a system property. - * System properties are accessible through the - * {@link java.lang.System#getProperty(java.lang.String)} method. The + *

The first argument is treated as the name of a system + * property. System properties are accessible through the {@link + * java.lang.System#getProperty(java.lang.String)} method. The * string value of this property is then interpreted as an integer - * value and an {@code Integer} object representing this value is - * returned. Details of possible numeric formats can be found with - * the definition of {@code getProperty}. + * value using the grammar supported by {@link Integer#decode decode} and + * an {@code Integer} object representing this value is returned. * - *

If there is no property with the specified name, if the specified name - * is empty or {@code null}, or if the property does not have - * the correct numeric format, then {@code null} is returned. + *

If there is no property with the specified name, if the + * specified name is empty or {@code null}, or if the property + * does not have the correct numeric format, then {@code null} is + * returned. * *

In other words, this method returns an {@code Integer} * object equal to the value of: @@ -808,13 +808,12 @@ public final class Integer extends Number implements Comparable { * Determines the integer value of the system property with the * specified name. * - *

The first argument is treated as the name of a system property. - * System properties are accessible through the {@link + *

The first argument is treated as the name of a system + * property. System properties are accessible through the {@link * java.lang.System#getProperty(java.lang.String)} method. The * string value of this property is then interpreted as an integer - * value and an {@code Integer} object representing this value is - * returned. Details of possible numeric formats can be found with - * the definition of {@code getProperty}. + * value using the grammar supported by {@link Integer#decode decode} and + * an {@code Integer} object representing this value is returned. * *

The second argument is the default value. An {@code Integer} object * that represents the value of the second argument is returned if there @@ -856,9 +855,9 @@ public final class Integer extends Number implements Comparable { * system property. System properties are accessible through the * {@link java.lang.System#getProperty(java.lang.String)} method. * The string value of this property is then interpreted as an - * integer value, as per the {@code Integer.decode} method, + * integer value, as per the {@link Integer#decode decode} method, * and an {@code Integer} object representing this value is - * returned. + * returned; in summary: * *