X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=core%2Fsrc%2Fnet%2Fsf%2Fopenrocket%2Fsimulation%2Fcustomexpression%2FCustomExpression.java;h=ddafd9bf0624bad8d42ee25c8b8ff2c172a84c3b;hb=77f2457dc781c8c517ddef157c18491ad770f6c6;hp=2ac41ffc0651bc7a094998089af45607d37c5c28;hpb=cb6cee5e14451dd9b852723a30a5fbdee404d959;p=debian%2Fopenrocket diff --git a/core/src/net/sf/openrocket/simulation/customexpression/CustomExpression.java b/core/src/net/sf/openrocket/simulation/customexpression/CustomExpression.java index 2ac41ffc..ddafd9bf 100644 --- a/core/src/net/sf/openrocket/simulation/customexpression/CustomExpression.java +++ b/core/src/net/sf/openrocket/simulation/customexpression/CustomExpression.java @@ -175,7 +175,7 @@ public class CustomExpression implements Cloneable{ names.add(type.getName()); if (doc != null){ - ArrayList expressions = doc.getCustomExpressions(); + List expressions = doc.getCustomExpressions(); for (CustomExpression exp : expressions ){ if (exp != this) names.add(exp.getName()); @@ -412,7 +412,7 @@ public class CustomExpression implements Cloneable{ */ public void addToDocument(){ // Abort if exact expression already in - ArrayList expressions = doc.getCustomExpressions(); + List expressions = doc.getCustomExpressions(); if ( !expressions.isEmpty() ) { // check if expression already exists if ( expressions.contains(this) ){