diff options
author | Leif Åstrand <leif@vaadin.com> | 2012-09-05 19:50:56 +0300 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2012-09-05 19:51:15 +0300 |
commit | 7d25670284b11c7c62ba25183f265227cb3dba83 (patch) | |
tree | c8e76eb70dd3cdd5cf59a99419635f2188b25c24 /server/src/org/jsoup/nodes/Comment.java | |
parent | 1d0c96de9595c243d88471476d21e5f248be63f7 (diff) | |
download | vaadin-framework-7d25670284b11c7c62ba25183f265227cb3dba83.tar.gz vaadin-framework-7d25670284b11c7c62ba25183f265227cb3dba83.zip |
Reformat project
Diffstat (limited to 'server/src/org/jsoup/nodes/Comment.java')
-rw-r--r-- | server/src/org/jsoup/nodes/Comment.java | 40 |
1 files changed, 25 insertions, 15 deletions
diff --git a/server/src/org/jsoup/nodes/Comment.java b/server/src/org/jsoup/nodes/Comment.java index 37fd4368fa..6abe0e3066 100644 --- a/server/src/org/jsoup/nodes/Comment.java +++ b/server/src/org/jsoup/nodes/Comment.java @@ -1,45 +1,55 @@ package org.jsoup.nodes; /** - A comment node. - - @author Jonathan Hedley, jonathan@hedley.net */ + * A comment node. + * + * @author Jonathan Hedley, jonathan@hedley.net + */ public class Comment extends Node { private static final String COMMENT_KEY = "comment"; /** - Create a new comment node. - @param data The contents of the comment - @param baseUri base URI + * Create a new comment node. + * + * @param data + * The contents of the comment + * @param baseUri + * base URI */ public Comment(String data, String baseUri) { super(baseUri); attributes.put(COMMENT_KEY, data); } + @Override public String nodeName() { return "#comment"; } /** - Get the contents of the comment. - @return comment content + * Get the contents of the comment. + * + * @return comment content */ public String getData() { return attributes.get(COMMENT_KEY); } - void outerHtmlHead(StringBuilder accum, int depth, Document.OutputSettings out) { - if (out.prettyPrint()) + @Override + void outerHtmlHead(StringBuilder accum, int depth, + Document.OutputSettings out) { + if (out.prettyPrint()) { indent(accum, depth, out); - accum - .append("<!--") - .append(getData()) - .append("-->"); + } + accum.append("<!--").append(getData()).append("-->"); } - void outerHtmlTail(StringBuilder accum, int depth, Document.OutputSettings out) {} + @Override + void outerHtmlTail(StringBuilder accum, int depth, + Document.OutputSettings out) { + } + @Override public String toString() { return outerHtml(); } |