Revert "fixed 4 bugs found by FindBugs plugin in Eclipse"
This reverts commit 69130292f2edd7719f0b2dea9913796fa3d41461.
This commit is contained in:
parent
92952316ed
commit
0acc9595c8
@ -117,7 +117,7 @@ public abstract class ComponentPresetDatabase extends Database<ComponentPreset>
|
||||
@Override
|
||||
public List<ComponentPreset> listForTypes( List<ComponentPreset.Type> types ) {
|
||||
blockUntilLoaded();
|
||||
return listForTypes( types.toArray(new ComponentPreset.Type[types.size()]) );
|
||||
return listForTypes( (ComponentPreset.Type[]) types.toArray() );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -49,7 +49,7 @@ public class RocketSaver extends RocketComponentSaver {
|
||||
if (id.equals(defId))
|
||||
str += " default=\"true\"";
|
||||
|
||||
if (rocket.getMotorConfigurationName(id).isEmpty()) {
|
||||
if (rocket.getMotorConfigurationName(id) == "") {
|
||||
str += "/>";
|
||||
} else {
|
||||
str += "><name>" + net.sf.openrocket.file.RocketSaver.escapeXML(rocket.getMotorConfigurationName(id))
|
||||
|
@ -6,7 +6,6 @@ import java.beans.PropertyChangeListener;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.EventObject;
|
||||
import java.util.List;
|
||||
|
||||
@ -300,7 +299,7 @@ public class BooleanModel extends AbstractAction implements StateChangeListener,
|
||||
|
||||
PropertyChangeListener[] listeners = this.getPropertyChangeListeners();
|
||||
if (listeners.length > 0) {
|
||||
log.warn("Invalidating " + this + " while still having listeners " + Arrays.toString(listeners));
|
||||
log.warn("Invalidating " + this + " while still having listeners " + listeners);
|
||||
for (PropertyChangeListener l : listeners) {
|
||||
this.removePropertyChangeListener(l);
|
||||
}
|
||||
|
@ -670,7 +670,7 @@ public class RocketPanel extends JPanel implements TreeSelectionListener, Change
|
||||
|
||||
// Check whether data is already up to date
|
||||
if (flightDataFunctionalID == configuration.getRocket().getFunctionalModID() &&
|
||||
flightDataMotorID.equals(configuration.getMotorConfigurationID())) {
|
||||
flightDataMotorID == configuration.getMotorConfigurationID()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user