mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-18 07:52:14 +01:00
Removed some trivial warnings
This commit is contained in:
parent
9bc1824b96
commit
dd911bc79d
@ -14,6 +14,7 @@ import java.awt.event.WindowEvent;
|
||||
|
||||
import static processing.app.I18n._;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public abstract class AbstractMonitor extends JFrame implements MessageConsumer {
|
||||
|
||||
protected final JLabel noLineEndingAlert;
|
||||
|
@ -5,6 +5,7 @@ import javax.swing.undo.CannotUndoException;
|
||||
import javax.swing.undo.UndoManager;
|
||||
import javax.swing.undo.UndoableEdit;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class LastUndoableEditAwareUndoManager extends UndoManager {
|
||||
|
||||
private UndoableEdit lastUndoableEdit;
|
||||
|
@ -28,7 +28,6 @@ public class NetworkMonitor extends AbstractMonitor {
|
||||
private MessageSiphon inputConsumer;
|
||||
private Session session;
|
||||
private Channel channel;
|
||||
private MessageSiphon errorConsumer;
|
||||
private int connectionAttempts;
|
||||
|
||||
public NetworkMonitor(BoardPort port, Base base) {
|
||||
@ -98,7 +97,7 @@ public class NetworkMonitor extends AbstractMonitor {
|
||||
channel.connect();
|
||||
|
||||
inputConsumer = new MessageSiphon(inputStream, this);
|
||||
errorConsumer = new MessageSiphon(errStream, this);
|
||||
new MessageSiphon(errStream, this);
|
||||
|
||||
if (connectionAttempts > 1) {
|
||||
SwingUtilities.invokeLater(new Runnable() {
|
||||
|
@ -22,6 +22,7 @@ package processing.app;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class SerialException extends IOException {
|
||||
public SerialException() {
|
||||
super();
|
||||
|
@ -27,6 +27,7 @@ import java.awt.event.ActionListener;
|
||||
|
||||
import static processing.app.I18n._;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class SerialMonitor extends AbstractMonitor {
|
||||
|
||||
private final String port;
|
||||
|
@ -1,5 +1,3 @@
|
||||
/* -*- mode: jde; c-basic-offset: 2; indent-tabs-mode: nil -*- */
|
||||
|
||||
/*
|
||||
Copyright (c) 2007 David A. Mellis
|
||||
|
||||
@ -20,6 +18,7 @@
|
||||
|
||||
package processing.app;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class SerialNotFoundException extends SerialException {
|
||||
public SerialNotFoundException() {
|
||||
super();
|
||||
|
Loading…
x
Reference in New Issue
Block a user