mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-07 16:49:10 +00:00
Proper code style environment package
This commit is contained in:
@@ -47,7 +47,7 @@ class Looper extends AbstractFramework {
|
||||
}
|
||||
|
||||
class StrategyWorker extends AbstractFramework {
|
||||
private Collection<Strategy> strategies = null;
|
||||
private Collection<Strategy> strategies;
|
||||
|
||||
public StrategyWorker(Collection<Strategy> strategies) {
|
||||
this.strategies = strategies;
|
||||
|
||||
@@ -8,7 +8,7 @@ package org.parabot.environment.scripts;
|
||||
*
|
||||
*/
|
||||
public class LocalScriptExecuter extends ScriptExecuter {
|
||||
private Script script = null;
|
||||
private Script script;
|
||||
|
||||
public LocalScriptExecuter(final Script script) {
|
||||
this.script = script;
|
||||
|
||||
@@ -22,9 +22,8 @@ import org.parabot.environment.scripts.loader.JavaScriptLoader;
|
||||
*
|
||||
*/
|
||||
public class SDNScriptExecuter extends ScriptExecuter {
|
||||
private int id = -1;
|
||||
|
||||
private static AccountManager manager = null;
|
||||
private static AccountManager manager;
|
||||
|
||||
public static final AccountManagerAccess MANAGER_FETCHER = new AccountManagerAccess() {
|
||||
|
||||
@@ -35,6 +34,8 @@ public class SDNScriptExecuter extends ScriptExecuter {
|
||||
|
||||
};
|
||||
|
||||
private int id = -1;
|
||||
|
||||
public SDNScriptExecuter(final int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
@@ -9,6 +9,10 @@ package org.parabot.environment.scripts.framework;
|
||||
*/
|
||||
public abstract class AbstractFramework {
|
||||
|
||||
/**
|
||||
* Executes this frame
|
||||
* @return <b>true</b> if it should keep executing this framework, otherwise <b>false</b>.
|
||||
*/
|
||||
public abstract boolean execute();
|
||||
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ import org.parabot.environment.scripts.Script;
|
||||
*
|
||||
*/
|
||||
public class JavaScriptLoader extends ASMClassLoader {
|
||||
private ClassPath classPath = null;
|
||||
private ClassPath classPath;
|
||||
|
||||
public JavaScriptLoader(ClassPath classPath) {
|
||||
super(classPath);
|
||||
|
||||
Reference in New Issue
Block a user