User: pathoss 
  Date: 02/04/04 01:45:27

  Modified:    src/xjavadoc XDoc.java
  Log:
  Small performance optimizations. Made class final (inlining).
  
  Revision  Changes    Path
  1.25      +5 -4      xjavadoc/src/xjavadoc/XDoc.java
  
  Index: XDoc.java
  ===================================================================
  RCS file: /cvsroot/xdoclet/xjavadoc/src/xjavadoc/XDoc.java,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -w -r1.24 -r1.25
  --- XDoc.java 3 Apr 2002 22:51:28 -0000       1.24
  +++ XDoc.java 4 Apr 2002 09:45:27 -0000       1.25
  @@ -60,7 +60,7 @@
    * @todo-javadoc Write javadocs
    * @todo implement removeTag method.
    */
  -public class XDoc {
  +public final class XDoc {
        /**
         * @todo-javadoc Describe the field
         */
  @@ -188,6 +188,7 @@
                return _owner;
        }
   
  +
        /**
         * Describe what the method does
         *
  @@ -581,9 +582,9 @@
                        parse();
                }
                if (firstSentence == null) {
  -                     int dotIndex = _commentText.indexOf(".");
  +                     int dotIndex = _commentText.indexOf('.');
                        if (dotIndex != -1) {
  -                             firstSentence = _commentText.substring(0, dotIndex) + 
".";
  +                             firstSentence = _commentText.substring(0, dotIndex) + 
'.';
                        }
                        else {
                                firstSentence = _commentText;
  @@ -830,7 +831,7 @@
         * @todo-javadoc Write javadocs for method parameter
         * @todo-javadoc Write javadocs for return value
         */
  -     private String dotted(final String tagName) {
  +     private static String dotted(final String tagName) {
                if (tagName.indexOf('.') > -1) {
                        return tagName.replace('.', ':');
                }
  
  
  

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

Reply via email to