Don’t add try..catch to static methods

pull/6/head
Brett Wooldridge 12 years ago
parent 51fce05ffc
commit e621a55d4a

@ -377,6 +377,7 @@ public class HikariClassTransformer implements ClassFileTransformer
for (CtMethod method : targetClass.getDeclaredMethods())
{
if ((method.getModifiers() & Modifier.PUBLIC) != Modifier.PUBLIC || // only public methods
(method.getModifiers() & Modifier.STATIC) == Modifier.STATIC ||
method.getAnnotation(HikariInject.class) != null ||
method.getAnnotation(HikariOverride.class) != null) // ignore methods we've injected, they already try..catch
{

Loading…
Cancel
Save