summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
f6930d9)
git-svn-id: https://openrocket.svn.sourceforge.net/svnroot/openrocket/trunk@961
180e2498-e6e9-4542-8430-
84ac67f01cd8
import net.sf.openrocket.l10n.Translator;
import net.sf.openrocket.startup.Application;
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;
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;
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);
points[n] = new Coordinate(x2, 0);
points[n + 1] = new Coordinate(x2, y);
points[n + 2] = new Coordinate(x1, y);
}
public boolean checkSymbol(){
}
public boolean checkSymbol(){
- if (symbol.trim().isEmpty())
+ if ("".equals(symbol.trim()))
return false;
// No bad characters
return false;
// No bad characters
}
public boolean checkName(){
}
public boolean checkName(){
- if (name.trim().isEmpty())
+ if ("".equals(name.trim()))
return false;
// No characters that could mess things up saving etc
return false;
// No characters that could mess things up saving etc
* building the expression.
*/
public boolean checkExpression(){
* building the expression.
*/
public boolean checkExpression(){
- if (expression.trim().isEmpty()){
+ if ("".equals(expression.trim())){