You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by dn...@apache.org on 2004/11/23 23:36:10 UTC
cvs commit: jakarta-lucene/src/java/org/apache/lucene/document NumberTools.java
dnaber 2004/11/23 14:36:10
Modified: src/java/org/apache/lucene/document NumberTools.java
Log:
throw NullPointerException instead of IllegalArgumentException; small typo fixes
Revision Changes Path
1.2 +3 -3 jakarta-lucene/src/java/org/apache/lucene/document/NumberTools.java
Index: NumberTools.java
===================================================================
RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/document/NumberTools.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- NumberTools.java 23 Nov 2004 21:07:48 -0000 1.1
+++ NumberTools.java 23 Nov 2004 22:36:10 -0000 1.2
@@ -55,7 +55,7 @@
+ "1y2p0ij32e8e7";
/**
- * the length of (all) strings returned by {@link #longToString}
+ * The length of (all) strings returned by {@link #longToString}
*/
public static final int STR_SIZE = MIN_STRING_VALUE.length();
@@ -89,7 +89,7 @@
}
/**
- * Converts a String that was returned by {@link #longToString}back to a
+ * Converts a String that was returned by {@link #longToString} back to a
* long.
*
* @throws IllegalArgumentException
@@ -100,7 +100,7 @@
*/
public static long stringToLong(String str) {
if (str == null) {
- throw new IllegalArgumentException("string cannot be null");
+ throw new NullPointerException("string cannot be null");
}
if (str.length() != STR_SIZE) {
throw new NumberFormatException("string is the wrong size");
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org