Fixed HookFile class...

This commit is contained in:
Clisprail
2014-04-27 00:43:08 +02:00
parent 50084c5ef9
commit 59ab345b32
@@ -24,13 +24,13 @@ public class HookFile {
public HookFile(URL url, int type) {
setType(type);
this.url = url;
this.type = type;
}
private void setType(int type) {
if(type < 0 || type > 1) {
throw new IllegalArgumentException("This type does not exist");
}
this.type = type;
}
public InputStream getInputStream() {