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 / FieldDeclaration.java
index 61d4c8b..b41df20 100644 (file)
@@ -23,6 +23,7 @@ public class FieldDeclaration extends Statement implements Outlineable {
 
   private Object parent;
   private Position position;
+
   /**
    * Create a new field.
    * @param vars the array of variables.
@@ -61,7 +62,7 @@ public class FieldDeclaration extends Statement implements Outlineable {
    * @return the image that represents a php variable
    */
   public ImageDescriptor getImage() {
-      return PHPUiImages.DESC_VAR;
+    return PHPUiImages.DESC_VAR;
   }
 
   public Object getParent() {
@@ -72,27 +73,21 @@ public class FieldDeclaration extends Statement implements Outlineable {
     return position;
   }
 
-    /**
+  /**
    * Get the variables from outside (parameters, globals ...)
-   * @return the variables from outside
    */
-  public List getOutsideVariable() {
-    return new ArrayList(1);
+  public void getOutsideVariable(final List list) {
   }
 
   /**
    * get the modified variables.
-   * @return the variables from we change value
    */
-  public List getModifiedVariable() {
-    return new ArrayList(1);
+  public void getModifiedVariable(final List list) {
   }
 
   /**
    * Get the variables used.
-   * @return the variables used
    */
-  public List getUsedVariable() {
-    return new ArrayList(1);
+  public void getUsedVariable(final List list) {
   }
 }