X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/Block.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/Block.java index acaf451..1f6c9a0 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/Block.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/Block.java @@ -1,7 +1,6 @@ package net.sourceforge.phpdt.internal.compiler.ast; import java.util.List; -import java.util.ArrayList; /** * A Block. @@ -10,10 +9,10 @@ import java.util.ArrayList; * }. * @author Matthieu Casanova */ -public class Block extends Statement { +public final class Block extends Statement { /** An array of statements inside the block. */ - public Statement[] statements; + public final Statement[] statements; /** * Create a block. @@ -45,7 +44,7 @@ public class Block extends Statement { final String s = AstNode.tabString(tab); final StringBuffer buff = new StringBuffer(s); buff.append("{\n"); //$NON-NLS-1$ - if (this.statements != null) { + if (statements != null) { for (int i = 0; i < statements.length; i++) { buff.append(statements[i].toString(tab + 1)).append(";\n");//$NON-NLS-1$ } @@ -56,6 +55,8 @@ public class Block extends Statement { /** * Get the variables from outside (parameters, globals ...) + * + * @param list the list where we will put variables */ public void getOutsideVariable(final List list) { for (int i = 0; i < statements.length; i++) { @@ -65,6 +66,8 @@ public class Block extends Statement { /** * get the modified variables. + * + * @param list the list where we will put variables */ public void getModifiedVariable(final List list) { for (int i = 0; i < statements.length; i++) { @@ -74,6 +77,8 @@ public class Block extends Statement { /** * Get the variables used. + * + * @param list the list where we will put variables */ public void getUsedVariable(final List list) { for (int i = 0; i < statements.length; i++) {