mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-06 00:37:52 +00:00
[BUGFIX] Solved issue with IllegalArgumentException
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
package org.parabot.environment.randoms;
|
package org.parabot.environment.randoms;
|
||||||
|
|
||||||
import com.sun.javaws.exceptions.InvalidArgumentException;
|
|
||||||
import org.parabot.core.Core;
|
import org.parabot.core.Core;
|
||||||
import org.parabot.core.parsers.randoms.RandomParser;
|
import org.parabot.core.parsers.randoms.RandomParser;
|
||||||
import org.parabot.core.ui.Logger;
|
import org.parabot.core.ui.Logger;
|
||||||
@@ -53,7 +52,7 @@ public class RandomHandler {
|
|||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public void addRandom(org.parabot.environment.scripts.randoms.Random random) {
|
public void addRandom(org.parabot.environment.scripts.randoms.Random random) {
|
||||||
new InvalidArgumentException(new String[]{"This type of random is deprecated"}).printStackTrace();
|
new IllegalArgumentException("This type of random is deprecated").printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -126,7 +125,7 @@ public class RandomHandler {
|
|||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public boolean checkAndRun() {
|
public boolean checkAndRun() {
|
||||||
new InvalidArgumentException(new String[]{"This method is deprecated"}).printStackTrace();
|
new IllegalArgumentException("This method is deprecated").printStackTrace();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user