openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1681967 - /openwebbeans/trunk/webbeans-jms/src/main/java/org/apache/webbeans/jms/util/JmsProxyHandler.java
Date Wed, 27 May 2015 10:58:23 GMT
Author: struberg
Date: Wed May 27 10:58:23 2015
New Revision: 1681967

URL: http://svn.apache.org/r1681967
Log:
OWB-989 remove redundant array creation

Modified:
    openwebbeans/trunk/webbeans-jms/src/main/java/org/apache/webbeans/jms/util/JmsProxyHandler.java

Modified: openwebbeans/trunk/webbeans-jms/src/main/java/org/apache/webbeans/jms/util/JmsProxyHandler.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-jms/src/main/java/org/apache/webbeans/jms/util/JmsProxyHandler.java?rev=1681967&r1=1681966&r2=1681967&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-jms/src/main/java/org/apache/webbeans/jms/util/JmsProxyHandler.java
(original)
+++ openwebbeans/trunk/webbeans-jms/src/main/java/org/apache/webbeans/jms/util/JmsProxyHandler.java
Wed May 27 10:58:23 2015
@@ -279,14 +279,14 @@ public class JmsProxyHandler implements
         {
             if(this.jmsObject != null)
             {
-                Method method = this.jmsObject.getClass().getMethod("close", new Class[]{});
+                Method method = this.jmsObject.getClass().getMethod("close");
                 
                 if(!method.isAccessible())
                 {
                     jmsComponent.getWebBeansContext().getSecurityService().doPrivilegedSetAccessible(method,
true);
                 }
                 
-                method.invoke(this.jmsObject, new Object[]{});                
+                method.invoke(this.jmsObject);
             }
             
         }



Mime
View raw message