langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/Comment.java
changeset 40587 1c355ea550ed
parent 36500 d31e4986dc8b
equal deleted inserted replaced
40519:e17429a7e843 40587:1c355ea550ed
    27 
    27 
    28 import java.io.IOException;
    28 import java.io.IOException;
    29 import java.io.Writer;
    29 import java.io.Writer;
    30 
    30 
    31 import jdk.javadoc.internal.doclets.toolkit.Content;
    31 import jdk.javadoc.internal.doclets.toolkit.Content;
    32 import jdk.javadoc.internal.doclets.toolkit.util.DocletAbortException;
       
    33 import jdk.javadoc.internal.doclets.toolkit.util.DocletConstants;
    32 import jdk.javadoc.internal.doclets.toolkit.util.DocletConstants;
    34 
    33 
    35 /**
    34 /**
    36  * Class for generating a comment for HTML pages of javadoc output.
    35  * Class for generating a comment for HTML pages of javadoc output.
    37  *
    36  *
    57 
    56 
    58     /**
    57     /**
    59      * This method is not supported by the class.
    58      * This method is not supported by the class.
    60      *
    59      *
    61      * @param content content that needs to be added
    60      * @param content content that needs to be added
    62      * @throws DocletAbortException this method will always throw a
    61      * @throws UnsupportedOperationException always
    63      *                              DocletAbortException because it
       
    64      *                              is not supported.
       
    65      */
    62      */
    66     public void addContent(Content content) {
    63     public void addContent(Content content) {
    67         throw new DocletAbortException("not supported");
    64         throw new UnsupportedOperationException();
    68     }
    65     }
    69 
    66 
    70     /**
    67     /**
    71      * This method is not supported by the class.
    68      * This method is not supported by the class.
    72      *
    69      *
    73      * @param stringContent string content that needs to be added
    70      * @param stringContent string content that needs to be added
    74      * @throws DocletAbortException this method will always throw a
    71      * @throws UnsupportedOperationException always
    75      *                              DocletAbortException because it
       
    76      *                              is not supported.
       
    77      */
    72      */
    78     @Override
    73     @Override
    79     public void addContent(CharSequence stringContent) {
    74     public void addContent(CharSequence stringContent) {
    80         throw new DocletAbortException("not supported");
    75         throw new UnsupportedOperationException();
    81     }
    76     }
    82 
    77 
    83     /**
    78     /**
    84      * {@inheritDoc}
    79      * {@inheritDoc}
    85      */
    80      */