Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,19 @@ public class _JDKAccess {
}
}

private static final ClassValue<Lookup> lookupCache =
new ClassValue<Lookup>() {
@Override
protected Lookup computeValue(Class type) {
return _Lookup._trustedLookup(type);
}
};

// CHECKSTYLE.OFF:MethodName

public static Lookup _trustedLookup(Class<?> objectClass) {
// CHECKSTYLE.ON:MethodName
return _Lookup._trustedLookup(objectClass);
return lookupCache.get(objectClass);
}

public static <T> T tryMakeFunction(
Expand Down