65 lines
1.5 KiB
Java
65 lines
1.5 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
package javax.baja.job;
|
|
|
|
import javax.baja.job.BSimpleJob;
|
|
import javax.baja.sys.Context;
|
|
import javax.baja.sys.Sys;
|
|
import javax.baja.sys.Type;
|
|
|
|
/*
|
|
* Illegal identifiers - consider using --renameillegalidents true
|
|
*/
|
|
public class BRunnableJob
|
|
extends BSimpleJob {
|
|
public static final Type TYPE;
|
|
private Runnable runnable;
|
|
static /* synthetic */ Class class$javax$baja$job$BRunnableJob;
|
|
|
|
public Type getType() {
|
|
return TYPE;
|
|
}
|
|
|
|
public final void run(Context context) throws Exception {
|
|
if (this.runnable != null) {
|
|
this.runnable.run();
|
|
}
|
|
}
|
|
|
|
static /* synthetic */ Class class(String string, boolean bl) {
|
|
try {
|
|
Class<?> clazz = Class.forName(string);
|
|
if (!bl) {
|
|
clazz = clazz.getComponentType();
|
|
}
|
|
return clazz;
|
|
}
|
|
catch (ClassNotFoundException classNotFoundException) {
|
|
throw new NoClassDefFoundError(classNotFoundException.getMessage());
|
|
}
|
|
}
|
|
|
|
private final /* synthetic */ void this() {
|
|
this.runnable = null;
|
|
}
|
|
|
|
public BRunnableJob(Runnable runnable) {
|
|
this.this();
|
|
this.runnable = runnable;
|
|
}
|
|
|
|
public BRunnableJob() {
|
|
this.this();
|
|
}
|
|
|
|
static {
|
|
Class clazz = class$javax$baja$job$BRunnableJob;
|
|
if (clazz == null) {
|
|
clazz = class$javax$baja$job$BRunnableJob = BRunnableJob.class("[Ljavax.baja.job.BRunnableJob;", false);
|
|
}
|
|
TYPE = Sys.loadType(clazz);
|
|
}
|
|
}
|
|
|