diff options
author | Roel Spilker <r.spilker@gmail.com> | 2021-03-19 02:48:05 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2021-03-19 02:48:16 +0100 |
commit | 2ed5077cae63cb193b4c7d1f8aa1ad3e9e6c2652 (patch) | |
tree | 3a5609b92c8c70b0626d2b47d217b7dc79624ee0 /src/utils/lombok/permit | |
parent | 420d09f99de34fc1303656aafc498bb1188b52ed (diff) | |
download | lombok-2ed5077cae63cb193b4c7d1f8aa1ad3e9e6c2652.tar.gz lombok-2ed5077cae63cb193b4c7d1f8aa1ad3e9e6c2652.tar.bz2 lombok-2ed5077cae63cb193b4c7d1f8aa1ad3e9e6c2652.zip |
[jdk16] TypeSymbol.isLocal has been renamed
Diffstat (limited to 'src/utils/lombok/permit')
-rw-r--r-- | src/utils/lombok/permit/Permit.java | 8 |
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; |