Removed some trivial warnings

This commit is contained in:
Cristian Maglie 2014-01-26 23:13:01 +01:00
parent 9bc1824b96
commit dd911bc79d
6 changed files with 6 additions and 4 deletions

View File

@ -14,6 +14,7 @@ import java.awt.event.WindowEvent;
import static processing.app.I18n._; import static processing.app.I18n._;
@SuppressWarnings("serial")
public abstract class AbstractMonitor extends JFrame implements MessageConsumer { public abstract class AbstractMonitor extends JFrame implements MessageConsumer {
protected final JLabel noLineEndingAlert; protected final JLabel noLineEndingAlert;

View File

@ -5,6 +5,7 @@ import javax.swing.undo.CannotUndoException;
import javax.swing.undo.UndoManager; import javax.swing.undo.UndoManager;
import javax.swing.undo.UndoableEdit; import javax.swing.undo.UndoableEdit;
@SuppressWarnings("serial")
public class LastUndoableEditAwareUndoManager extends UndoManager { public class LastUndoableEditAwareUndoManager extends UndoManager {
private UndoableEdit lastUndoableEdit; private UndoableEdit lastUndoableEdit;

View File

@ -28,7 +28,6 @@ public class NetworkMonitor extends AbstractMonitor {
private MessageSiphon inputConsumer; private MessageSiphon inputConsumer;
private Session session; private Session session;
private Channel channel; private Channel channel;
private MessageSiphon errorConsumer;
private int connectionAttempts; private int connectionAttempts;
public NetworkMonitor(BoardPort port, Base base) { public NetworkMonitor(BoardPort port, Base base) {
@ -98,7 +97,7 @@ public class NetworkMonitor extends AbstractMonitor {
channel.connect(); channel.connect();
inputConsumer = new MessageSiphon(inputStream, this); inputConsumer = new MessageSiphon(inputStream, this);
errorConsumer = new MessageSiphon(errStream, this); new MessageSiphon(errStream, this);
if (connectionAttempts > 1) { if (connectionAttempts > 1) {
SwingUtilities.invokeLater(new Runnable() { SwingUtilities.invokeLater(new Runnable() {

View File

@ -22,6 +22,7 @@ package processing.app;
import java.io.IOException; import java.io.IOException;
@SuppressWarnings("serial")
public class SerialException extends IOException { public class SerialException extends IOException {
public SerialException() { public SerialException() {
super(); super();

View File

@ -27,6 +27,7 @@ import java.awt.event.ActionListener;
import static processing.app.I18n._; import static processing.app.I18n._;
@SuppressWarnings("serial")
public class SerialMonitor extends AbstractMonitor { public class SerialMonitor extends AbstractMonitor {
private final String port; private final String port;

View File

@ -1,5 +1,3 @@
/* -*- mode: jde; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/* /*
Copyright (c) 2007 David A. Mellis Copyright (c) 2007 David A. Mellis
@ -20,6 +18,7 @@
package processing.app; package processing.app;
@SuppressWarnings("serial")
public class SerialNotFoundException extends SerialException { public class SerialNotFoundException extends SerialException {
public SerialNotFoundException() { public SerialNotFoundException() {
super(); super();