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

Commit c8ded90

Browse files
committed
clean up
1 parent cc77bd6 commit c8ded90

File tree

5 files changed

+6
-2
lines changed

5 files changed

+6
-2
lines changed

src/main/java/com/kttdevelopment/simplehttpserver/handler/ByteLoadingOption.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* @version 03.05.00
1313
* @author Ktt Development
1414
*/
15+
@SuppressWarnings("SpellCheckingInspection")
1516
public enum ByteLoadingOption {
1617

1718
PRELOAD,

src/main/java/com/kttdevelopment/simplehttpserver/handler/DirectoryEntry.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class DirectoryEntry {
2424
private final ByteLoadingOption loadingOption;
2525
private final boolean isWalkthrough;
2626

27-
private final Map<String,FileEntry> preloadedFiles = new ConcurrentHashMap<>(); // preload/watchload only
27+
private final Map<String,FileEntry> preloadedFiles = new ConcurrentHashMap<>(); // preload/watch-load only
2828
private final Path directoryPath;
2929

3030
/**

src/main/java/com/kttdevelopment/simplehttpserver/handler/FileHandler.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import com.sun.net.httpserver.HttpExchange;
77

88
import java.io.*;
9-
import java.nio.file.Files;
109
import java.util.*;
1110
import java.util.concurrent.ConcurrentHashMap;
1211

src/main/java/com/kttdevelopment/simplehttpserver/handler/ServerExchangeThrottler.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public ServerExchangeThrottler(final int maxConnections){
4747
uConnMax.set(maxConnections);
4848
}
4949

50+
@SuppressWarnings("SpellCheckingInspection")
5051
@Override
5152
final boolean addConnection(final HttpExchange exchange){
5253
final InetAddress address = exchange.getRemoteAddress().getAddress();
@@ -120,6 +121,7 @@ public int getMaxConnections(final HttpExchange exchange){
120121
* @since 03.05.00
121122
* @author Ktt Development
122123
*/
124+
@SuppressWarnings("SameReturnValue")
123125
public boolean canIgnoreConnectionLimit(final HttpExchange exchange){
124126
return false;
125127
}

src/main/java/com/kttdevelopment/simplehttpserver/handler/ServerSessionThrottler.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public ServerSessionThrottler(final HttpSessionHandler sessionHandler, final int
5858
uConnMax.set(maxConnections);
5959
}
6060

61+
@SuppressWarnings("SpellCheckingInspection")
6162
@Override
6263
final boolean addConnection(final HttpExchange exchange){
6364
final HttpSession session = sessionHandler.getSession(exchange);
@@ -147,6 +148,7 @@ public int getMaxConnections(final HttpSession session, final HttpExchange excha
147148
* @since 03.05.00
148149
* @author Ktt Development
149150
*/
151+
@SuppressWarnings("SameReturnValue")
150152
public boolean canIgnoreConnectionLimit(final HttpSession session, final HttpExchange exchange){
151153
return false;
152154
}

0 commit comments

Comments
 (0)