User: rinkrank
  Date: 02/04/03 17:03:09

  Modified:    core/src/xdoclet/doc/info InfoSubTask.java
                        InfoTagsHandler.java
  Log:
  The pretty settings from xjavadoc were (are still) applied to xdoclet sources.
  It seems JRefactory only loads it once. Since the xdoclet build now invokes xjavadoc
  build first, xjavadoc settings are used. I'm sorry if I have messed up the 
formatting.
  This commit has modified the header (so that BEKK is not included).
  
  Revision  Changes    Path
  1.20      +8 -38     xdoclet/core/src/xdoclet/doc/info/InfoSubTask.java
  
  Index: InfoSubTask.java
  ===================================================================
  RCS file: /cvsroot/xdoclet/xdoclet/core/src/xdoclet/doc/info/InfoSubTask.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -w -r1.19 -r1.20
  --- InfoSubTask.java  4 Apr 2002 00:27:47 -0000       1.19
  +++ InfoSubTask.java  4 Apr 2002 01:03:09 -0000       1.20
  @@ -1,37 +1,6 @@
   /*
  - * Copyright (c) 2001, Aslak Helles�y, BEKK Consulting
  + * Copyright (c) 2001,2002 The XDoclet team
    * All rights reserved.
  - *
  - * Redistribution and use in source and binary forms, with or without modification,
  - * are permitted provided that the following conditions are met:
  - *
  - * - Redistributions of source code must retain the above copyright notice,
  - *   this list of conditions and the following disclaimer.
  - *
  - * - Redistributions in binary form must reproduce the above copyright
  - *   notice, this list of conditions and the following disclaimer in the
  - *   documentation and/or other materials provided with the distribution.
  - *
  - * - Neither the name of BEKK Consulting nor the names of its
  - *   contributors may be used to endorse or promote products derived from
  - *   this software without specific prior written permission.
  - *
  - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR
  - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
  - * DAMAGE.
  - */
  -
  -/*
  - * Change log
  - *
    */
   package xdoclet.doc.info;
   
  @@ -65,7 +34,7 @@
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Aslak Helles�y</a>
    * @created September 18, 2001
  - * @version $Revision: 1.19 $
  + * @version $Revision: 1.20 $
    * @todo This is a test on class level
    * @todo This is another test on class level
    */
  @@ -91,8 +60,8 @@
   
        /**
         * @todo blabla (this is yet another test)
  -      * @param documentDocletTask Describe what the parameter does @todo-javadoc
  -      *      Write javadocs for method parameter
  +      * @param documentDocletTask Describe what the parameter does
  +      * @todo-javadoc Write javadocs for method parameter
         */
        public InfoSubTask(DocumentDocletTask documentDocletTask) {
                // Set default values
  @@ -263,10 +232,11 @@
   
   
        /**
  -      * Describe what the method does @todo-javadoc Write javadocs for method
  +      * Describe what the method does
         *
  -      * @exception XDocletException Describe the exception @todo-javadoc Write
  -      *      javadocs for exception
  +      * @exception XDocletException Describe the exception
  +      * @todo-javadoc Write javadocs for method
  +      * @todo-javadoc Write javadocs for exception
         */
        protected void engineStarted() throws XDocletException {
        }
  
  
  
  1.12      +156 -161  xdoclet/core/src/xdoclet/doc/info/InfoTagsHandler.java
  
  Index: InfoTagsHandler.java
  ===================================================================
  RCS file: /cvsroot/xdoclet/xdoclet/core/src/xdoclet/doc/info/InfoTagsHandler.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -w -r1.11 -r1.12
  --- InfoTagsHandler.java      4 Apr 2002 00:27:47 -0000       1.11
  +++ InfoTagsHandler.java      4 Apr 2002 01:03:09 -0000       1.12
  @@ -1,37 +1,6 @@
   /*
  - * Copyright (c) 2001, Aslak Helles�y, BEKK Consulting
  + * Copyright (c) 2001,2002 The XDoclet team
    * All rights reserved.
  - *
  - * Redistribution and use in source and binary forms, with or without modification,
  - * are permitted provided that the following conditions are met:
  - *
  - * - Redistributions of source code must retain the above copyright notice,
  - *   this list of conditions and the following disclaimer.
  - *
  - * - Redistributions in binary form must reproduce the above copyright
  - *   notice, this list of conditions and the following disclaimer in the
  - *   documentation and/or other materials provided with the distribution.
  - *
  - * - Neither the name of BEKK Consulting nor the names of its
  - *   contributors may be used to endorse or promote products derived from
  - *   this software without specific prior written permission.
  - *
  - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  - * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR
  - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  - * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  - * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
  - * DAMAGE.
  - */
  -
  -/*
  - * Change log
  - *
    */
   package xdoclet.doc.info;
   
  @@ -60,22 +29,24 @@
   /**
    * @author <a href="mailto:[EMAIL PROTECTED]";>Aslak Helles�y</a>
    * @created Oct 15, 2001
  - * @version $Revision: 1.11 $
  + * @version $Revision: 1.12 $
    */
   public class InfoTagsHandler extends XDocletTagSupport {
        /**
  -      * Describe what the method does @todo-javadoc Write javadocs for method
  +      * Describe what the method does
         *
  -      * @param template Describe what the parameter does @todo-javadoc Write
  -      *      javadocs for method parameter
  -      * @param properties Describe what the parameter does @todo-javadoc Write
  -      *      javadocs for method parameter
  -      * @exception XDocletException Describe the exception @todo-javadoc Write
  -      *      javadocs for exception
  +      * @param template Describe what the parameter does
  +      * @param properties Describe what the parameter does
  +      * @exception XDocletException Describe the exception
  +      * @todo-javadoc Write javadocs for method
  +      * @todo-javadoc Write javadocs for method parameter
  +      * @todo-javadoc Write javadocs for method parameter
  +      * @todo-javadoc Write javadocs for exception
         */
        public void ifTagCountNotZero(String template, Properties properties) throws 
XDocletException {
                String level = properties.getProperty("level");
                int tagCount = tagCount_Impl(level);
  +
                if (tagCount != 0) {
                        generate(template);
                }
  @@ -83,29 +54,32 @@
   
   
        /**
  -      * Describe what the method does @todo-javadoc Write javadocs for method
  +      * Describe what the method does
         *
  -      * @param properties Describe what the parameter does @todo-javadoc Write
  -      *      javadocs for method parameter
  -      * @return Describe the return value @todo-javadoc Write javadocs for return
  -      *      value
  -      * @exception XDocletException Describe the exception @todo-javadoc Write
  -      *      javadocs for exception
  +      * @param properties Describe what the parameter does
  +      * @return Describe the return value
  +      * @exception XDocletException Describe the exception
  +      * @todo-javadoc Write javadocs for method
  +      * @todo-javadoc Write javadocs for method parameter
  +      * @todo-javadoc Write javadocs for return value
  +      * @todo-javadoc Write javadocs for exception
         */
        public String tagCount(Properties properties) throws XDocletException {
                String level = properties.getProperty("level");
                int tagCount = tagCount_Impl(level);
  +
                return String.valueOf(tagCount);
        }
   
   
        /**
  -      * Describe what the method does @todo-javadoc Write javadocs for method
  +      * Describe what the method does
         *
  -      * @return Describe the return value @todo-javadoc Write javadocs for return
  -      *      value
  -      * @exception XDocletException Describe the exception @todo-javadoc Write
  -      *      javadocs for exception
  +      * @return Describe the return value
  +      * @exception XDocletException Describe the exception
  +      * @todo-javadoc Write javadocs for method
  +      * @todo-javadoc Write javadocs for return value
  +      * @todo-javadoc Write javadocs for exception
         */
        public String classTagValue() throws XDocletException {
                return getClassTagsHandler().classTagValue(getProperties());
  @@ -113,12 +87,13 @@
   
   
        /**
  -      * Describe what the method does @todo-javadoc Write javadocs for method
  +      * Describe what the method does
         *
  -      * @return Describe the return value @todo-javadoc Write javadocs for return
  -      *      value
  -      * @exception XDocletException Describe the exception @todo-javadoc Write
  -      *      javadocs for exception
  +      * @return Describe the return value
  +      * @exception XDocletException Describe the exception
  +      * @todo-javadoc Write javadocs for method
  +      * @todo-javadoc Write javadocs for return value
  +      * @todo-javadoc Write javadocs for exception
         */
        public String fieldTagValue() throws XDocletException {
                return getFieldTagsHandler().fieldTagValue(getProperties());
  @@ -126,12 +101,13 @@
   
   
        /**
  -      * Describe what the method does @todo-javadoc Write javadocs for method
  +      * Describe what the method does
         *
  -      * @return Describe the return value @todo-javadoc Write javadocs for return
  -      *      value
  -      * @exception XDocletException Describe the exception @todo-javadoc Write
  -      *      javadocs for exception
  +      * @return Describe the return value
  +      * @exception XDocletException Describe the exception
  +      * @todo-javadoc Write javadocs for method
  +      * @todo-javadoc Write javadocs for return value
  +      * @todo-javadoc Write javadocs for exception
         */
        public String constructorTagValue() throws XDocletException {
                return 
getConstructorTagsHandler().constructorTagValue(getProperties());
  @@ -139,12 +115,13 @@
   
   
        /**
  -      * Describe what the method does @todo-javadoc Write javadocs for method
  +      * Describe what the method does
         *
  -      * @return Describe the return value @todo-javadoc Write javadocs for return
  -      *      value
  -      * @exception XDocletException Describe the exception @todo-javadoc Write
  -      *      javadocs for exception
  +      * @return Describe the return value
  +      * @exception XDocletException Describe the exception
  +      * @todo-javadoc Write javadocs for method
  +      * @todo-javadoc Write javadocs for return value
  +      * @todo-javadoc Write javadocs for exception
         */
        public String methodTagValue() throws XDocletException {
                return getMethodTagsHandler().methodTagValue(getProperties());
  @@ -152,12 +129,13 @@
   
   
        /**
  -      * Describe what the method does @todo-javadoc Write javadocs for method
  +      * Describe what the method does
         *
  -      * @param template Describe what the parameter does @todo-javadoc Write
  -      *      javadocs for method parameter
  -      * @exception XDocletException Describe the exception @todo-javadoc Write
  -      *      javadocs for exception
  +      * @param template Describe what the parameter does
  +      * @exception XDocletException Describe the exception
  +      * @todo-javadoc Write javadocs for method
  +      * @todo-javadoc Write javadocs for method parameter
  +      * @todo-javadoc Write javadocs for exception
         */
        public void forAllClassTags(String template) throws XDocletException {
                getClassTagsHandler().forAllClassTags(template, getProperties());
  @@ -165,12 +143,13 @@
   
   
        /**
  -      * Describe what the method does @todo-javadoc Write javadocs for method
  +      * Describe what the method does
         *
  -      * @param template Describe what the parameter does @todo-javadoc Write
  -      *      javadocs for method parameter
  -      * @exception XDocletException Describe the exception @todo-javadoc Write
  -      *      javadocs for exception
  +      * @param template Describe what the parameter does
  +      * @exception XDocletException Describe the exception
  +      * @todo-javadoc Write javadocs for method
  +      * @todo-javadoc Write javadocs for method parameter
  +      * @todo-javadoc Write javadocs for exception
         */
        public void forAllConstructorTags(String template) throws XDocletException {
                getConstructorTagsHandler().forAllConstructorTags(template, 
getProperties());
  @@ -178,12 +157,13 @@
   
   
        /**
  -      * Describe what the method does @todo-javadoc Write javadocs for method
  +      * Describe what the method does
         *
  -      * @param template Describe what the parameter does @todo-javadoc Write
  -      *      javadocs for method parameter
  -      * @exception XDocletException Describe the exception @todo-javadoc Write
  -      *      javadocs for exception
  +      * @param template Describe what the parameter does
  +      * @exception XDocletException Describe the exception
  +      * @todo-javadoc Write javadocs for method
  +      * @todo-javadoc Write javadocs for method parameter
  +      * @todo-javadoc Write javadocs for exception
         */
        public void forAllMethodTags(String template) throws XDocletException {
                getMethodTagsHandler().forAllMethodTags(template, getProperties());
  @@ -191,12 +171,13 @@
   
   
        /**
  -      * Describe what the method does @todo-javadoc Write javadocs for method
  +      * Describe what the method does
         *
  -      * @param template Describe what the parameter does @todo-javadoc Write
  -      *      javadocs for method parameter
  -      * @exception XDocletException Describe the exception @todo-javadoc Write
  -      *      javadocs for exception
  +      * @param template Describe what the parameter does
  +      * @exception XDocletException Describe the exception
  +      * @todo-javadoc Write javadocs for method
  +      * @todo-javadoc Write javadocs for method parameter
  +      * @todo-javadoc Write javadocs for exception
         */
        public void forAllFieldTags(String template) throws XDocletException {
                getFieldTagsHandler().forAllFieldTags(template, getProperties());
  @@ -204,12 +185,13 @@
   
   
        /**
  -      * Describe what the method does @todo-javadoc Write javadocs for method
  +      * Describe what the method does
         *
  -      * @return Describe the return value @todo-javadoc Write javadocs for return
  -      *      value
  -      * @exception XDocletException Describe the exception @todo-javadoc Write
  -      *      javadocs for exception
  +      * @return Describe the return value
  +      * @exception XDocletException Describe the exception
  +      * @todo-javadoc Write javadocs for method
  +      * @todo-javadoc Write javadocs for return value
  +      * @todo-javadoc Write javadocs for exception
         */
        public String projectname() throws XDocletException {
                InfoSubTask infoSubTask = 
(InfoSubTask)getDocletContext().getActiveSubTask();
  @@ -219,12 +201,13 @@
   
   
        /**
  -      * Describe what the method does @todo-javadoc Write javadocs for method
  +      * Describe what the method does
         *
  -      * @return Describe the return value @todo-javadoc Write javadocs for return
  -      *      value
  -      * @exception XDocletException Describe the exception @todo-javadoc Write
  -      *      javadocs for exception
  +      * @return Describe the return value
  +      * @exception XDocletException Describe the exception
  +      * @todo-javadoc Write javadocs for method
  +      * @todo-javadoc Write javadocs for return value
  +      * @todo-javadoc Write javadocs for exception
         */
        public String rootlink() throws XDocletException {
                String packageName = "";
  @@ -260,8 +243,8 @@
         * Gets the MethodTagsHandler attribute of the InfoTagsHandler object
         *
         * @return The MethodTagsHandler value
  -      * @exception XDocletException Describe the exception @todo-javadoc Write
  -      *      javadocs for exception
  +      * @exception XDocletException Describe the exception
  +      * @todo-javadoc Write javadocs for exception
         */
        private MethodTagsHandler getMethodTagsHandler() throws XDocletException {
                try {
  @@ -277,8 +260,8 @@
         * Gets the FieldTagsHandler attribute of the InfoTagsHandler object
         *
         * @return The FieldTagsHandler value
  -      * @exception XDocletException Describe the exception @todo-javadoc Write
  -      *      javadocs for exception
  +      * @exception XDocletException Describe the exception
  +      * @todo-javadoc Write javadocs for exception
         */
        private FieldTagsHandler getFieldTagsHandler() throws XDocletException {
                try {
  @@ -294,8 +277,8 @@
         * Gets the ConstructorTagsHandler attribute of the InfoTagsHandler object
         *
         * @return The ConstructorTagsHandler value
  -      * @exception XDocletException Describe the exception @todo-javadoc Write
  -      *      javadocs for exception
  +      * @exception XDocletException Describe the exception
  +      * @todo-javadoc Write javadocs for exception
         */
        private ConstructorTagsHandler getConstructorTagsHandler() throws 
XDocletException {
                try {
  @@ -311,8 +294,8 @@
         * Gets the ClassTagsHandler attribute of the InfoTagsHandler object
         *
         * @return The ClassTagsHandler value
  -      * @exception XDocletException Describe the exception @todo-javadoc Write
  -      *      javadocs for exception
  +      * @exception XDocletException Describe the exception
  +      * @todo-javadoc Write javadocs for exception
         */
        private ClassTagsHandler getClassTagsHandler() throws XDocletException {
                try {
  @@ -328,8 +311,8 @@
         * Gets the PackageTagsHandler attribute of the InfoTagsHandler object
         *
         * @return The PackageTagsHandler value
  -      * @exception XDocletException Describe the exception @todo-javadoc Write
  -      *      javadocs for exception
  +      * @exception XDocletException Describe the exception
  +      * @todo-javadoc Write javadocs for exception
         */
        private PackageTagsHandler getPackageTagsHandler() throws XDocletException {
                try {
  @@ -342,14 +325,15 @@
   
   
        /**
  -      * Describe what the method does @todo-javadoc Write javadocs for method
  +      * Describe what the method does
         *
  -      * @param level Describe what the parameter does @todo-javadoc Write javadocs
  -      *      for method parameter
  -      * @return Describe the return value @todo-javadoc Write javadocs for return
  -      *      value
  -      * @exception XDocletException Describe the exception @todo-javadoc Write
  -      *      javadocs for exception
  +      * @param level Describe what the parameter does
  +      * @return Describe the return value
  +      * @exception XDocletException Describe the exception
  +      * @todo-javadoc Write javadocs for method
  +      * @todo-javadoc Write javadocs for method parameter
  +      * @todo-javadoc Write javadocs for return value
  +      * @todo-javadoc Write javadocs for exception
         */
        private int tagCount_Impl(String level) throws XDocletException {
                int tagCount = 0;
  @@ -384,14 +368,15 @@
   
   
        /**
  -      * Describe what the method does @todo-javadoc Write javadocs for method
  +      * Describe what the method does
         *
  -      * @param attributes Describe what the parameter does @todo-javadoc Write
  -      *      javadocs for method parameter
  -      * @return Describe the return value @todo-javadoc Write javadocs for return
  -      *      value
  -      * @exception XDocletException Describe the exception @todo-javadoc Write
  -      *      javadocs for exception
  +      * @param attributes Describe what the parameter does
  +      * @return Describe the return value
  +      * @exception XDocletException Describe the exception
  +      * @todo-javadoc Write javadocs for method
  +      * @todo-javadoc Write javadocs for method parameter
  +      * @todo-javadoc Write javadocs for return value
  +      * @todo-javadoc Write javadocs for exception
         */
        private int tagCountInAll_Impl(Properties attributes) throws XDocletException {
                int tagCount = 0;
  @@ -416,21 +401,23 @@
   
   
        /**
  -      * Describe what the method does @todo-javadoc Write javadocs for method
  +      * Describe what the method does
         *
  -      * @param attributes Describe what the parameter does @todo-javadoc Write
  -      *      javadocs for method parameter
  -      * @param pakkage Describe what the parameter does @todo-javadoc Write javadocs
  -      *      for method parameter
  -      * @return Describe the return value @todo-javadoc Write javadocs for return
  -      *      value
  -      * @exception XDocletException Describe the exception @todo-javadoc Write
  -      *      javadocs for exception
  +      * @param attributes Describe what the parameter does
  +      * @param pakkage Describe what the parameter does
  +      * @return Describe the return value
  +      * @exception XDocletException Describe the exception
  +      * @todo-javadoc Write javadocs for method
  +      * @todo-javadoc Write javadocs for method parameter
  +      * @todo-javadoc Write javadocs for method parameter
  +      * @todo-javadoc Write javadocs for return value
  +      * @todo-javadoc Write javadocs for exception
         */
        private int tagCountInPackage_Impl(Properties attributes, XPackage pakkage) 
throws XDocletException {
                int tagCount = 0;
                String tag_name = attributes.getProperty("tagName");
                XClass[] classes = pakkage.classes();
  +
                for (int i = 0; i < classes.length; i++) {
                        tagCount += tagCountInClass_Impl(attributes, classes[i], true, 
true, true, true);
                }
  @@ -439,24 +426,25 @@
   
   
        /**
  -      * Describe what the method does @todo-javadoc Write javadocs for method
  +      * Describe what the method does
         *
  -      * @param attributes Describe what the parameter does @todo-javadoc Write
  -      *      javadocs for method parameter
  -      * @param clazz Describe what the parameter does @todo-javadoc Write javadocs
  -      *      for method parameter
  -      * @param countClass Describe what the parameter does @todo-javadoc Write
  -      *      javadocs for method parameter
  -      * @param countFields Describe what the parameter does @todo-javadoc Write
  -      *      javadocs for method parameter
  -      * @param countConstructors Describe what the parameter does @todo-javadoc
  -      *      Write javadocs for method parameter
  -      * @param countMethods Describe what the parameter does @todo-javadoc Write
  -      *      javadocs for method parameter
  -      * @return Describe the return value @todo-javadoc Write javadocs for return
  -      *      value
  -      * @exception XDocletException Describe the exception @todo-javadoc Write
  -      *      javadocs for exception
  +      * @param attributes Describe what the parameter does
  +      * @param clazz Describe what the parameter does
  +      * @param countClass Describe what the parameter does
  +      * @param countFields Describe what the parameter does
  +      * @param countConstructors Describe what the parameter does
  +      * @param countMethods Describe what the parameter does
  +      * @return Describe the return value
  +      * @exception XDocletException Describe the exception
  +      * @todo-javadoc Write javadocs for method
  +      * @todo-javadoc Write javadocs for method parameter
  +      * @todo-javadoc Write javadocs for method parameter
  +      * @todo-javadoc Write javadocs for method parameter
  +      * @todo-javadoc Write javadocs for method parameter
  +      * @todo-javadoc Write javadocs for method parameter
  +      * @todo-javadoc Write javadocs for method parameter
  +      * @todo-javadoc Write javadocs for return value
  +      * @todo-javadoc Write javadocs for exception
         */
        private int tagCountInClass_Impl(Properties attributes, XClass clazz, boolean 
countClass, boolean countFields, boolean countConstructors, boolean countMethods) 
throws XDocletException {
                int tagCount = 0;
  @@ -467,14 +455,17 @@
                }
                if (countConstructors) {
                        XConstructor[] constructors = clazz.constructors();
  +
                        tagCount += tagCount(constructors, tagName);
                }
                if (countMethods) {
                        XMethod[] methods = clazz.methods();
  +
                        tagCount += tagCount(methods, tagName);
                }
                if (countFields) {
                        XField[] fields = clazz.fields();
  +
                        tagCount += tagCount(fields, tagName);
                }
                return tagCount;
  @@ -482,33 +473,37 @@
   
   
        /**
  -      * Describe what the method does @todo-javadoc Write javadocs for method
  +      * Describe what the method does
         *
  -      * @param programElement Describe what the parameter does @todo-javadoc Write
  -      *      javadocs for method parameter
  -      * @param tagName Describe what the parameter does @todo-javadoc Write javadocs
  -      *      for method parameter
  -      * @return Describe the return value @todo-javadoc Write javadocs for return
  -      *      value
  +      * @param programElement Describe what the parameter does
  +      * @param tagName Describe what the parameter does
  +      * @return Describe the return value
  +      * @todo-javadoc Write javadocs for method
  +      * @todo-javadoc Write javadocs for method parameter
  +      * @todo-javadoc Write javadocs for method parameter
  +      * @todo-javadoc Write javadocs for return value
         */
        private int tagCount(XProgramElement programElement, String tagName) {
                int count = programElement.doc().tags(tagName, false).length;
  +
                return count;
        }
   
   
        /**
  -      * Describe what the method does @todo-javadoc Write javadocs for method
  +      * Describe what the method does
         *
  -      * @param programElements Describe what the parameter does @todo-javadoc Write
  -      *      javadocs for method parameter
  -      * @param tagName Describe what the parameter does @todo-javadoc Write javadocs
  -      *      for method parameter
  -      * @return Describe the return value @todo-javadoc Write javadocs for return
  -      *      value
  +      * @param programElements Describe what the parameter does
  +      * @param tagName Describe what the parameter does
  +      * @return Describe the return value
  +      * @todo-javadoc Write javadocs for method
  +      * @todo-javadoc Write javadocs for method parameter
  +      * @todo-javadoc Write javadocs for method parameter
  +      * @todo-javadoc Write javadocs for return value
         */
        private int tagCount(XProgramElement[] programElements, String tagName) {
                int count = 0;
  +
                for (int i = 0; i < programElements.length; i++) {
                        count += tagCount(programElements[i], tagName);
                }
  
  
  

_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to