CrackMe.apk
Download file
package bolts;
import java.io.Closeable;
public class CancellationTokenRegistration implements Closeable {
private Runnable action;
private boolean closed;
private final Object lock = new Object();
private CancellationTokenSource tokenSource;
CancellationTokenRegistration(CancellationTokenSource cancellationTokenSource, Runnable runnable) {
this.tokenSource = cancellationTokenSource;
this.action = runnable;
}
public void close() {
synchronized (this.lock) {
if (!this.closed) {
this.closed = true;
this.tokenSource.unregister(this);
this.tokenSource = null;
this.action = null;
}
}
}
/* access modifiers changed from: package-private */
public void runAction() {
synchronized (this.lock) {
throwIfClosed();
this.action.run();
close();
}
}
private void throwIfClosed() {
if (this.closed) {
throw new IllegalStateException("Object already closed");
}
}
}
Download file