commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject cvs commit: jakarta-commons/betwixt/src/test/org/apache/commons/betwixt/digester TestXMLIntrospectorHelper.java
Date Thu, 15 Jan 2004 21:57:41 GMT
rdonkin     2004/01/15 13:57:41

  Modified:    betwixt/src/test/org/apache/commons/betwixt/digester Tag:
                        REFACTORING-BRANCH_2004-01-13
                        TestXMLIntrospectorHelper.java
  Log:
  Costmetic tidying.
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.6.2.1   +7 -7      jakarta-commons/betwixt/src/test/org/apache/commons/betwixt/digester/TestXMLIntrospectorHelper.java
  
  Index: TestXMLIntrospectorHelper.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/betwixt/src/test/org/apache/commons/betwixt/digester/TestXMLIntrospectorHelper.java,v
  retrieving revision 1.6
  retrieving revision 1.6.2.1
  diff -u -r1.6 -r1.6.2.1
  --- TestXMLIntrospectorHelper.java	9 Oct 2003 20:52:08 -0000	1.6
  +++ TestXMLIntrospectorHelper.java	15 Jan 2004 21:57:41 -0000	1.6.2.1
  @@ -8,7 +8,7 @@
    * 
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2001-2003 The Apache Software Foundation.  All rights
  + * Copyright (c) 2001-2004 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -71,6 +71,7 @@
   import junit.framework.TestSuite;
   import junit.textui.TestRunner;
   
  +import org.apache.commons.betwixt.BeanProperty;
   import org.apache.commons.betwixt.CustomerBean;
   import org.apache.commons.betwixt.NodeDescriptor;
   import org.apache.commons.betwixt.XMLIntrospector;
  @@ -127,8 +128,7 @@
           for (int i=0; i<properties.length; i++) {
               if (propertyName.equals(properties[i].getName())) {
                   NodeDescriptor desc = (NodeDescriptor) introspector
  -                    .createDescriptor(properties[i],
  -                                      introspector.isAttributesForPrimitives());
  +                    .createXMLDescriptor(new BeanProperty(properties[i]));
                   return desc;
               } 
           }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message