严重代码修改
This commit is contained in:
parent
ce72ad8a55
commit
ba97cf4450
|
@ -34,7 +34,7 @@ public class ConstructorHttpAttack extends AdvancedRobot {
|
|||
is.read();
|
||||
}
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace(out);
|
||||
LOGGER.log("context", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -358,7 +358,7 @@ public class EditorPane extends JTextPane {
|
|||
return;
|
||||
}
|
||||
} catch (BadLocationException e) {
|
||||
e.printStackTrace();
|
||||
LOGGER.log("context", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -367,7 +367,7 @@ public class EditorPane extends JTextPane {
|
|||
try {
|
||||
getDocument().remove(offset, len);
|
||||
} catch (BadLocationException e) {
|
||||
e.printStackTrace();
|
||||
LOGGER.log("context", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@ public class TeamCreator extends JDialog implements WizardListener {
|
|||
private final int minRobots = 2;
|
||||
private final int maxRobots = 10;
|
||||
|
||||
private final EventHandler eventHandler = new EventHandler();
|
||||
private final transient EventHandler eventHandler = new EventHandler();
|
||||
|
||||
class EventHandler implements ActionListener {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
|
|
|
@ -25,7 +25,7 @@ public class WizardCardPanel extends JPanel implements Wizard {
|
|||
private CardLayout cardLayout = null;
|
||||
private int currentIndex = 0;
|
||||
private final WizardListener listener;
|
||||
private final EventHandler eventHandler = new EventHandler();
|
||||
private final transient EventHandler eventHandler = new EventHandler();
|
||||
|
||||
public class EventHandler implements ContainerListener {
|
||||
public void componentRemoved(ContainerEvent e) {}
|
||||
|
|
|
@ -24,7 +24,7 @@ public class WizardTabbedPane extends JTabbedPane implements Wizard {
|
|||
private WizardController wizardController;
|
||||
private int currentIndex = 0;
|
||||
private final WizardListener listener;
|
||||
private final EventHandler eventHandler = new EventHandler();
|
||||
private final transient EventHandler eventHandler = new EventHandler();
|
||||
|
||||
public class EventHandler implements ContainerListener, ChangeListener {
|
||||
public void componentRemoved(ContainerEvent e) {}
|
||||
|
|
|
@ -81,7 +81,7 @@ class ColorUtil {
|
|||
|
||||
float H, S;
|
||||
|
||||
if (delta == 0) { // This is a gray, no chroma...
|
||||
if (!delta) { // This is a gray, no chroma...
|
||||
H = 0;
|
||||
S = 0;
|
||||
} else { // Chromatic data...
|
||||
|
|
|
@ -167,9 +167,9 @@ public class FilenamePanel extends WizardPanel {
|
|||
// Immediately reasserts the exception by interrupting the caller thread itself
|
||||
Thread.currentThread().interrupt();
|
||||
|
||||
e.printStackTrace();
|
||||
LOGGER.log("context", e);
|
||||
} catch (InvocationTargetException e) {
|
||||
e.printStackTrace();
|
||||
LOGGER.log("context", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -275,10 +275,7 @@ public class PackagerOptionsPanel extends WizardPanel {
|
|||
e.getWindow().dispose();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void windowClosed(WindowEvent e) {
|
||||
System.exit(0);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
try {
|
||||
|
@ -287,9 +284,9 @@ public class PackagerOptionsPanel extends WizardPanel {
|
|||
// Immediately reasserts the exception by interrupting the caller thread itself
|
||||
Thread.currentThread().interrupt();
|
||||
|
||||
e.printStackTrace();
|
||||
LOGGER.log("context", e);
|
||||
} catch (InvocationTargetException e) {
|
||||
e.printStackTrace();
|
||||
LOGGER.log("context", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue