Update of /cvsroot/xdoclet/xjavadoc/src/xjavadoc
In directory sc8-pr-cvs1:/tmp/cvs-serv26643/xjavadoc/src/xjavadoc

Modified Files:
        CodeTest.java MethodImpl.java SourceClass.java 
Log Message:
o Fixed bug XJD-12
o Improved CodeUnit documentation
o Removed calls to deprecated xjavadoc methods

Index: CodeTest.java
===================================================================
RCS file: /cvsroot/xdoclet/xjavadoc/src/xjavadoc/CodeTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** CodeTest.java       30 Oct 2002 02:02:35 -0000      1.2
--- CodeTest.java       7 Jan 2003 10:00:22 -0000       1.3
***************
*** 7,16 ****
  import java.io.File;
  import junit.framework.AssertionFailedError;
- import xjavadoc.SourceClass;
  import xjavadoc.codeunit.CodeTestCase;
  
  /**
!  * This is an example of how to use CodeUnit. Very handy little tool for code
   * generators like XDoclet, Middlegen, UML2EJB and I'm sure there are more...
   *
   * @author    <a href="aslak.hellesoy at bekk.no">Aslak Helles&oslash;y</a>
--- 7,17 ----
  import java.io.File;
  import junit.framework.AssertionFailedError;
  import xjavadoc.codeunit.CodeTestCase;
  
  /**
!  * This is an example of how to extend CodeTestCase, a very handy extension of
!  * JUnit's TestCase class. It is intended to be used to test the output of
   * generators like XDoclet, Middlegen, UML2EJB and I'm sure there are more...
+  * You want to verify that the code you're generating is ok, don't you?
   *
   * @author    <a href="aslak.hellesoy at bekk.no">Aslak Helles&oslash;y</a>
***************
*** 47,50 ****
--- 48,59 ----
                        // ok
                }
+       }
+ 
+       public void testT3SameApiAsT4() throws Exception
+       {
+               File t1 = new File( "test/codeunit/CodeUnit3.java" );
+               File t2 = new File( "test/codeunit/CodeUnit4.java" );
+ 
+               assertApiEquals( t1, t2 );
        }
  }

Index: MethodImpl.java
===================================================================
RCS file: /cvsroot/xdoclet/xjavadoc/src/xjavadoc/MethodImpl.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -r1.20 -r1.21
*** MethodImpl.java     30 Oct 2002 02:02:34 -0000      1.20
--- MethodImpl.java     7 Jan 2003 10:00:23 -0000       1.21
***************
*** 5,8 ****
--- 5,10 ----
  package xjavadoc;
  
+ import java.lang.reflect.Modifier;
+ 
  /**
   * Describe what this class does
***************
*** 49,52 ****
--- 51,61 ----
        {
                super( containingClass );
+ 
+               // if we're in an interface, add public modifier even if it isn't 
+declared,
+               // since interface methods are always public.
+               if( containingClass.isInterface() )
+               {
+                       addModifier( Modifier.PUBLIC );
+               }
                instanceCount++;
        }
***************
*** 113,117 ****
                if( _dimensionAsString == null )
                {
!                       _dimensionAsString = Util.appendDimensionAsString( 
getReturnDimension(), new StringBuffer() ).toString();
                }
                return _dimensionAsString;
--- 122,126 ----
                if( _dimensionAsString == null )
                {
!                       _dimensionAsString = Util.appendDimensionAsString( 
getDimension(), new StringBuffer() ).toString();
                }
                return _dimensionAsString;
***************
*** 222,226 ****
                }
                sb.append( getReturnType().getQualifiedName() );
!               sb.append( getReturnDimensionAsString() );
                sb.append( ' ' );
                sb.append( getNameWithSignature() );
--- 231,235 ----
                }
                sb.append( getReturnType().getQualifiedName() );
!               sb.append( getDimensionAsString() );
                sb.append( ' ' );
                sb.append( getNameWithSignature() );

Index: SourceClass.java
===================================================================
RCS file: /cvsroot/xdoclet/xjavadoc/src/xjavadoc/SourceClass.java,v
retrieving revision 1.50
retrieving revision 1.51
diff -C2 -r1.50 -r1.51
*** SourceClass.java    22 Nov 2002 23:52:24 -0000      1.50
--- SourceClass.java    7 Jan 2003 10:00:23 -0000       1.51
***************
*** 120,124 ****
         * @param sourceFile
         * @param useNodeParser
-        * @deprecated           Use a method that doesn't take qualifiedName
         */
        public SourceClass( File sourceFile, boolean useNodeParser )
--- 120,123 ----



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to