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/jam/src15/org/apache/xmlbeans/impl/jam/internal/java15 Javadoc15DelegateImpl.java
Date Mon, 19 Jul 2004 03:58:49 GMT
pcal        2004/07/18 20:58:49

  Modified:    v2/jam/src/org/apache/xmlbeans/impl/jam
                        JamServiceFactory.java
               v2/jam/src15/org/apache/xmlbeans/impl/jam/internal/java15
                        Javadoc15DelegateImpl.java
  Log:
  jam: shift around annotation defaults flag
  
  Revision  Changes    Path
  1.6       +5 -0      xml-xmlbeans/v2/jam/src/org/apache/xmlbeans/impl/jam/JamServiceFactory.java
  
  Index: JamServiceFactory.java
  ===================================================================
  RCS file: /home/cvs/xml-xmlbeans/v2/jam/src/org/apache/xmlbeans/impl/jam/JamServiceFactory.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- JamServiceFactory.java	20 Mar 2004 20:10:45 -0000	1.5
  +++ JamServiceFactory.java	19 Jul 2004 03:58:48 -0000	1.6
  @@ -98,6 +98,11 @@
   
   
   
  +//temporary
  +  public static boolean ANNOTATION_DEFAULTS_ENABLED = false;
  +  public static final void setAnnotationDefaultsEnabled(boolean b) {
  +    ANNOTATION_DEFAULTS_ENABLED = b;
  +  }
   
     // ========================================================================
     // main() method
  
  
  
  1.8       +5 -4      xml-xmlbeans/v2/jam/src15/org/apache/xmlbeans/impl/jam/internal/java15/Javadoc15DelegateImpl.java
  
  Index: Javadoc15DelegateImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xmlbeans/v2/jam/src15/org/apache/xmlbeans/impl/jam/internal/java15/Javadoc15DelegateImpl.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- Javadoc15DelegateImpl.java	18 Jul 2004 20:55:27 -0000	1.7
  +++ Javadoc15DelegateImpl.java	19 Jul 2004 03:58:48 -0000	1.8
  @@ -20,6 +20,7 @@
   import org.apache.xmlbeans.impl.jam.internal.javadoc.JavadocClassBuilder;
   import org.apache.xmlbeans.impl.jam.internal.elements.ElementContext;
   import org.apache.xmlbeans.impl.jam.JClass;
  +import org.apache.xmlbeans.impl.jam.JamServiceFactory;
   import com.sun.javadoc.ProgramElementDoc;
   import com.sun.javadoc.AnnotationDesc;
   import com.sun.javadoc.Parameter;
  @@ -39,10 +40,10 @@
    */
   public class Javadoc15DelegateImpl implements Javadoc15Delegate {
   
  -
   //temporary
  -private static boolean DEFAULTS_ENABLED = true;
  -public static final void setDefaultsEnabled(boolean b) { DEFAULTS_ENABLED = b; }
  +public static final void setDefaultsEnabled(boolean b) {
  +  JamServiceFactory.setAnnotationDefaultsEnabled(b);
  +}
   
     // ========================================================================
     // Variables
  @@ -106,7 +107,7 @@
           setAnnotationValue(name,jmt,aval,dest,sp);
         }
       }
  -if (!DEFAULTS_ENABLED) return;
  +if (!JamServiceFactory.ANNOTATION_DEFAULTS_ENABLED) return;
       { // also set values for the type's defaults
         AnnotationTypeDoc atd = src.annotationType();
         AnnotationTypeElementDoc[] elements = atd.elements();
  
  
  

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