Skip to content
Permalink
Browse files
CheckStyle (#1182)
Fix CheckStyle violations.
  • Loading branch information
Pieter12345 committed May 3, 2020
1 parent 7b89531 commit c1fa052261f92ed3bc78dfd21819e1538553eeda
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
@@ -3,11 +3,9 @@
import com.laytonsmith.PureUtilities.Common.ArrayUtils;
import com.laytonsmith.PureUtilities.Common.StringUtils;
import com.laytonsmith.PureUtilities.Version;
import com.laytonsmith.abstraction.Implementation;
import com.laytonsmith.annotations.typeof;
import com.laytonsmith.core.FullyQualifiedClassName;
import com.laytonsmith.core.MSVersion;
import com.laytonsmith.core.Static;
import com.laytonsmith.core.compiler.CompilerEnvironment;
import com.laytonsmith.core.environments.Environment;
import com.laytonsmith.core.exceptions.CRE.CREUnsupportedOperationException;
@@ -53,7 +53,7 @@ public static String docs() {
+ " be yet heavily relied on in normal development.";
}

private static final Map<String, Thread> threadIds = new WeakHashMap<>();
private static final Map<String, Thread> THREAD_ID_MAP = new WeakHashMap<>();

@api
@noboilerplate
@@ -105,7 +105,7 @@ public void run() {
}
}, "(" + Implementation.GetServerType().getBranding() + ") " + id);
th.start();
threadIds.put(id, th);
THREAD_ID_MAP.put(id, th);
return CVoid.VOID;
}

@@ -545,7 +545,7 @@ public Boolean runAsync() {
@Override
public Mixed exec(Target t, Environment environment, Mixed... args) throws ConfigRuntimeException {
String id = args[0].val();
Thread th = threadIds.get(id);
Thread th = THREAD_ID_MAP.get(id);
if(th == null) {
throw new CREIllegalArgumentException("Unknown thread id", t);
}

0 comments on commit c1fa052

Please sign in to comment.