Commit 3c3ad79e authored by akwizgran's avatar akwizgran

Fix lint warnings for server.

parent 5b0c10b8
Pipeline #2557 failed with stages
......@@ -4,5 +4,5 @@ dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
}
sourceCompatibility = "1.7"
targetCompatibility = "1.7"
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
......@@ -15,7 +15,7 @@ public class SnoozeServer implements Runnable {
private final int port;
public SnoozeServer(int port) {
private SnoozeServer(int port) {
this.port = port;
}
......@@ -40,6 +40,7 @@ public class SnoozeServer implements Runnable {
try {
ServerSocket ss = new ServerSocket(port);
LOG.info("Listening: " + ss.getLocalSocketAddress());
//noinspection InfiniteLoopStatement
while (true) new WriterThread(ss.accept()).start();
} catch (IOException e) {
LOG.warning(e.toString());
......
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