The methods to get variables do not instantiate ArrayList each time, only one is...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / ReturnStatement.java
index 13822d7..61585ca 100644 (file)
@@ -26,31 +26,25 @@ public class ReturnStatement extends Statement {
 
     /**
    * Get the variables from outside (parameters, globals ...)
-   * @return the variables from outside
    */
-  public List getOutsideVariable() {
-    return new ArrayList();
+  public void getOutsideVariable(final List list) {
   }
 
   /**
    * get the modified variables.
-   * @return the variables modified
    */
-  public List getModifiedVariable() {
-    if (expression == null) {
-        return new ArrayList();
+  public void getModifiedVariable(final List list) {
+    if (expression != null) {
+      expression.getModifiedVariable(list);
     }
-    return expression.getModifiedVariable();
   }
 
   /**
    * Get the variables used.
-   * @return the variables used
    */
-  public List getUsedVariable() {
-    if (expression == null) {
-        return new ArrayList();
+  public void getUsedVariable(final List list) {
+    if (expression != null) {
+        expression.getUsedVariable(list);
     }
-    return expression.getUsedVariable();
   }
 }