geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject cvs commit: incubator-geronimo/modules/common/src/java/org/apache/geronimo/common NullArgumentException.java
Date Thu, 14 Aug 2003 17:37:42 GMT
jdillon     2003/08/14 10:37:42

  Modified:    modules/common/src/java/org/apache/geronimo/common
                        NullArgumentException.java
  Log:
   o Fixed typo, moved method to top of file
  
  Revision  Changes    Path
  1.4       +11 -12    incubator-geronimo/modules/common/src/java/org/apache/geronimo/common/NullArgumentException.java
  
  Index: NullArgumentException.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/common/src/java/org/apache/geronimo/common/NullArgumentException.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- NullArgumentException.java	14 Aug 2003 09:44:36 -0000	1.3
  +++ NullArgumentException.java	14 Aug 2003 17:37:42 -0000	1.4
  @@ -66,15 +66,8 @@
   public class NullArgumentException 
      extends IllegalArgumentException
   {
  -    /** The name of the argument that was <tt>null</tt>. */
  -    protected final String name;
  -    
  -    /** The index of the argument or null if no index. */
  -    protected final Object index;
  -    
  -    
       /**
  -     * A simple helper method to chekc that the given argument value
  +     * A simple helper method to check that the given argument value
        * is not null. If it is null then a <tt>NullArgumentException</tt> is
thrown.
        * 
        * @param name name of the argument
  @@ -82,10 +75,16 @@
        * @throws NullArgumentException if the argument is null
        */
       public static void checkForNull(String name, Object argument) throws NullArgumentException
{
  -    	if (argument == null) {
  -    		throw new NullArgumentException(name);
  -    	}
  +        if (argument == null) {
  +            throw new NullArgumentException(name);
  +        }
       }
  +    
  +    /** The name of the argument that was <tt>null</tt>. */
  +    protected final String name;
  +    
  +    /** The index of the argument or null if no index. */
  +    protected final Object index;
       
       /**
        * Construct a <tt>NullArgumentException</tt>.
  
  
  

Mime
View raw message