cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1228848 [5/5] - in /cxf/trunk: api/src/main/java/org/apache/cxf/message/ api/src/main/java/org/apache/cxf/service/model/ api/src/main/java/org/apache/cxf/ws/addressing/ api/src/main/java/org/apache/cxf/wsdl/ api/src/test/java/org/apache/cx...
Date Sun, 08 Jan 2012 13:59:46 GMT
Modified: cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2wsdl/processor/internal/SpringServiceBuilderFactory.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2wsdl/processor/internal/SpringServiceBuilderFactory.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2wsdl/processor/internal/SpringServiceBuilderFactory.java
(original)
+++ cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2wsdl/processor/internal/SpringServiceBuilderFactory.java
Sun Jan  8 13:59:37 2012
@@ -85,7 +85,7 @@ public final class SpringServiceBuilderF
         ServiceBuilder builder = null;
 
         try {
-            builder = (ServiceBuilder)applicationContext.getBean(beanName, ServiceBuilder.class);
+            builder = applicationContext.getBean(beanName, ServiceBuilder.class);
             AbstractServiceFactory serviceFactory = (AbstractServiceFactory)builder;
             serviceFactory.setDataBinding(dataBinding);
         } catch (RuntimeException e) {

Modified: cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2wsdl/processor/internal/jaxws/JAXWSFrontEndProcessor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2wsdl/processor/internal/jaxws/JAXWSFrontEndProcessor.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2wsdl/processor/internal/jaxws/JAXWSFrontEndProcessor.java
(original)
+++ cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2wsdl/processor/internal/jaxws/JAXWSFrontEndProcessor.java
Sun Jan  8 13:59:37 2012
@@ -156,7 +156,7 @@ public class JAXWSFrontEndProcessor impl
 
     public void checkJaxwsClass() {
         Class<?> clz = context.get(Class.class);
-        WebService webServiceAnno = (WebService)clz.getAnnotation(WebService.class);
+        WebService webServiceAnno = clz.getAnnotation(WebService.class);
         if (webServiceAnno == null) {
             Message msg = new Message("CLASS_DOESNOT_CARRY_WEBSERVICE_ANNO", LOG, clz.getName());
             LOG.log(Level.WARNING, msg.toString());

Modified: cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2wsdl/processor/internal/jaxws/generator/JaxwsClientGenerator.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2wsdl/processor/internal/jaxws/generator/JaxwsClientGenerator.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2wsdl/processor/internal/jaxws/generator/JaxwsClientGenerator.java
(original)
+++ cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2wsdl/processor/internal/jaxws/generator/JaxwsClientGenerator.java
Sun Jan  8 13:59:37 2012
@@ -58,8 +58,8 @@ public class JaxwsClientGenerator extend
             setAttributes("intf", intf);
             setAttributes("service", service);
             setAttributes("port", port);
-            setAttributes("address", (String)penv.get(ToolConstants.CFG_ADDRESS));
-            setAttributes("seiClass", (String)env.get(ToolConstants.SEI_CLASS));
+            setAttributes("address", penv.get(ToolConstants.CFG_ADDRESS));
+            setAttributes("seiClass", env.get(ToolConstants.SEI_CLASS));
             setCommonAttributes();
             doWrite(CLIENT_TEMPLATE, parseOutputName(intf.getPackageName(), intf.getName()
+ "Client"));
 

Modified: cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2wsdl/processor/internal/jaxws/generator/JaxwsServerGenerator.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2wsdl/processor/internal/jaxws/generator/JaxwsServerGenerator.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2wsdl/processor/internal/jaxws/generator/JaxwsServerGenerator.java
(original)
+++ cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2wsdl/processor/internal/jaxws/generator/JaxwsServerGenerator.java
Sun Jan  8 13:59:37 2012
@@ -59,8 +59,8 @@ public class JaxwsServerGenerator extend
         for (JavaInterface intf : interfaces.values()) {
             clearAttributes();
             setAttributes("intf", intf);
-            setAttributes("address", (String)penv.get(ToolConstants.CFG_ADDRESS));
-            setAttributes("implClass", (String)env.get(ToolConstants.IMPL_CLASS));
+            setAttributes("address", penv.get(ToolConstants.CFG_ADDRESS));
+            setAttributes("implClass", env.get(ToolConstants.IMPL_CLASS));
             setCommonAttributes();
             doWrite(SERVER_TEMPLATE, parseOutputName(intf.getPackageName(), intf.getName()
+ "Server"));
         }

Modified: cxf/trunk/tools/validator/src/main/java/org/apache/cxf/tools/validator/internal/WSDL11Validator.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/validator/src/main/java/org/apache/cxf/tools/validator/internal/WSDL11Validator.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/tools/validator/src/main/java/org/apache/cxf/tools/validator/internal/WSDL11Validator.java
(original)
+++ cxf/trunk/tools/validator/src/main/java/org/apache/cxf/tools/validator/internal/WSDL11Validator.java
Sun Jan  8 13:59:37 2012
@@ -200,7 +200,7 @@ public class WSDL11Validator extends Abs
                 Enumeration<JarEntry> entry = jarFile.entries();
                 
                 while (entry.hasMoreElements()) {
-                    JarEntry ele = (JarEntry)entry.nextElement();
+                    JarEntry ele = entry.nextElement();
                     if (ele.getName().endsWith(".xsd")
                         && ele.getName().indexOf(ToolConstants.CXF_SCHEMAS_DIR_INJAR)
> -1) {
                         

Modified: cxf/trunk/tools/wadlto/jaxrs/src/main/java/org/apache/cxf/tools/wadlto/jaxb/CustomizationParser.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/wadlto/jaxrs/src/main/java/org/apache/cxf/tools/wadlto/jaxb/CustomizationParser.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/tools/wadlto/jaxrs/src/main/java/org/apache/cxf/tools/wadlto/jaxb/CustomizationParser.java
(original)
+++ cxf/trunk/tools/wadlto/jaxrs/src/main/java/org/apache/cxf/tools/wadlto/jaxb/CustomizationParser.java
Sun Jan  8 13:59:37 2012
@@ -60,7 +60,7 @@ public final class CustomizationParser {
     private String wadlPath;
     
     public CustomizationParser(ToolContext env) {
-        bus = (Bus)env.get(Bus.class);
+        bus = env.get(Bus.class);
         wadlPath = (String)env.get(WadlToolConstants.CFG_WADLURL);
     }
 

Modified: cxf/trunk/tools/wsdlto/databinding/jaxb/src/main/java/org/apache/cxf/tools/wsdlto/databinding/jaxb/JAXBDataBinding.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/wsdlto/databinding/jaxb/src/main/java/org/apache/cxf/tools/wsdlto/databinding/jaxb/JAXBDataBinding.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/tools/wsdlto/databinding/jaxb/src/main/java/org/apache/cxf/tools/wsdlto/databinding/jaxb/JAXBDataBinding.java
(original)
+++ cxf/trunk/tools/wsdlto/databinding/jaxb/src/main/java/org/apache/cxf/tools/wsdlto/databinding/jaxb/JAXBDataBinding.java
Sun Jan  8 13:59:37 2012
@@ -715,7 +715,7 @@ public class JAXBDataBinding implements 
             TypesCodeWriter fileCodeWriter = new TypesCodeWriter(new File(dir), context.getExcludePkgList());
 
             if (rawJaxbModelGenCode instanceof S2JJAXBModel) {
-                S2JJAXBModel schem2JavaJaxbModel = (S2JJAXBModel)rawJaxbModelGenCode;
+                S2JJAXBModel schem2JavaJaxbModel = rawJaxbModelGenCode;
 
                 ClassCollector classCollector = context.get(ClassCollector.class);
                 for (JClass cls : schem2JavaJaxbModel.getAllObjectFactories()) {

Modified: cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/customization/CustomizationParser.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/customization/CustomizationParser.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/customization/CustomizationParser.java
(original)
+++ cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/customization/CustomizationParser.java
Sun Jan  8 13:59:37 2012
@@ -243,7 +243,7 @@ public final class CustomizationParser {
     }
 
     protected void copyAllJaxbDeclarations(final Node schemaNode, final Element jaxwsBindingNode)
{
-        if (isSchemaElement((Element)schemaNode)) {
+        if (isSchemaElement(schemaNode)) {
             appendJaxbVersion((Element)schemaNode);
         }
 
@@ -255,7 +255,7 @@ public final class CustomizationParser {
             childNode != null;
             childNode = childNode.getNextSibling()) {
 
-            if (isSchemaElement((Element)schemaNode)) {
+            if (isSchemaElement(schemaNode)) {
                 copyJaxbAttributes(childNode, (Element)schemaNode);
             }
 
@@ -457,7 +457,7 @@ public final class CustomizationParser {
                 a.add((Element)item);
             }
         }
-        return (Element[])a.toArray(new Element[a.size()]);
+        return a.toArray(new Element[a.size()]);
     }
 
     private void addBinding(String bindingFile) throws XMLStreamException {
@@ -549,7 +549,7 @@ public final class CustomizationParser {
         if (StringUtils.isEmpty(url)) {
             return null;
         }
-        Bus bus = (Bus)env.get(Bus.class);
+        Bus bus = env.get(Bus.class);
         OASISCatalogManager catalogResolver = OASISCatalogManager.getCatalogManager(bus);
         
         try {

Modified: cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/customization/JAXWSBindingParser.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/customization/JAXWSBindingParser.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/customization/JAXWSBindingParser.java
(original)
+++ cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/customization/JAXWSBindingParser.java
Sun Jan  8 13:59:37 2012
@@ -233,7 +233,7 @@ public class JAXWSBindingParser {
         if (!(rnode instanceof Element)) {
             return null;
         }
-        return (Element)rnode;
+        return rnode;
     }
 
     class ContextImpl implements NamespaceContext {

Modified: cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/AntGenerator.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/AntGenerator.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/AntGenerator.java
(original)
+++ cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/AntGenerator.java
Sun Jan  8 13:59:37 2012
@@ -64,7 +64,7 @@ public class AntGenerator extends Abstra
         for (JavaModel javaModel : map.values()) {
 
             if (javaModel.getServiceClasses().size() == 0) {
-                ServiceInfo serviceInfo = (ServiceInfo)env.get(ServiceInfo.class);
+                ServiceInfo serviceInfo = env.get(ServiceInfo.class);
                 String wsdl = serviceInfo.getDescription().getBaseURI();
                 Message msg = new Message("CAN_NOT_GEN_ANT", LOG, wsdl);
                 if (penv.isVerbose()) {

Modified: cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/ClientGenerator.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/ClientGenerator.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/ClientGenerator.java
(original)
+++ cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/ClientGenerator.java
Sun Jan  8 13:59:37 2012
@@ -70,7 +70,7 @@ public class ClientGenerator extends Abs
         for (JavaModel javaModel : map.values()) {
         
             if (javaModel.getServiceClasses().size() == 0) {
-                ServiceInfo serviceInfo = (ServiceInfo)env.get(ServiceInfo.class);
+                ServiceInfo serviceInfo = env.get(ServiceInfo.class);
                 String wsdl = serviceInfo.getDescription().getBaseURI();
                 Message msg = new Message("CAN_NOT_GEN_CLIENT", LOG, wsdl);
                 if (penv.isVerbose()) {

Modified: cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/SEIGenerator.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/SEIGenerator.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/SEIGenerator.java
(original)
+++ cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/SEIGenerator.java
Sun Jan  8 13:59:37 2012
@@ -79,7 +79,7 @@ public class SEIGenerator extends Abstra
             Map<String, JavaInterface> interfaces = javaModel.getInterfaces();
     
             if (interfaces.size() == 0) {
-                ServiceInfo serviceInfo = (ServiceInfo)env.get(ServiceInfo.class);
+                ServiceInfo serviceInfo = env.get(ServiceInfo.class);
                 String wsdl = serviceInfo.getDescription().getBaseURI();
                 Message msg = new Message("CAN_NOT_GEN_SEI", LOG, wsdl);
                 if (penv.isVerbose()) {

Modified: cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/ServerGenerator.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/ServerGenerator.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/ServerGenerator.java
(original)
+++ cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/ServerGenerator.java
Sun Jan  8 13:59:37 2012
@@ -74,7 +74,7 @@ public class ServerGenerator extends Abs
             Map<String, JavaInterface> interfaces = javaModel.getInterfaces();
     
             if (javaModel.getServiceClasses().size() == 0) {
-                ServiceInfo serviceInfo = (ServiceInfo)env.get(ServiceInfo.class);
+                ServiceInfo serviceInfo = env.get(ServiceInfo.class);
                 String wsdl = serviceInfo.getDescription().getBaseURI();
                 Message msg = new Message("CAN_NOT_GEN_SRV", LOG, wsdl);
                 if (penv.isVerbose()) {
@@ -99,7 +99,7 @@ public class ServerGenerator extends Abs
                     setAttributes("serverClassName", serverClassName);
                     setAttributes("intf", intf);
                     if (penv.optionSet(ToolConstants.CFG_IMPL_CLASS)) {
-                        setAttributes("impl", (String)penv.get(ToolConstants.CFG_IMPL_CLASS));
+                        setAttributes("impl", penv.get(ToolConstants.CFG_IMPL_CLASS));
                         penv.remove(ToolConstants.CFG_IMPL_CLASS);
                     } else {
                         setAttributes("impl", intf.getName() + "Impl");

Modified: cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/ServiceGenerator.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/ServiceGenerator.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/ServiceGenerator.java
(original)
+++ cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/ServiceGenerator.java
Sun Jan  8 13:59:37 2012
@@ -76,7 +76,7 @@ public class ServiceGenerator extends Ab
             Map<String, JavaServiceClass> serviceClasses = javaModel.getServiceClasses();
             
             if (serviceClasses.size() == 0) {
-                ServiceInfo serviceInfo = (ServiceInfo)env.get(ServiceInfo.class);
+                ServiceInfo serviceInfo = env.get(ServiceInfo.class);
                 String wsdl = serviceInfo.getDescription().getBaseURI();
                 Message msg = new Message("CAN_NOT_GEN_SERVICE", LOG, wsdl);
                 if (penv.isVerbose()) {

Modified: cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/OperationProcessor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/OperationProcessor.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/OperationProcessor.java
(original)
+++ cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/OperationProcessor.java
Sun Jan  8 13:59:37 2012
@@ -89,7 +89,7 @@ public class OperationProcessor  extends
         ParameterProcessor paramProcessor = new ParameterProcessor(context);
         method.clear();
         
-        JAXWSBinding opBinding = (JAXWSBinding)operation.getExtensor(JAXWSBinding.class);
+        JAXWSBinding opBinding = operation.getExtensor(JAXWSBinding.class);
         JAXWSBinding ptBinding = operation.getInterface().getExtensor(JAXWSBinding.class);
         JAXWSBinding defBinding = operation.getInterface().getService()
             .getDescription().getExtensor(JAXWSBinding.class);

Modified: cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/ProcessorUtil.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/ProcessorUtil.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/ProcessorUtil.java
(original)
+++ cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/ProcessorUtil.java
Sun Jan  8 13:59:37 2012
@@ -375,7 +375,7 @@ public final class ProcessorUtil {
     public static List<WrapperElement> getWrappedElement(ToolContext context, QName
partElement) {
         List<WrapperElement> qnames = new ArrayList<WrapperElement>();
 
-        ServiceInfo serviceInfo = (ServiceInfo)context.get(ServiceInfo.class);
+        ServiceInfo serviceInfo = context.get(ServiceInfo.class);
         SchemaCollection schema = serviceInfo.getXmlSchemaCollection();
 
         XmlSchemaElement elementByName = schema.getElementByQName(partElement);
@@ -435,7 +435,7 @@ public final class ProcessorUtil {
     }
     
     public static boolean isSchemaFormQualified(ToolContext context, QName partElement) {
-        ServiceInfo serviceInfo = (ServiceInfo)context.get(ServiceInfo.class);
+        ServiceInfo serviceInfo = context.get(ServiceInfo.class);
         SchemaCollection schemaCol = serviceInfo.getXmlSchemaCollection();
         XmlSchema schema = schemaCol.getSchemaForElement(partElement);
         if (schema != null) {

Modified: cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/ServiceProcessor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/ServiceProcessor.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/ServiceProcessor.java
(original)
+++ cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/ServiceProcessor.java
Sun Jan  8 13:59:37 2012
@@ -383,8 +383,8 @@ public class ServiceProcessor extends Ab
 
                 OperationInfo opinfo = bop.getOperationInfo();
 
-                JAXWSBinding opBinding = (JAXWSBinding)opinfo.getExtensor(JAXWSBinding.class);
-                JAXWSBinding infBinding = (JAXWSBinding)opinfo.getInterface().getExtensor(JAXWSBinding.class);
+                JAXWSBinding opBinding = opinfo.getExtensor(JAXWSBinding.class);
+                JAXWSBinding infBinding = opinfo.getInterface().getExtensor(JAXWSBinding.class);
                 boolean enableMime = enableOpMime;
                 boolean enableWrapperStyle = true;
                 
@@ -654,7 +654,7 @@ public class ServiceProcessor extends Ab
                 return BindingType.SOAPBinding;
             }
             if (ext instanceof HTTPBinding) {
-                bindingObj = (HTTPBinding)ext;
+                bindingObj = ext;
                 return BindingType.HTTPBinding;
             }
         }

Modified: cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/validator/WrapperStyleNameCollisionValidator.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/validator/WrapperStyleNameCollisionValidator.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/validator/WrapperStyleNameCollisionValidator.java
(original)
+++ cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/validator/WrapperStyleNameCollisionValidator.java
Sun Jan  8 13:59:37 2012
@@ -100,7 +100,7 @@ public class WrapperStyleNameCollisionVa
         operationName = ProcessorUtil.mangleNameToVariableName(operationName);
 
         
-        JAXWSBinding binding = (JAXWSBinding)operation.getExtensor(JAXWSBinding.class);
+        JAXWSBinding binding = operation.getExtensor(JAXWSBinding.class);
         if (binding != null) {
             if (!binding.isEnableWrapperStyle()) {
                 valid = true;

Modified: cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/processor/WSDLToServiceProcessor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/processor/WSDLToServiceProcessor.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/processor/WSDLToServiceProcessor.java
(original)
+++ cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/processor/WSDLToServiceProcessor.java
Sun Jan  8 13:59:37 2012
@@ -74,7 +74,7 @@ public class WSDLToServiceProcessor exte
         for (QName serviceQName: services.keySet()) {
             String serviceName = serviceQName.getLocalPart();
             if (serviceName.equals(env.get(ToolConstants.CFG_SERVICE))) {
-                service = (Service)services.get(serviceQName);
+                service = services.get(serviceQName);
                 break;
             }
         }

Modified: cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenTest.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenTest.java
(original)
+++ cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenTest.java
Sun Jan  8 13:59:37 2012
@@ -1056,7 +1056,7 @@ public class CodeGenTest extends Abstrac
         Method method = clz.getMethod("sayHello", new Class[] {java.lang.String.class});
         assertNotNull("sayHello is not be generated", method);
 
-        SOAPBinding soapBindingAnn = (SOAPBinding)clz.getAnnotation(SOAPBinding.class);
+        SOAPBinding soapBindingAnn = clz.getAnnotation(SOAPBinding.class);
         assertEquals(soapBindingAnn.parameterStyle(), SOAPBinding.ParameterStyle.BARE);
 
     }

Modified: cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/JAXWSContainerTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/JAXWSContainerTest.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/JAXWSContainerTest.java
(original)
+++ cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/JAXWSContainerTest.java
Sun Jan  8 13:59:37 2012
@@ -197,7 +197,7 @@ public class JAXWSContainerTest extends 
                 if ("SOAPService_Test1".equals(service.getName())) {
                     continue;
                 }
-                List<JavaPort> ports = (List<JavaPort>) service.getPorts();
+                List<JavaPort> ports = service.getPorts();
                 for (JavaPort port : ports) {
                     if (interfaceName.equals(port.getPortType())) {
                         address = port.getBindingAdress();



Mime
View raw message