Skip to content
This repository was archived by the owner on Jul 31, 2022. It is now read-only.

Commit e79f77e

Browse files
committed
Cleanup
1 parent 040dcfa commit e79f77e

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ src/LICENSE.txt
1111
# Maven
1212
target
1313
/test/
14+
/src/test/resources/file/

src/main/java/com/kttdevelopment/simplehttpserver/SimpleHttpServerImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ public synchronized final HttpContext createContext(final String path, final Htt
166166

167167
//
168168

169+
@SuppressWarnings("CaughtExceptionImmediatelyRethrown")
169170
@Override
170171
public synchronized final void removeContext(final String path){
171172
try{

src/test/java/handlers/FileHandlerTests.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package handlers;
22

33
import com.kttdevelopment.simplehttpserver.SimpleHttpServer;
4-
import com.kttdevelopment.simplehttpserver.SimpleHttpsServer;
54
import com.kttdevelopment.simplehttpserver.handler.*;
65
import org.junit.*;
76

@@ -236,8 +235,7 @@ public void addDirectoryTestsWalk() throws IOException, InterruptedException{
236235

237236
final String context = "";
238237

239-
// handler.addDirectory(noWalk,true);
240-
handler.addDirectory(noWalk, ByteLoadingOption.LIVELOAD,true); // todo: def liveload for walk param
238+
handler.addDirectory(noWalk,true);
241239

242240
server.createContext(context,handler);
243241
server.start();

src/test/java/handlers/SSEHandlerTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
import java.io.*;
88
import java.net.URI;
9-
import java.net.URL;
109
import java.net.http.*;
1110
import java.time.Duration;
1211
import java.util.concurrent.*;

src/test/java/simplehttpexchange/SimpleHttpExchangeGetPostTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public void postSimple() throws IOException, ExecutionException, InterruptedExce
9292
server.stop();
9393
}
9494

95-
@SuppressWarnings("rawtypes")
95+
@SuppressWarnings({"rawtypes", "StringBufferReplaceableByString"})
9696
@Test
9797
public void postMultipartFormData() throws IOException, ExecutionException, InterruptedException{
9898
final int port = 20005;

0 commit comments

Comments
 (0)