mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-07 08:39:12 +00:00
[CLEANUP] Removes the improper public static
This commit is contained in:
@@ -54,8 +54,8 @@ public class Context {
|
|||||||
private UlirathaClient ulirathaClient;
|
private UlirathaClient ulirathaClient;
|
||||||
private JSONParser jsonParser;
|
private JSONParser jsonParser;
|
||||||
|
|
||||||
public static PrintStream defaultOut = System.out;
|
private PrintStream defaultOut;
|
||||||
public static PrintStream defaultErr = System.err;
|
private PrintStream defaultErr = System.err;
|
||||||
|
|
||||||
private Context(final ServerProvider serverProvider) {
|
private Context(final ServerProvider serverProvider) {
|
||||||
threadGroups.put(Thread.currentThread().getThreadGroup(), this);
|
threadGroups.put(Thread.currentThread().getThreadGroup(), this);
|
||||||
@@ -68,7 +68,9 @@ public class Context {
|
|||||||
this.randomHandler = new RandomHandler();
|
this.randomHandler = new RandomHandler();
|
||||||
|
|
||||||
this.jsonParser = new JSONParser();
|
this.jsonParser = new JSONParser();
|
||||||
|
|
||||||
|
this.defaultOut = System.out;
|
||||||
|
this.defaultErr = System.err;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Context getInstance(ServerProvider serverProvider) {
|
public static Context getInstance(ServerProvider serverProvider) {
|
||||||
@@ -228,8 +230,8 @@ public class Context {
|
|||||||
|
|
||||||
BotDialog.getInstance().validate();
|
BotDialog.getInstance().validate();
|
||||||
|
|
||||||
System.setOut(defaultOut);
|
System.setOut(this.defaultOut);
|
||||||
System.setErr(defaultErr);
|
System.setErr(this.defaultErr);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user