Skip to content

Commit 8c8c742

Browse files
committed
refactor(ServerController): simplify thread name string concatenation
1 parent 4e2c1fe commit 8c8c742

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/java/mindustrytool/ServerController.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,7 @@ private class DefaultThreadFactory implements ThreadFactory {
206206
@SuppressWarnings("removal")
207207
SecurityManager s = System.getSecurityManager();
208208
group = (s != null) ? s.getThreadGroup() : Thread.currentThread().getThreadGroup();
209-
namePrefix = "background-pool-" +
210-
poolNumber.getAndIncrement() +
211-
"-thread-";
209+
namePrefix = "background-pool-" + poolNumber.getAndIncrement() + "-thread-";
212210
}
213211

214212
public Thread newThread(Runnable r) {

0 commit comments

Comments
 (0)