xmlbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject cvs commit: xml-xmlbeans/v2/src/binding/org/apache/xmlbeans/impl/binding/compile Java2Schema.java
Date Wed, 03 Mar 2004 01:48:58 GMT
pcal        2004/03/02 17:48:57

  Modified:    v2/src/binding/org/apache/xmlbeans/impl/binding/compile
                        Java2Schema.java
  Log:
  fix small bug in java2schema with no-value javadoc tags
  
  Revision  Changes    Path
  1.33      +5 -1      xml-xmlbeans/v2/src/binding/org/apache/xmlbeans/impl/binding/compile/Java2Schema.java
  
  Index: Java2Schema.java
  ===================================================================
  RCS file: /home/cvs/xml-xmlbeans/v2/src/binding/org/apache/xmlbeans/impl/binding/compile/Java2Schema.java,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- Java2Schema.java	26 Feb 2004 23:22:50 -0000	1.32
  +++ Java2Schema.java	3 Mar 2004 01:48:57 -0000	1.33
  @@ -300,7 +300,11 @@
      */
     private boolean getAnnotation(JElement elem, String annName, boolean dflt) {
       JAnnotation ann = elem.getAnnotation(annName);
  -    return (ann == null) ? dflt : ann.getBooleanValue();
  +//    return (ann == null) ? dflt : ann.getBooleanValue();
  +    if (ann == null) return false;
  +    String a = ann.getStringValue();
  +    if (a == null || a.trim().length() == 0) return true; //ewww
  +    return ann.getBooleanValue();
     }
   
     /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xmlbeans-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-cvs-help@xml.apache.org


Mime
View raw message