Skip to content
Permalink
Browse files
Make immutable private static field final
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/proxy/trunk@1582285 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
sebbASF committed Mar 27, 2014
1 parent 70bfeba commit 911978fbdeeef872d79066cf8643a5c9471d2ec5
Showing 1 changed file with 4 additions and 4 deletions.
@@ -45,7 +45,7 @@ public class CglibProxyFactory extends AbstractSubclassingProxyFactory
// Fields
//******************************************************************************************************************

private static CallbackFilter callbackFilter = new CglibProxyFactoryCallbackFilter();
private static final CallbackFilter CALLBACKFILTER = new CglibProxyFactoryCallbackFilter();

//******************************************************************************************************************
// ProxyFactory Implementation
@@ -62,7 +62,7 @@ public <T> T createDelegatorProxy(ClassLoader classLoader, ObjectProvider<?> tar
enhancer.setClassLoader(classLoader);
enhancer.setInterfaces(toInterfaces(proxyClasses));
enhancer.setSuperclass(getSuperclass(proxyClasses));
enhancer.setCallbackFilter(callbackFilter);
enhancer.setCallbackFilter(CALLBACKFILTER);
enhancer.setCallbacks(new Callback[] { new ObjectProviderDispatcher(targetProvider), new EqualsHandler(),
new HashCodeHandler() });
return (T) enhancer.create();
@@ -79,7 +79,7 @@ public <T> T createInterceptorProxy(ClassLoader classLoader, Object target, Inte
enhancer.setClassLoader(classLoader);
enhancer.setInterfaces(toInterfaces(proxyClasses));
enhancer.setSuperclass(getSuperclass(proxyClasses));
enhancer.setCallbackFilter(callbackFilter);
enhancer.setCallbackFilter(CALLBACKFILTER);
enhancer.setCallbacks(new Callback[] { new InterceptorBridge(target, interceptor), new EqualsHandler(),
new HashCodeHandler() });
return (T) enhancer.create();
@@ -95,7 +95,7 @@ public <T> T createInvokerProxy(ClassLoader classLoader, Invoker invoker, Class<
enhancer.setClassLoader(classLoader);
enhancer.setInterfaces(toInterfaces(proxyClasses));
enhancer.setSuperclass(getSuperclass(proxyClasses));
enhancer.setCallbackFilter(callbackFilter);
enhancer.setCallbackFilter(CALLBACKFILTER);
enhancer.setCallbacks(
new Callback[] { new InvokerBridge(invoker), new EqualsHandler(), new HashCodeHandler() });
return (T) enhancer.create();

0 comments on commit 911978f

Please sign in to comment.