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