Adds comments to empty blocks in javax.swing.text.html.parser

2005-10-19  Roman Kennke  <[EMAIL PROTECTED]>

        * javax/swing/text/html/parser/ContentModel.java
        * javax/swing/text/html/parser/DTD.java
        * javax/swing/text/html/parser/DocumentParser.java
        * javax/swing/text/html/parser/Element.java
        * javax/swing/text/html/parser/Parser.java
        Filled emtpy blocks with comments.


/Roman
Index: javax/swing/text/html/parser/ContentModel.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/text/html/parser/ContentModel.java,v
retrieving revision 1.3
diff -u -r1.3 ContentModel.java
--- javax/swing/text/html/parser/ContentModel.java	2 Jul 2005 20:32:51 -0000	1.3
+++ javax/swing/text/html/parser/ContentModel.java	19 Oct 2005 14:31:58 -0000
@@ -98,6 +98,7 @@
   /** Create a content model initializing all fields to default values. */
   public ContentModel()
   {
+    // FIXME: Implement this.
   }
 
   /**
Index: javax/swing/text/html/parser/DTD.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/text/html/parser/DTD.java,v
retrieving revision 1.5
diff -u -r1.5 DTD.java
--- javax/swing/text/html/parser/DTD.java	15 Sep 2005 23:12:17 -0000	1.5
+++ javax/swing/text/html/parser/DTD.java	19 Oct 2005 14:31:58 -0000
@@ -591,8 +591,7 @@
    * @param name the name of the entity
    * @param type the type of the entity, a bitwise combination
    * of GENERAL, PARAMETER, SYSTEM and PUBLIC.
-   * @throws an error if the parameter is both GENERAL and PARAMETER
-   * of both PUBLIC and SYSTEM.
+   *
    * @return the created entity
    */
   private Entity newEntity(String name, int type)
Index: javax/swing/text/html/parser/DocumentParser.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/text/html/parser/DocumentParser.java,v
retrieving revision 1.7
diff -u -r1.7 DocumentParser.java
--- javax/swing/text/html/parser/DocumentParser.java	27 Jul 2005 13:29:52 -0000	1.7
+++ javax/swing/text/html/parser/DocumentParser.java	19 Oct 2005 14:31:58 -0000
@@ -167,7 +167,8 @@
    * to get a default DTD; you must either refer to the implementation -
    * specific packages, write your own DTD or obtain the working instance
    * of parser in other way, for example, by calling
-   * [EMAIL PROTECTED] javax.swing.text.html.HTMLEditorKit#getParser()}.
+   * [EMAIL PROTECTED] javax.swing.text.html.HTMLEditorKit#getParser}.
+   *
    * @param a_dtd a DTD to use.
    */
   public DocumentParser(DTD a_dtd)
@@ -212,6 +213,7 @@
    */
   protected void handleComment(char[] comment)
   {
+    // This default implementation does nothing.
   }
 
   /**
@@ -224,6 +226,7 @@
   protected void handleEmptyTag(TagElement tag)
                          throws javax.swing.text.ChangedCharSetException
   {
+    // This default implementation does nothing.
   }
 
   /**
@@ -234,11 +237,13 @@
    */
   protected void handleEndTag(TagElement tag)
   {
+    // This default implementation does nothing.
   }
 
   /* Handle error that has occured in the given line. */
   protected void handleError(int line, String message)
   {
+    // This default implementation does nothing.
   }
 
   /**
@@ -249,6 +254,7 @@
    */
   protected void handleStartTag(TagElement tag)
   {
+    // This default implementation does nothing.
   }
 
   /**
@@ -257,5 +263,6 @@
    */
   protected void handleText(char[] text)
   {
+    // This default implementation does nothing.
   }
 }
Index: javax/swing/text/html/parser/Element.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/text/html/parser/Element.java,v
retrieving revision 1.4
diff -u -r1.4 Element.java
--- javax/swing/text/html/parser/Element.java	27 Jul 2005 08:09:37 -0000	1.4
+++ javax/swing/text/html/parser/Element.java	19 Oct 2005 14:31:58 -0000
@@ -148,10 +148,10 @@
   /**
    * The default constructor must have package level access in this
    * class. Use DTD.defineElement(..) to create an element when required.
-   * @todo MAKE THIS PACKAGE in the final version. Now the Parser needs it!
    */
   Element()
   {
+    // Nothing to do here.
   }
 
   /**
Index: javax/swing/text/html/parser/Parser.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/text/html/parser/Parser.java,v
retrieving revision 1.5
diff -u -r1.5 Parser.java
--- javax/swing/text/html/parser/Parser.java	27 Jul 2005 08:09:37 -0000	1.5
+++ javax/swing/text/html/parser/Parser.java	19 Oct 2005 14:31:58 -0000
@@ -256,6 +256,7 @@
    */
   protected void endTag(boolean omitted)
   {
+    // This default implementation does nothing.
   }
 
   /**
@@ -310,6 +311,7 @@
    */
   protected void handleComment(char[] comment)
   {
+    // This default implementation does nothing.
   }
 
   /**
@@ -333,6 +335,7 @@
   protected void handleEmptyTag(TagElement tag)
     throws ChangedCharSetException
   {
+    // This default implementation does nothing.
   }
 
   /**
@@ -343,11 +346,13 @@
    */
   protected void handleEndTag(TagElement tag)
   {
+    // This default implementation does nothing.
   }
 
   /* Handle error that has occured in the given line. */
   protected void handleError(int line, String message)
   {
+    // This default implementation does nothing.
   }
 
   /**
@@ -358,6 +363,7 @@
    */
   protected void handleStartTag(TagElement tag)
   {
+    // This default implementation does nothing.
   }
 
   /**
@@ -376,6 +382,7 @@
    */
   protected void handleText(char[] text)
   {
+    // This default implementation does nothing.
   }
 
   /**
@@ -387,6 +394,7 @@
    */
   protected void handleTitle(char[] title)
   {
+    // This default implementation does nothing.
   }
 
   /**
@@ -420,6 +428,7 @@
    */
   protected void markFirstTime(Element element)
   {
+    // This default implementation does nothing.
   }
 
   /**
@@ -432,5 +441,6 @@
   protected void startTag(TagElement tag)
     throws ChangedCharSetException
   {
+    // This default implementation does nothing.
   }
 }
_______________________________________________
Classpath-patches mailing list
Classpath-patches@gnu.org
http://lists.gnu.org/mailman/listinfo/classpath-patches

Reply via email to