From f1e32ed443bafc03448f0f3b36c712b9293e71e7 Mon Sep 17 00:00:00 2001 From: Ben Burwell Date: Sun, 20 Nov 2016 01:34:08 -0500 Subject: File cleanup --- src/main/java/com/benburwell/planes/sbs/AggregateDataSource.java | 2 +- src/main/java/com/benburwell/planes/sbs/DataListener.java | 2 +- src/main/java/com/benburwell/planes/sbs/DataSource.java | 2 +- .../java/com/benburwell/planes/sbs/MalformedPacketException.java | 2 +- src/main/java/com/benburwell/planes/sbs/MessageType.java | 2 +- src/main/java/com/benburwell/planes/sbs/SBSPacket.java | 2 +- src/main/java/com/benburwell/planes/sbs/TCPDataSource.java | 8 +++++--- src/main/java/com/benburwell/planes/sbs/TransmissionType.java | 2 +- .../benburwell/planes/sbs/UnrecognizedMessageTypeException.java | 2 +- .../planes/sbs/UnrecognizedTransmissionTypeException.java | 2 +- 10 files changed, 14 insertions(+), 12 deletions(-) (limited to 'src/main/java/com/benburwell/planes/sbs') diff --git a/src/main/java/com/benburwell/planes/sbs/AggregateDataSource.java b/src/main/java/com/benburwell/planes/sbs/AggregateDataSource.java index 2850404..1886e00 100644 --- a/src/main/java/com/benburwell/planes/sbs/AggregateDataSource.java +++ b/src/main/java/com/benburwell/planes/sbs/AggregateDataSource.java @@ -6,7 +6,7 @@ import java.util.Map; import java.util.HashMap; /** - * Created by ben on 11/15/16. + * @author ben */ public class AggregateDataSource implements DataSource { private List subscribers = new ArrayList<>(); diff --git a/src/main/java/com/benburwell/planes/sbs/DataListener.java b/src/main/java/com/benburwell/planes/sbs/DataListener.java index b0da2ef..9258310 100644 --- a/src/main/java/com/benburwell/planes/sbs/DataListener.java +++ b/src/main/java/com/benburwell/planes/sbs/DataListener.java @@ -1,7 +1,7 @@ package com.benburwell.planes.sbs; /** - * Created by ben on 11/15/16. + * @author ben */ public interface DataListener { void handleMessage(SBSPacket packet); diff --git a/src/main/java/com/benburwell/planes/sbs/DataSource.java b/src/main/java/com/benburwell/planes/sbs/DataSource.java index 961c6e2..c8bba6b 100644 --- a/src/main/java/com/benburwell/planes/sbs/DataSource.java +++ b/src/main/java/com/benburwell/planes/sbs/DataSource.java @@ -1,7 +1,7 @@ package com.benburwell.planes.sbs; /** - * Created by ben on 11/15/16. + * @author ben */ public interface DataSource { void subscribe(DataListener listener); diff --git a/src/main/java/com/benburwell/planes/sbs/MalformedPacketException.java b/src/main/java/com/benburwell/planes/sbs/MalformedPacketException.java index 6cbd1a3..1ab8ca9 100644 --- a/src/main/java/com/benburwell/planes/sbs/MalformedPacketException.java +++ b/src/main/java/com/benburwell/planes/sbs/MalformedPacketException.java @@ -1,7 +1,7 @@ package com.benburwell.planes.sbs; /** - * Created by ben on 11/15/16. + * @author ben */ public class MalformedPacketException extends Exception { private String message; diff --git a/src/main/java/com/benburwell/planes/sbs/MessageType.java b/src/main/java/com/benburwell/planes/sbs/MessageType.java index a2ecc66..96958ed 100644 --- a/src/main/java/com/benburwell/planes/sbs/MessageType.java +++ b/src/main/java/com/benburwell/planes/sbs/MessageType.java @@ -1,7 +1,7 @@ package com.benburwell.planes.sbs; /** - * Created by ben on 11/15/16. + * @author ben */ public enum MessageType { SELECTION_CHANGE("SEL"), diff --git a/src/main/java/com/benburwell/planes/sbs/SBSPacket.java b/src/main/java/com/benburwell/planes/sbs/SBSPacket.java index 5684803..86e6eaf 100644 --- a/src/main/java/com/benburwell/planes/sbs/SBSPacket.java +++ b/src/main/java/com/benburwell/planes/sbs/SBSPacket.java @@ -6,7 +6,7 @@ import java.util.Calendar; import java.util.Date; /** - * Created by ben on 11/15/16. + * @author ben */ public class SBSPacket { private MessageType messageType; diff --git a/src/main/java/com/benburwell/planes/sbs/TCPDataSource.java b/src/main/java/com/benburwell/planes/sbs/TCPDataSource.java index 2224d36..5cbe7f7 100644 --- a/src/main/java/com/benburwell/planes/sbs/TCPDataSource.java +++ b/src/main/java/com/benburwell/planes/sbs/TCPDataSource.java @@ -1,12 +1,14 @@ package com.benburwell.planes.sbs; +import java.io.BufferedReader; +import java.io.IOException; +import java.io.InputStreamReader; +import java.net.Socket; import java.util.List; import java.util.ArrayList; -import java.io.*; -import java.net.*; /** - * Created by ben on 11/15/16. + * @author ben */ public class TCPDataSource implements DataSource { private List subscribers = new ArrayList<>(); diff --git a/src/main/java/com/benburwell/planes/sbs/TransmissionType.java b/src/main/java/com/benburwell/planes/sbs/TransmissionType.java index fb1761e..d2f799c 100644 --- a/src/main/java/com/benburwell/planes/sbs/TransmissionType.java +++ b/src/main/java/com/benburwell/planes/sbs/TransmissionType.java @@ -1,7 +1,7 @@ package com.benburwell.planes.sbs; /** - * Created by ben on 11/15/16. + * @author ben */ public enum TransmissionType { ES_IDENTIFICATION(1), diff --git a/src/main/java/com/benburwell/planes/sbs/UnrecognizedMessageTypeException.java b/src/main/java/com/benburwell/planes/sbs/UnrecognizedMessageTypeException.java index ee30a87..63d3d63 100644 --- a/src/main/java/com/benburwell/planes/sbs/UnrecognizedMessageTypeException.java +++ b/src/main/java/com/benburwell/planes/sbs/UnrecognizedMessageTypeException.java @@ -1,7 +1,7 @@ package com.benburwell.planes.sbs; /** - * Created by ben on 11/15/16. + * @author ben */ public class UnrecognizedMessageTypeException extends Exception { private String type; diff --git a/src/main/java/com/benburwell/planes/sbs/UnrecognizedTransmissionTypeException.java b/src/main/java/com/benburwell/planes/sbs/UnrecognizedTransmissionTypeException.java index abab067..8bc5c13 100644 --- a/src/main/java/com/benburwell/planes/sbs/UnrecognizedTransmissionTypeException.java +++ b/src/main/java/com/benburwell/planes/sbs/UnrecognizedTransmissionTypeException.java @@ -1,7 +1,7 @@ package com.benburwell.planes.sbs; /** - * Created by ben on 11/15/16. + * @author ben */ public class UnrecognizedTransmissionTypeException extends Exception { private int code; -- cgit v1.2.3