Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nnjun committed Feb 16, 2022
1 parent 24561fb commit cb6aeb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ private MethodSpec generaNotCallerMethod(boolean withException) {
MethodSpec.Builder builder = MethodSpec.methodBuilder("get" + (withException ? "WithException" : ""))
.addModifiers(Modifier.PUBLIC, Modifier.STATIC)
.returns(mStaticInterface);
String statement = "return $T.create($T.class, $L)";
String statement = "return $T.create($T.class, null, $L)";
builder.addStatement(statement,
BR,
mStaticInterface,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ public class BlackReflection {
// key caller
private static final WeakHashMap<Object, Map<Class<?>, Object>> sCallerProxyCache = new WeakHashMap<>();

public static <T> T create(Class<T> clazz, final Object caller) {
return create(clazz, caller, false);
}
// public static <T> T create(Class<T> clazz, final Object caller) {
// return create(clazz, caller, false);
// }

public static <T> T create(Class<T> clazz, final Object caller, boolean withException) {
try {
Expand Down

0 comments on commit cb6aeb2

Please sign in to comment.