logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1501375 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/Integers.java
Date Tue, 09 Jul 2013 16:52:46 GMT
Author: ggregory
Date: Tue Jul  9 16:52:46 2013
New Revision: 1501375

URL: http://svn.apache.org/r1501375
Log:
Javadoc.

Modified:
    logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/Integers.java

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/Integers.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/Integers.java?rev=1501375&r1=1501374&r2=1501375&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/Integers.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/Integers.java
Tue Jul  9 16:52:46 2013
@@ -29,6 +29,8 @@ public class Integers {
      * @param defaultValue
      *            the return value, use {@code defaultValue} if {@code s} is {@code null}
or {@code ""}
      * @return the integer value represented by the argument in decimal.
+     * @throws NumberFormatException
+     *             if the string does not contain a parsable integer.
      */
     public static int parseInt(String s, int defaultValue) {
         return Strings.isEmpty(s) ? defaultValue : Integer.parseInt(s);
@@ -42,6 +44,8 @@ public class Integers {
      * @param defaultValue
      *            the return value, use {@code 0} if {@code s} is {@code null} or {@code
""}
      * @return the integer value represented by the argument in decimal.
+     * @throws NumberFormatException
+     *             if the string does not contain a parsable integer.
      */
     public static int parseInt(String s) {
         return parseInt(s, 0);



Mime
View raw message