cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r751732 - /cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/interceptors/WrapperHelper.java
Date Mon, 09 Mar 2009 16:39:15 GMT
Author: dkulp
Date: Mon Mar  9 16:39:15 2009
New Revision: 751732

URL: http://svn.apache.org/viewvc?rev=751732&view=rev
Log:
Fix some eclipse warnings

Modified:
    cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/interceptors/WrapperHelper.java

Modified: cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/interceptors/WrapperHelper.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/interceptors/WrapperHelper.java?rev=751732&r1=751731&r2=751732&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/interceptors/WrapperHelper.java
(original)
+++ cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/interceptors/WrapperHelper.java
Mon Mar  9 16:39:15 2009
@@ -35,7 +35,8 @@
 import org.apache.cxf.jaxb.JAXBUtils;
 
 public abstract class WrapperHelper {
-    private static final Class NO_PARAMS[] = new Class[0];
+    private static final Class NO_CLASSES[] = new Class[0];
+    private static final Object NO_PARAMS[] = new Object[0];
 
     
     public abstract Object createWrapperObject(List<?> lst) 
@@ -70,7 +71,7 @@
         Object obj = null;
         for (Class<?> c : cls) {                        
             if ("Factory".equals(c.getSimpleName())) {                            
-                Method method = c.getMethod("newInstance", NO_PARAMS); 
+                Method method = c.getMethod("newInstance", NO_CLASSES); 
                 // create the instance of document type
                 obj = method.invoke(null, NO_PARAMS);
                 // create the value object
@@ -137,7 +138,7 @@
                     valueClass = getXMLBeansValueType(wrapperType);
                     allMethods = valueClass.getMethods();
                 }
-                getMethod = valueClass.getMethod(getAccessor, NO_PARAMS); 
+                getMethod = valueClass.getMethod(getAccessor, NO_CLASSES); 
             } catch (NoSuchMethodException ex) {
                 //ignore for now
             }
@@ -152,7 +153,7 @@
         
                 try {
                     String newAcc = getAccessor.replaceFirst("get", "is");
-                    getMethod = wrapperType.getMethod(newAcc, NO_PARAMS); 
+                    getMethod = wrapperType.getMethod(newAcc, NO_CLASSES); 
                 } catch (NoSuchMethodException ex) {
                     //ignore for now
                 }            
@@ -161,7 +162,7 @@
                 && "return".equals(partName)) {
                 //RI generated code uses this
                 try {
-                    getMethod = valueClass.getMethod("get_return", NO_PARAMS);
+                    getMethod = valueClass.getMethod("get_return", NO_CLASSES);
                 } catch (NoSuchMethodException ex) {
                     try {
                         getMethod = valueClass.getMethod("is_return",
@@ -365,7 +366,7 @@
                 if (wrapperType.isInterface()) {                    
                     Class<?> valueClass = getXMLBeansValueType(wrapperType);
                     // we need get the real Object first
-                    Method method = wrapperType.getMethod("get" + valueClass.getSimpleName(),
NO_PARAMS);
+                    Method method = wrapperType.getMethod("get" + valueClass.getSimpleName(),
NO_CLASSES);
                     valueObject = method.invoke(o, NO_PARAMS);
                 }
             



Mime
View raw message