X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/Else.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/Else.java index 367abc3..47748bc 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/Else.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/Else.java @@ -1,6 +1,5 @@ package net.sourceforge.phpdt.internal.compiler.ast; -import java.util.ArrayList; import java.util.List; /** @@ -8,10 +7,10 @@ import java.util.List; * it's else * @author Matthieu Casanova */ -public class Else extends Statement { +public final class Else extends Statement { /** the statements. */ - public Statement[] statements; + private final Statement[] statements; /** * An else statement bad version ( : endif). @@ -36,8 +35,8 @@ public class Else extends Statement { final int sourceStart, final int sourceEnd) { super(sourceStart, sourceEnd); - this.statements = new Statement[1]; - this.statements[0] = statement; + statements = new Statement[1]; + statements[0] = statement; } /** @@ -58,6 +57,8 @@ public class Else 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++) { @@ -67,6 +68,8 @@ public class Else 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++) { @@ -76,6 +79,8 @@ public class Else 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++) {