ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adammurd...@apache.org
Subject cvs commit: jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/components/configurer ObjectConfigurer.java
Date Tue, 25 Jun 2002 07:10:01 GMT
adammurdoch    2002/06/25 00:10:01

  Modified:    container/src/java/org/apache/myrmidon/components/configurer
                        ObjectConfigurer.java
  Log:
  Allow add(java.lang.Object) as a special case.
  
  Revision  Changes    Path
  1.13      +2 -2      jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/components/configurer/ObjectConfigurer.java
  
  Index: ObjectConfigurer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/container/src/java/org/apache/myrmidon/components/configurer/ObjectConfigurer.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- ObjectConfigurer.java	25 Jun 2002 00:35:20 -0000	1.12
  +++ ObjectConfigurer.java	25 Jun 2002 07:10:01 -0000	1.13
  @@ -144,7 +144,7 @@
           final Method method = (Method)methods.iterator().next();
           final Class type = method.getParameterTypes()[ 0 ];
   
  -        if( !type.isInterface() && ModelElement.class != type )
  +        if( !type.isInterface() && ModelElement.class != type && Object.class
!= type )
           {
               final String message =
                   REZ.getString( "typed-adder-non-interface.error",
  
  
  

--
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