[jboss-remoting-commits] JBoss Remoting SVN: r4521 - remoting2/branches/2.x/src/main/org/jboss/remoting/serialization/impl/java.

jboss-remoting-commits at lists.jboss.org jboss-remoting-commits at lists.jboss.org
Sat Aug 30 02:29:38 EDT 2008


Author: ron.sigal at jboss.com
Date: 2008-08-30 02:29:38 -0400 (Sat, 30 Aug 2008)
New Revision: 4521

Modified:
   remoting2/branches/2.x/src/main/org/jboss/remoting/serialization/impl/java/ClearableObjectOutputStream.java
Log:
JBREM-1028: Reflective call to clear() uses a preconstructed parameter array.

Modified: remoting2/branches/2.x/src/main/org/jboss/remoting/serialization/impl/java/ClearableObjectOutputStream.java
===================================================================
--- remoting2/branches/2.x/src/main/org/jboss/remoting/serialization/impl/java/ClearableObjectOutputStream.java	2008-08-30 06:21:08 UTC (rev 4520)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/serialization/impl/java/ClearableObjectOutputStream.java	2008-08-30 06:29:38 UTC (rev 4521)
@@ -41,6 +41,7 @@
 {
    protected static Logger log = Logger.getLogger(ClearableObjectOutputStream.class);
    protected static Method clearMethod;
+   protected static Object[] PARAMS = new Object[]{};
    
    static
    {
@@ -67,7 +68,7 @@
    {
       try
       {
-          clearMethod.invoke(this, new Object[]{});
+          clearMethod.invoke(this, PARAMS);
       }
       catch (Throwable e)
       {




More information about the jboss-remoting-commits mailing list