Author: ron.sigal(a)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)
{
Show replies by date