aboutsummaryrefslogtreecommitdiff
path: root/src/utils/lombok/permit/Permit.java
diff options
context:
space:
mode:
authorRawi01 <Rawi01@users.noreply.github.com>2021-01-20 19:40:23 +0100
committerRawi01 <Rawi01@users.noreply.github.com>2021-02-01 09:14:41 +0100
commit06efa58762d243a6ebcc09aea57b81b338e628a4 (patch)
tree0a2315cddfff10f5b912040b642a43eb9c8876c0 /src/utils/lombok/permit/Permit.java
parent3d3a4c322af4cf7f27679661efaa9dcd685165bb (diff)
downloadlombok-06efa58762d243a6ebcc09aea57b81b338e628a4.tar.gz
lombok-06efa58762d243a6ebcc09aea57b81b338e628a4.tar.bz2
lombok-06efa58762d243a6ebcc09aea57b81b338e628a4.zip
[fixes #1538] Use Enter and MemberEnter to update type mirrors
Diffstat (limited to 'src/utils/lombok/permit/Permit.java')
-rw-r--r--src/utils/lombok/permit/Permit.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/utils/lombok/permit/Permit.java b/src/utils/lombok/permit/Permit.java
index edcc36b2..2854706e 100644
--- a/src/utils/lombok/permit/Permit.java
+++ b/src/utils/lombok/permit/Permit.java
@@ -122,6 +122,14 @@ public class Permit {
return setAccessible(m);
}
+ public static Method permissiveGetMethod(Class<?> c, String mName, Class<?>... parameterTypes) {
+ try {
+ return getMethod(c, mName, parameterTypes);
+ } catch (Exception ignore) {
+ return null;
+ }
+ }
+
public static Field getField(Class<?> c, String fName) throws NoSuchFieldException {
Field f = null;
Class<?> oc = c;