ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/interfaces/model AbstractUnit.java
Date Thu, 04 Jul 2002 01:25:54 GMT
donaldp     2002/07/03 18:25:54

  Modified:    container/src/java/org/apache/myrmidon/interfaces/model
                        AbstractUnit.java
  Log:
  Make sure name is not null.
  
  Revision  Changes    Path
  1.3       +5 -1      jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/interfaces/model/AbstractUnit.java
  
  Index: AbstractUnit.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/interfaces/model/AbstractUnit.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- AbstractUnit.java	2 Jul 2002 12:32:35 -0000	1.2
  +++ AbstractUnit.java	4 Jul 2002 01:25:54 -0000	1.3
  @@ -36,6 +36,10 @@
       protected AbstractUnit( final String name,
                               final String description )
       {
  +        if( null == name )
  +        {
  +            throw new NullPointerException( "name" );
  +        }
           m_name = name;
           m_description = description;
       }
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message