import net.sf.openrocket.l10n.Translator;
import net.sf.openrocket.startup.Application;
+import net.sf.openrocket.util.ArrayUtils;
import net.sf.openrocket.util.Coordinate;
import net.sf.openrocket.util.MathUtil;
import net.sf.openrocket.util.Transformation;
double y = -getTabHeight();
int n = points.length;
- points = Arrays.copyOf(points, points.length + 4);
+ points = ArrayUtils.copyOf(points, points.length + 4);
points[n] = new Coordinate(x2, 0);
points[n + 1] = new Coordinate(x2, y);
points[n + 2] = new Coordinate(x1, y);
}
public boolean checkSymbol(){
- if (symbol.trim().isEmpty())
+ if ("".equals(symbol.trim()))
return false;
// No bad characters
}
public boolean checkName(){
- if (name.trim().isEmpty())
+ if ("".equals(name.trim()))
return false;
// No characters that could mess things up saving etc
* building the expression.
*/
public boolean checkExpression(){
- if (expression.trim().isEmpty()){
+ if ("".equals(expression.trim())){
return false;
}