Commit f7dae866 authored by Nicolas Gilmard's avatar Nicolas Gilmard
Browse files

Use Null Pointer Analysis

Add @NonNullByDefault annotation
parent 1d0b280d
......@@ -17,6 +17,8 @@ import lu.list.itis.dkd.tui.TangibleInterfaceManager;
import lu.list.itis.dkd.tui.TangibleObjectManager;
import lu.list.itis.dkd.tui.logging.EventLogger;
import lu.tudor.ssi.kiss.dbc.annotation.NonNullByDefault;
import java.util.Collection;
import javax.swing.JComponent;
......@@ -28,6 +30,7 @@ import javax.swing.JComponent;
* @since 2.0
* @version 2.0.1
*/
@NonNullByDefault
public abstract class TuiAdapter {
/**
......
......@@ -13,6 +13,8 @@
*/
package lu.list.itis.dkd.tui.network.adapter;
import lu.tudor.ssi.kiss.dbc.annotation.NonNullByDefault;
import java.io.IOException;
import javax.bluetooth.DiscoveryAgent;
......@@ -29,6 +31,7 @@ import javax.microedition.io.StreamConnection;
* @since 1.0
* @version 1.0.0
*/
@NonNullByDefault
public class BluetoothClient extends ClientAdapter {
/**
......
......@@ -13,6 +13,8 @@
*/
package lu.list.itis.dkd.tui.network.adapter;
import lu.tudor.ssi.kiss.dbc.annotation.NonNullByDefault;
import java.io.IOException;
import javax.bluetooth.DiscoveryAgent;
......@@ -30,6 +32,7 @@ import javax.microedition.io.StreamConnectionNotifier;
* @since 1.0
* @version 1.0.0
*/
@NonNullByDefault
public class BluetoothServer extends ServerAdapter {
/**
......
......@@ -13,6 +13,8 @@
*/
package lu.list.itis.dkd.tui.network.adapter;
import lu.tudor.ssi.kiss.dbc.annotation.NonNullByDefault;
import gnu.io.PortInUseException;
import gnu.io.UnsupportedCommOperationException;
......@@ -27,6 +29,7 @@ import java.net.UnknownHostException;
* @since 1.0
* @version 1.0.0
*/
@NonNullByDefault
public abstract class ClientAdapter extends NetworkAdapter {
/**
......
......@@ -13,6 +13,8 @@
*/
package lu.list.itis.dkd.tui.network.adapter;
import lu.tudor.ssi.kiss.dbc.annotation.NonNullByDefault;
import java.io.InputStream;
import java.io.OutputStream;
......@@ -23,6 +25,7 @@ import java.io.OutputStream;
* @since 1.0
* @version 1.0.0
*/
@NonNullByDefault
public abstract class NetworkAdapter {
/**
......
......@@ -13,6 +13,8 @@
*/
package lu.list.itis.dkd.tui.network.adapter;
import lu.tudor.ssi.kiss.dbc.annotation.NonNullByDefault;
import java.io.IOException;
......@@ -23,6 +25,7 @@ import java.io.IOException;
* @since 1.0
* @version 1.0.0
*/
@NonNullByDefault
public abstract class ServerAdapter extends NetworkAdapter {
/**
......
......@@ -13,6 +13,8 @@
*/
package lu.list.itis.dkd.tui.network.adapter;
import lu.tudor.ssi.kiss.dbc.annotation.NonNullByDefault;
import java.io.IOException;
import java.net.Socket;
import java.net.UnknownHostException;
......@@ -24,6 +26,7 @@ import java.net.UnknownHostException;
* @since 1.0
* @version 1.0.0
*/
@NonNullByDefault
public class TcpClient extends ClientAdapter {
/**
......
......@@ -13,6 +13,8 @@
*/
package lu.list.itis.dkd.tui.network.adapter;
import lu.tudor.ssi.kiss.dbc.annotation.NonNullByDefault;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
......@@ -24,6 +26,7 @@ import java.net.Socket;
* @since 1.0
* @version 1.0.0
*/
@NonNullByDefault
public class TcpServer extends ServerAdapter {
/**
......
......@@ -14,6 +14,8 @@
package lu.list.itis.dkd.tui.network.adapter;
import lu.tudor.ssi.kiss.dbc.annotation.NonNullByDefault;
import gnu.io.CommPortIdentifier;
import gnu.io.PortInUseException;
import gnu.io.SerialPort;
......@@ -30,6 +32,7 @@ import java.util.Enumeration;
* @since 1.0
* @version 1.0.0
*/
@NonNullByDefault
public class XbeeAdapter extends ClientAdapter {
/**
* The RX/TX communication
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment