commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1582285 - /commons/proper/proxy/trunk/cglib/src/main/java/org/apache/commons/proxy2/cglib/CglibProxyFactory.java
Date Thu, 27 Mar 2014 13:07:06 GMT
Author: sebb
Date: Thu Mar 27 13:07:06 2014
New Revision: 1582285

URL: http://svn.apache.org/r1582285
Log:
Make immutable private static field final

Modified:
    commons/proper/proxy/trunk/cglib/src/main/java/org/apache/commons/proxy2/cglib/CglibProxyFactory.java

Modified: commons/proper/proxy/trunk/cglib/src/main/java/org/apache/commons/proxy2/cglib/CglibProxyFactory.java
URL: http://svn.apache.org/viewvc/commons/proper/proxy/trunk/cglib/src/main/java/org/apache/commons/proxy2/cglib/CglibProxyFactory.java?rev=1582285&r1=1582284&r2=1582285&view=diff
==============================================================================
--- commons/proper/proxy/trunk/cglib/src/main/java/org/apache/commons/proxy2/cglib/CglibProxyFactory.java
(original)
+++ commons/proper/proxy/trunk/cglib/src/main/java/org/apache/commons/proxy2/cglib/CglibProxyFactory.java
Thu Mar 27 13:07:06 2014
@@ -45,7 +45,7 @@ public class CglibProxyFactory extends A
     // Fields
     //******************************************************************************************************************
 
-    private static CallbackFilter callbackFilter = new CglibProxyFactoryCallbackFilter();
+    private static final CallbackFilter CALLBACKFILTER = new CglibProxyFactoryCallbackFilter();
 
     //******************************************************************************************************************
     // ProxyFactory Implementation
@@ -62,7 +62,7 @@ public class CglibProxyFactory extends A
         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 class CglibProxyFactory extends A
         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 class CglibProxyFactory extends A
         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();



Mime
View raw message