Skip to content

Commit

Permalink
Intercept Cipher#getCurrentSpi to avoid running error
Browse files Browse the repository at this point in the history
  • Loading branch information
alixwar committed Jun 1, 2023
1 parent 08f769a commit 4e32b3a
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -26,7 +26,6 @@
import javax.annotation.Nullable;
import javax.crypto.Cipher;
import javax.crypto.CipherSpi;

import org.robolectric.fakes.CleanerCompat;
import org.robolectric.internal.bytecode.Interceptor;
import org.robolectric.internal.bytecode.MethodRef;
Expand Down Expand Up @@ -492,7 +491,7 @@ public Object call(Class<?> theClass, Object value, Object[] params) {

@Override
public MethodHandle getMethodHandle(String methodName, MethodType type)
throws NoSuchMethodException, IllegalAccessException {
throws NoSuchMethodException, IllegalAccessException {
return lookup.findStatic(
getClass(), "getCurrentSpi", methodType(CipherSpi.class, void.class));
}
Expand Down

0 comments on commit 4e32b3a

Please sign in to comment.