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 [EMAIL PROTECTED] 
#longToString}
  +     * The length of (all) strings returned by [EMAIL PROTECTED] 
#longToString}
        */
       public static final int STR_SIZE = MIN_STRING_VALUE.length();
   
  @@ -89,7 +89,7 @@
       }
   
       /**
  -     * Converts a String that was returned by [EMAIL PROTECTED] 
#longToString}back to a
  +     * Converts a String that was returned by [EMAIL PROTECTED] 
#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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to