X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/HTMLCode.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/HTMLCode.java index 7e9d327..ad6ff93 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/HTMLCode.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/HTMLCode.java @@ -8,10 +8,10 @@ import java.util.List; * It will contains some html, javascript, css ... * @author Matthieu Casanova */ -public class HTMLCode extends AstNode { +public final class HTMLCode extends AstNode { /** The html Code. */ - public char[] htmlCode; + private final String htmlCode; /** * Create an html Block. @@ -19,7 +19,7 @@ public class HTMLCode extends AstNode { * @param sourceStart the starting offset * @param sourceEnd the ending offset */ - public HTMLCode(final char[] htmlCode, + public HTMLCode(final String htmlCode, final int sourceStart, final int sourceEnd) { super(sourceStart, sourceEnd); @@ -31,7 +31,7 @@ public class HTMLCode extends AstNode { * @return the text of the block */ public String toString() { - return new String(htmlCode); + return htmlCode; } /** @@ -40,27 +40,27 @@ public class HTMLCode extends AstNode { * @return the text of the block */ public String toString(final int tab) { - return new String(htmlCode) + " ";//$NON-NLS-1$ + return htmlCode + ' '; } /** * Get the variables from outside (parameters, globals ...) - * @return an empty list + * + * @param list the list where we will put variables */ - public void getOutsideVariable(final List list) { - } + public void getOutsideVariable(final List list) {} /** * get the modified variables. - * @return an empty list + * + * @param list the list where we will put variables */ - public void getModifiedVariable(final List list) { - } + public void getModifiedVariable(final List list) {} /** * Get the variables used. - * @return an empty list + * + * @param list the list where we will put variables */ - public void getUsedVariable(final List list) { - } + public void getUsedVariable(final List list) {} }