forked from Juby210/discord-jadx
21 lines
679 B
Java
21 lines
679 B
Java
package androidx.lifecycle;
|
|
|
|
import androidx.annotation.RestrictTo;
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX})
|
|
public class MethodCallsLogger {
|
|
private Map<String, Integer> mCalledMethods = new HashMap();
|
|
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX})
|
|
public boolean approveCall(String str, int i) {
|
|
Integer num = this.mCalledMethods.get(str);
|
|
boolean z2 = false;
|
|
int intValue = num != null ? num.intValue() : 0;
|
|
if ((intValue & i) != 0) {
|
|
z2 = true;
|
|
}
|
|
this.mCalledMethods.put(str, Integer.valueOf(i | intValue));
|
|
return !z2;
|
|
}
|
|
}
|