cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cschnei...@apache.org
Subject svn commit: r809962 - /cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/WSDL2JavaMojo.java
Date Tue, 01 Sep 2009 10:43:13 GMT
Author: cschneider
Date: Tue Sep  1 10:43:13 2009
New Revision: 809962

URL: http://svn.apache.org/viewvc?rev=809962&view=rev
Log:
Changed to generics

Modified:
    cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/WSDL2JavaMojo.java

Modified: cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/WSDL2JavaMojo.java
URL: http://svn.apache.org/viewvc/cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/WSDL2JavaMojo.java?rev=809962&r1=809961&r2=809962&view=diff
==============================================================================
--- cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/WSDL2JavaMojo.java
(original)
+++ cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/WSDL2JavaMojo.java
Tue Sep  1 10:43:13 2009
@@ -375,17 +375,17 @@
                                              URI wsdlURI) {
         List<String> list = new ArrayList<String>();
         if (wsdlOption.getPackagenames() != null) {
-            Iterator it = wsdlOption.getPackagenames().iterator();
+            Iterator<String> it = wsdlOption.getPackagenames().iterator();
             while (it.hasNext()) {
                 list.add("-p");
-                list.add(it.next().toString());
+                list.add(it.next());
             }
         }
         if (wsdlOption.getNamespaceExcludes() != null) {
-            Iterator it = wsdlOption.getNamespaceExcludes().iterator();
+            Iterator<String> it = wsdlOption.getNamespaceExcludes().iterator();
             while (it.hasNext()) {
                 list.add("-nexclude");
-                list.add(it.next().toString());
+                list.add(it.next());
             }
         }
 
@@ -449,7 +449,7 @@
             list.add("-noAddressBinding");
         }
         if (wsdlOption.getExtraargs() != null) {
-            Iterator it = wsdlOption.getExtraargs().iterator();
+            Iterator<String> it = wsdlOption.getExtraargs().iterator();
             while (it.hasNext()) {
                 Object value = it.next();
                 if (value == null) {
@@ -489,12 +489,12 @@
     }
 
     private boolean isDefServiceName(WsdlOption wsdlOption) {
-        List args = wsdlOption.extraargs;
+        List<String> args = wsdlOption.extraargs;
         if (args == null) {
             return false;
         }
         for (int i = 0; i < args.size(); i++) {
-            if ("-sn".equalsIgnoreCase((String)args.get(i))) {
+            if ("-sn".equalsIgnoreCase(args.get(i))) {
                 return true;
             }
         }



Mime
View raw message