You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2012/01/08 14:59:46 UTC

svn commit: r1228848 [4/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...

Modified: cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSSoapBookTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSSoapBookTest.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSSoapBookTest.java (original)
+++ cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSSoapBookTest.java Sun Jan  8 13:59:37 2012
@@ -581,7 +581,7 @@ public class JAXRSSoapBookTest extends A
         map.add("name", "CXF in Action - ");
         map.add("name", "679");
         Book b = readBook((InputStream)wc.accept("application/xml")
-                          .form((Map<String, List<Object>>)map).getEntity());
+                          .form(map).getEntity());
         assertEquals(679, b.getId());
         assertEquals("CXF in Action - 679", b.getName());
     }
@@ -791,7 +791,7 @@ public class JAXRSSoapBookTest extends A
         final boolean addBadOutInterceptor = true;
         TestFeature testFeature = new TestFeature(addBadOutInterceptor);
         List<AbstractFeature> features = new ArrayList<AbstractFeature>();
-        features.add((AbstractFeature)testFeature);
+        features.add(testFeature);
         bean.setFeatures(features);
         BookStoreJaxrsJaxws proxy = (BookStoreJaxrsJaxws)bean.create();
         try {
@@ -815,7 +815,7 @@ public class JAXRSSoapBookTest extends A
         bean.setResourceClass(BookStoreJaxrsJaxws.class);
         TestFeature testFeature = new TestFeature();
         List<AbstractFeature> features = new ArrayList<AbstractFeature>();
-        features.add((AbstractFeature)testFeature);
+        features.add(testFeature);
         bean.setFeatures(features);
         BookStoreJaxrsJaxws proxy = (BookStoreJaxrsJaxws)bean.create();
         WebClient.getConfig(proxy).getRequestContext().put("org.apache.cxf.http.no_io_exceptions", false);

Modified: cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/MultipartStore.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/MultipartStore.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/MultipartStore.java (original)
+++ cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/MultipartStore.java Sun Jan  8 13:59:37 2012
@@ -89,7 +89,7 @@ public class MultipartStore {
             throw new RuntimeException("Wrong image property");
         }
         context.put(org.apache.cxf.message.Message.MTOM_ENABLED, 
-                    (Object)"true");
+                    "true");
         
         XopType xop = new XopType();
         xop.setName("xopName");

Modified: cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/jaxws/BookSoapService.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/jaxws/BookSoapService.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/jaxws/BookSoapService.java (original)
+++ cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/jaxws/BookSoapService.java Sun Jan  8 13:59:37 2012
@@ -41,7 +41,7 @@ public class BookSoapService extends Ser
 
     @WebEndpoint(name = "BookPort")
     public BookStoreJaxrsJaxws getBookPort() {
-        return (BookStoreJaxrsJaxws)super.getPort(BOOK_PORT, 
+        return super.getPort(BOOK_PORT, 
                                                   BookStoreJaxrsJaxws.class);
     }
 

Modified: cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/SdoFactoryImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/SdoFactoryImpl.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/SdoFactoryImpl.java (original)
+++ cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/sdo/impl/SdoFactoryImpl.java Sun Jan  8 13:59:37 2012
@@ -108,7 +108,7 @@ public class SdoFactoryImpl extends Fact
             }
             isInitialized = true;
         
-            ModelFactoryImpl theModelPackageImpl = (ModelFactoryImpl)ModelFactoryImpl.init();
+            ModelFactoryImpl theModelPackageImpl = ModelFactoryImpl.init();
                 Property property = null;
         
                 // Add supertypes to types

Modified: cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/AddNumbersServiceWithAnnotation.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/AddNumbersServiceWithAnnotation.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/AddNumbersServiceWithAnnotation.java (original)
+++ cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/AddNumbersServiceWithAnnotation.java Sun Jan  8 13:59:37 2012
@@ -67,7 +67,7 @@ public class AddNumbersServiceWithAnnota
      */
     @WebEndpoint(name = "AddNumbersPort")
     public AddNumbers getAddNumbersPort() {
-        return (AddNumbers)super.getPort(ADDNUMBERS_PORT, AddNumbers.class);
+        return super.getPort(ADDNUMBERS_PORT, AddNumbers.class);
     }
 
 }

Modified: cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/HandlerInvocationTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/HandlerInvocationTest.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/HandlerInvocationTest.java (original)
+++ cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/HandlerInvocationTest.java Sun Jan  8 13:59:37 2012
@@ -1157,7 +1157,7 @@ public class HandlerInvocationTest exten
         TestSOAPHandler soapHandler1 = new TestSOAPHandler(false);
         TestSOAPHandler soapHandler2 = new TestSOAPHandler(false);
 
-        addHandlersToChain((BindingProvider)disp, handler1, handler2, soapHandler1, soapHandler2);
+        addHandlersToChain(disp, handler1, handler2, soapHandler1, soapHandler2);
 
         InputStream is = getClass().getResourceAsStream("PingReq.xml");
         SOAPMessage outMsg = MessageFactory.newInstance().createMessage(null, is);

Modified: cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/HandlerInvocationUsingAddNumbersTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/HandlerInvocationUsingAddNumbersTest.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/HandlerInvocationUsingAddNumbersTest.java (original)
+++ cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/HandlerInvocationUsingAddNumbersTest.java Sun Jan  8 13:59:37 2012
@@ -67,7 +67,7 @@ public class HandlerInvocationUsingAddNu
         URL wsdl = getClass().getResource("/wsdl/addNumbers.wsdl");
 
         AddNumbersService service = new AddNumbersService(wsdl, serviceName);
-        AddNumbers port = (AddNumbers)service.getPort(portName, AddNumbers.class);
+        AddNumbers port = service.getPort(portName, AddNumbers.class);
         setAddress(port, addNumbersAddress);
         SmallNumberHandler sh = new SmallNumberHandler();
         addHandlersProgrammatically((BindingProvider)port, sh);
@@ -83,7 +83,7 @@ public class HandlerInvocationUsingAddNu
         URL wsdl = getClass().getResource("/wsdl/addNumbers.wsdl");
 
         AddNumbersServiceWithAnnotation service = new AddNumbersServiceWithAnnotation(wsdl, serviceName);
-        AddNumbers port = (AddNumbers)service.getPort(portName, AddNumbers.class);
+        AddNumbers port = service.getPort(portName, AddNumbers.class);
         setAddress(port, addNumbersAddress);
 
         int result = port.addNumbers(10, 20);
@@ -142,7 +142,7 @@ public class HandlerInvocationUsingAddNu
         URL wsdl = getClass().getResource("/wsdl/addNumbers.wsdl");
 
         AddNumbersServiceWithAnnotation service = new AddNumbersServiceWithAnnotation(wsdl, serviceName);
-        AddNumbers port = (AddNumbers)service.getPort(portName, AddNumbers.class);
+        AddNumbers port = service.getPort(portName, AddNumbers.class);
         setAddress(port, addNumbersAddress);
 
         @SuppressWarnings("rawtypes")
@@ -164,7 +164,7 @@ public class HandlerInvocationUsingAddNu
         URL wsdl = getClass().getResource("/wsdl/addNumbers.wsdl");
 
         AddNumbersServiceWithAnnotation service = new AddNumbersServiceWithAnnotation(wsdl, serviceName);
-        AddNumbers port = (AddNumbers)service.getPort(portName, AddNumbers.class);
+        AddNumbers port = service.getPort(portName, AddNumbers.class);
         setAddress(port, addNumbersAddress);
 
         @SuppressWarnings("rawtypes")

Modified: cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/HandlerTestServiceWithAnnotation.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/HandlerTestServiceWithAnnotation.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/HandlerTestServiceWithAnnotation.java (original)
+++ cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/HandlerTestServiceWithAnnotation.java Sun Jan  8 13:59:37 2012
@@ -73,7 +73,7 @@ public class HandlerTestServiceWithAnnot
      */
     @WebEndpoint(name = "SoapPort")
     public HandlerTest getSoapPort() {
-        return (HandlerTest)super.getPort(SOAPPORT, HandlerTest.class);
+        return super.getPort(SOAPPORT, HandlerTest.class);
     }
 
     /**
@@ -85,7 +85,7 @@ public class HandlerTestServiceWithAnnot
      */
     @WebEndpoint(name = "SoapPort")
     public HandlerTest getSoapPort(WebServiceFeature... features) {
-        return (HandlerTest)super.getPort(SOAPPORT, HandlerTest.class, features);
+        return super.getPort(SOAPPORT, HandlerTest.class, features);
     }
 
     /**
@@ -93,7 +93,7 @@ public class HandlerTestServiceWithAnnot
      */
     @WebEndpoint(name = "SoapPort1")
     public HandlerTest1 getSoapPort1() {
-        return (HandlerTest1)super.getPort(SOAPPORT1, HandlerTest1.class);
+        return super.getPort(SOAPPORT1, HandlerTest1.class);
     }
 
     /**
@@ -105,7 +105,7 @@ public class HandlerTestServiceWithAnnot
      */
     @WebEndpoint(name = "SoapPort1")
     public HandlerTest1 getSoapPort1(WebServiceFeature... features) {
-        return (HandlerTest1)super.getPort(SOAPPORT1, HandlerTest1.class, features);
+        return super.getPort(SOAPPORT1, HandlerTest1.class, features);
     }
 
 }

Modified: cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/SpringConfiguredAutoRewriteSoapAddressTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/SpringConfiguredAutoRewriteSoapAddressTest.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/SpringConfiguredAutoRewriteSoapAddressTest.java (original)
+++ cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/SpringConfiguredAutoRewriteSoapAddressTest.java Sun Jan  8 13:59:37 2012
@@ -43,7 +43,7 @@ public class SpringConfiguredAutoRewrite
         System.err.println(getApplicationContext().getBean("cxfHandlerTestEndpoint").
                                                                    getClass().toString());
 
-        AddNumbers addNumbers = (AddNumbers)getApplicationContext().getBean("cxfHandlerTestClientEndpoint",
+        AddNumbers addNumbers = getApplicationContext().getBean("cxfHandlerTestClientEndpoint",
                                                                    AddNumbers.class);
 
         int r = addNumbers.addNumbers(10, 15);

Modified: cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/SpringConfiguredHandlerTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/SpringConfiguredHandlerTest.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/SpringConfiguredHandlerTest.java (original)
+++ cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/SpringConfiguredHandlerTest.java Sun Jan  8 13:59:37 2012
@@ -37,20 +37,20 @@ public class SpringConfiguredHandlerTest
 
     @Test
     public void testSpringConfiguresHandlers() throws Exception {
-        AddNumbers addNumbers = (AddNumbers)getApplicationContext().getBean("cxfHandlerTestClientEndpoint",
+        AddNumbers addNumbers = getApplicationContext().getBean("cxfHandlerTestClientEndpoint",
                                                                    AddNumbers.class);
 
         int r = addNumbers.addNumbers(10, 15);
         assertEquals(1015, r);
 
     
-        addNumbers = (AddNumbers)getApplicationContext().getBean("cxfHandlerTestClientEndpointNoHandler",
+        addNumbers = getApplicationContext().getBean("cxfHandlerTestClientEndpointNoHandler",
                                                                  AddNumbers.class);
 
         r = addNumbers.addNumbers(10, 15);
         assertEquals(115, r);
 
-        addNumbers = (AddNumbers)getApplicationContext().getBean("cxfHandlerTestClientServer",
+        addNumbers = getApplicationContext().getBean("cxfHandlerTestClientServer",
                                                                  AddNumbers.class);
 
         r = addNumbers.addNumbers(10, 15);

Modified: cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/SpringConfiguredNoAutoRewriteSoapAddressTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/SpringConfiguredNoAutoRewriteSoapAddressTest.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/SpringConfiguredNoAutoRewriteSoapAddressTest.java (original)
+++ cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/handlers/SpringConfiguredNoAutoRewriteSoapAddressTest.java Sun Jan  8 13:59:37 2012
@@ -44,7 +44,7 @@ public class SpringConfiguredNoAutoRewri
         System.err.println(getApplicationContext().getBean("cxfHandlerTestEndpoint").
                                                                    getClass().toString());
 
-        AddNumbers addNumbers = (AddNumbers)getApplicationContext().getBean("cxfHandlerTestClientEndpoint",
+        AddNumbers addNumbers = getApplicationContext().getBean("cxfHandlerTestClientEndpoint",
                                                                    AddNumbers.class);
 
         int r = addNumbers.addNumbers(10, 15);

Modified: cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/jaxws/ClientServerTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/jaxws/ClientServerTest.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/jaxws/ClientServerTest.java (original)
+++ cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/jaxws/ClientServerTest.java Sun Jan  8 13:59:37 2012
@@ -469,7 +469,7 @@ public class ClientServerTest extends Ab
             }
         }
         
-        Greeter greeter = (Greeter)service.getPort(portName, Greeter.class);
+        Greeter greeter = service.getPort(portName, Greeter.class);
         updateAddressPort(greeter, PORT);
         long before = System.currentTimeMillis();
 
@@ -576,7 +576,7 @@ public class ClientServerTest extends Ab
 
         String expectedString = new String("Hello, finally!");
         try {
-            Greeter greeter = (Greeter)service.getPort(portName, Greeter.class);
+            Greeter greeter = service.getPort(portName, Greeter.class);
             updateAddressPort(greeter, PORT);
             long before = System.currentTimeMillis();
             long delay = 3000;

Modified: cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/jaxws/ClientServerXMLTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/jaxws/ClientServerXMLTest.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/jaxws/ClientServerXMLTest.java (original)
+++ cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/jaxws/ClientServerXMLTest.java Sun Jan  8 13:59:37 2012
@@ -268,8 +268,8 @@ public class ClientServerXMLTest extends
             greeter.pingMe();
             fail("did not catch expected PingMeFault exception");
         } catch (PingMeFault ex) {
-            assertEquals("minor value", 1, (int)ex.getFaultInfo().getMinor());
-            assertEquals("major value", 2, (int)ex.getFaultInfo().getMajor());
+            assertEquals("minor value", 1, ex.getFaultInfo().getMinor());
+            assertEquals("major value", 2, ex.getFaultInfo().getMajor());
 
             BindingProvider bp = (BindingProvider) greeter;
             Map<String, Object> responseContext = bp.getResponseContext();

Modified: cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/jaxws/HelloService.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/jaxws/HelloService.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/jaxws/HelloService.java (original)
+++ cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/jaxws/HelloService.java Sun Jan  8 13:59:37 2012
@@ -42,7 +42,7 @@ public class HelloService extends Servic
 
     @WebEndpoint(name = "HelloPort")
     public Hello getHelloPort() {
-        return (Hello)super.getPort(HELLO_PORT, Hello.class);
+        return super.getPort(HELLO_PORT, Hello.class);
     }
 
 }

Modified: cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/provider/AttachmentStreamSourceXMLProvider.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/provider/AttachmentStreamSourceXMLProvider.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/provider/AttachmentStreamSourceXMLProvider.java (original)
+++ cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/provider/AttachmentStreamSourceXMLProvider.java Sun Jan  8 13:59:37 2012
@@ -117,7 +117,7 @@ public class AttachmentStreamSourceXMLPr
                 = CastUtils.cast((Map<?, ?>)mc.get(MessageContext.OUTBOUND_MESSAGE_ATTACHMENTS));
             byte[] data = new byte[50];
             for (int x = 0; x < data.length; x++) {
-                data[x] = (byte)(x + (int)'0');
+                data[x] = (byte)(x + '0');
             }
             DataHandler foo = new DataHandler(new ByteArrayDataSource(data, "application/octet-stream"));
             outDataHandlers.put("foo", foo);

Modified: cxf/trunk/systests/transport-jms/src/test/java/org/apache/cxf/systest/jms/continuations/HelloContinuationService.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/transport-jms/src/test/java/org/apache/cxf/systest/jms/continuations/HelloContinuationService.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/systests/transport-jms/src/test/java/org/apache/cxf/systest/jms/continuations/HelloContinuationService.java (original)
+++ cxf/trunk/systests/transport-jms/src/test/java/org/apache/cxf/systest/jms/continuations/HelloContinuationService.java Sun Jan  8 13:59:37 2012
@@ -43,7 +43,7 @@ public class HelloContinuationService ex
 
     @WebEndpoint(name = "HelloContinuationPort")
     public HelloContinuation getHelloContinuationPort() {
-        return (HelloContinuation)super.getPort(HELLO_PORT, HelloContinuation.class);
+        return super.getPort(HELLO_PORT, HelloContinuation.class);
     }
 
 }

Modified: cxf/trunk/systests/transport-jms/src/test/java/org/apache/cxf/systest/jms/tx/Server.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/transport-jms/src/test/java/org/apache/cxf/systest/jms/tx/Server.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/systests/transport-jms/src/test/java/org/apache/cxf/systest/jms/tx/Server.java (original)
+++ cxf/trunk/systests/transport-jms/src/test/java/org/apache/cxf/systest/jms/tx/Server.java Sun Jan  8 13:59:37 2012
@@ -41,7 +41,7 @@ public class Server extends AbstractBusT
         JMSConfiguration jmsConfig = new JMSConfiguration();
 
         ConnectionFactory connectionFactory
-            = (ConnectionFactory)context.getBean("jmsConnectionFactory", ConnectionFactory.class);
+            = context.getBean("jmsConnectionFactory", ConnectionFactory.class);
         jmsConfig.setConnectionFactory(connectionFactory);
         jmsConfig.setTargetDestination("greeter.queue.noaop");
         jmsConfig.setSessionTransacted(true);

Modified: cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/http_jetty/continuations/HelloContinuationService.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/http_jetty/continuations/HelloContinuationService.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/http_jetty/continuations/HelloContinuationService.java (original)
+++ cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/http_jetty/continuations/HelloContinuationService.java Sun Jan  8 13:59:37 2012
@@ -43,7 +43,7 @@ public class HelloContinuationService ex
 
     @WebEndpoint(name = "HelloContinuationPort")
     public HelloContinuation getHelloContinuationPort() {
-        return (HelloContinuation)super.getPort(HELLO_PORT, HelloContinuation.class);
+        return super.getPort(HELLO_PORT, HelloContinuation.class);
     }
 
 }

Modified: cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/cxf1226/MissingQualification1226Test.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/cxf1226/MissingQualification1226Test.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/cxf1226/MissingQualification1226Test.java (original)
+++ cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/cxf1226/MissingQualification1226Test.java Sun Jan  8 13:59:37 2012
@@ -46,7 +46,7 @@ public class MissingQualification1226Tes
     
     @Test
     public void lookForMissingNamespace() throws Exception {
-        EndpointImpl endpoint = (EndpointImpl) getBean(EndpointImpl.class, "helloWorld");
+        EndpointImpl endpoint = getBean(EndpointImpl.class, "helloWorld");
         Document d = getWSDLDocument(endpoint.getServer());
         NodeList schemas = assertValid("//xsd:schema[@targetNamespace='http://nstest.helloworld']", d);
         Element schemaElement = (Element)schemas.item(0);

Modified: cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/corba/CorbaBindingFactoryConfigurerTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/corba/CorbaBindingFactoryConfigurerTest.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/corba/CorbaBindingFactoryConfigurerTest.java (original)
+++ cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/corba/CorbaBindingFactoryConfigurerTest.java Sun Jan  8 13:59:37 2012
@@ -55,7 +55,7 @@ public class CorbaBindingFactoryConfigur
         BindingFactoryManager bfm = bus.getExtension(BindingFactoryManager.class);        
         CorbaBindingFactory factory = 
             (CorbaBindingFactory)bfm.getBindingFactory("http://cxf.apache.org/bindings/corba");
-        OrbConfig orbConfig = (OrbConfig)factory.getOrbConfig();
+        OrbConfig orbConfig = factory.getOrbConfig();
         assertTrue("CorbaBindingFactoryConfigurer is null", orbConfig != null);
         Properties props  = orbConfig.getOrbProperties();
         assertTrue("probs is null", props != null);

Modified: cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/factory_pattern/ManualHttpMulitplexClientServerTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/factory_pattern/ManualHttpMulitplexClientServerTest.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/factory_pattern/ManualHttpMulitplexClientServerTest.java (original)
+++ cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/factory_pattern/ManualHttpMulitplexClientServerTest.java Sun Jan  8 13:59:37 2012
@@ -96,7 +96,7 @@ public class ManualHttpMulitplexClientSe
         String portString = EndpointReferenceUtils.getPortName(epr);
         QName portName = new QName(serviceName.getNamespaceURI(), portString);                
         numService.addPort(portName, SoapBindingFactory.SOAP_11_BINDING, "http://foo");
-        Number num = (Number)numService.getPort(portName, Number.class);
+        Number num = numService.getPort(portName, Number.class);
 
         setupContextWithEprAddress(epr, num);
         
@@ -134,11 +134,11 @@ public class ManualHttpMulitplexClientSe
         NumberService numService = new NumberService();
         ServiceImpl serviceImpl = ServiceDelegateAccessor.get(numService);
         
-        Number num =  (Number)serviceImpl.getPort(numberTwoRef, Number.class);
+        Number num =  serviceImpl.getPort(numberTwoRef, Number.class);
         assertTrue("20 is even", num.isEven().isEven());
         w3cEpr = factory.create("23");
         EndpointReferenceType numberTwentyThreeRef = VersionTransformer.convertToInternal(w3cEpr); 
-        num =  (Number)serviceImpl.getPort(numberTwentyThreeRef, Number.class);
+        num =  serviceImpl.getPort(numberTwentyThreeRef, Number.class);
         assertTrue("23 is not even", !num.isEven().isEven());
     }
     

Modified: cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/factory_pattern/MultiplexClientServerTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/factory_pattern/MultiplexClientServerTest.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/factory_pattern/MultiplexClientServerTest.java (original)
+++ cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/factory_pattern/MultiplexClientServerTest.java Sun Jan  8 13:59:37 2012
@@ -102,13 +102,13 @@ public class MultiplexClientServerTest e
         W3CEndpointReference numberTwoRef = factory.create("20");
         assertNotNull("reference", numberTwoRef);
            
-        Number num =  (Number)serviceImpl.getPort(numberTwoRef, Number.class);
+        Number num =  serviceImpl.getPort(numberTwoRef, Number.class);
         assertTrue("20 is even", num.isEven().isEven());
         
         ClientProxy.getClient(num).getConduit().close();
         
         W3CEndpointReference numberTwentyThreeRef = factory.create("23");
-        num =  (Number)serviceImpl.getPort(numberTwentyThreeRef, Number.class);
+        num =  serviceImpl.getPort(numberTwentyThreeRef, Number.class);
         assertTrue("23 is not even", !num.isEven().isEven());
         
         ClientProxy.getClient(num).getConduit().close();
@@ -133,7 +133,7 @@ public class MultiplexClientServerTest e
 
         assertNotNull("reference", ref);
         ServiceImpl serviceImpl = ServiceDelegateAccessor.get(numService);    
-        Number num =  (Number)serviceImpl.getPort(ref, Number.class); 
+        Number num =  serviceImpl.getPort(ref, Number.class); 
         try {
             num.isEven().isEven();
             fail("there should be a fault on val 999");
@@ -145,7 +145,7 @@ public class MultiplexClientServerTest e
         
         ref = factory.create("37");
         assertNotNull("reference", ref);
-        num =  (Number)serviceImpl.getPort(ref, Number.class);
+        num =  serviceImpl.getPort(ref, Number.class);
         assertTrue("37 is not even", !num.isEven().isEven());
         
         ClientProxy.getClient(num).getConduit().close();

Modified: cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/factory_pattern/MultiplexHttpAddressClientServerTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/factory_pattern/MultiplexHttpAddressClientServerTest.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/factory_pattern/MultiplexHttpAddressClientServerTest.java (original)
+++ cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/factory_pattern/MultiplexHttpAddressClientServerTest.java Sun Jan  8 13:59:37 2012
@@ -96,11 +96,11 @@ public class MultiplexHttpAddressClientS
         W3CEndpointReference numberTwoRef = factory.create("20");
         assertNotNull("reference", numberTwoRef);
            
-        Number num =  (Number)serviceImpl.getPort(numberTwoRef, Number.class);
+        Number num =  serviceImpl.getPort(numberTwoRef, Number.class);
         assertTrue("20 is even", num.isEven().isEven());
         
         W3CEndpointReference numberTwentyThreeRef = factory.create("23");
-        num =  (Number)serviceImpl.getPort(numberTwentyThreeRef, Number.class);
+        num =  serviceImpl.getPort(numberTwentyThreeRef, Number.class);
         assertTrue("23 is not even", !num.isEven().isEven());
     }
     
@@ -108,7 +108,7 @@ public class MultiplexHttpAddressClientS
     public void testWithManualMultiplexEprCreation() throws Exception {
     
         Service numService = Service.create(NumberFactoryImpl.NUMBER_SERVICE_QNAME);
-        Number num =  (Number)numService.getPort(Number.class);
+        Number num =  numService.getPort(Number.class);
         
         InvocationHandler handler  = Proxy.getInvocationHandler(num);
         BindingProvider bp = (BindingProvider)handler;    

Modified: cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/interceptor/InterceptorFaultTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/interceptor/InterceptorFaultTest.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/interceptor/InterceptorFaultTest.java (original)
+++ cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/interceptor/InterceptorFaultTest.java Sun Jan  8 13:59:37 2012
@@ -183,8 +183,8 @@ public class InterceptorFaultTest extend
             greeter.pingMe();
             fail("Expected PingMeFault not thrown.");
         } catch (PingMeFault f) {
-            assertEquals(20, (int)f.getFaultInfo().getMajor());
-            assertEquals(10, (int)f.getFaultInfo().getMinor());
+            assertEquals(20, f.getFaultInfo().getMajor());
+            assertEquals(10, f.getFaultInfo().getMinor());
         }
         
         // test failure in phases before Phase.PRE_LOGICAL

Modified: cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/rest/RestClientServerBookTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/rest/RestClientServerBookTest.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/rest/RestClientServerBookTest.java (original)
+++ cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/rest/RestClientServerBookTest.java Sun Jan  8 13:59:37 2012
@@ -74,7 +74,7 @@ public class RestClientServerBookTest ex
         GetBook getBook = new GetBook();
         getBook.setId(123);
         Book book = bs.getBook(getBook);
-        assertEquals(book.getId(), (long)123);
+        assertEquals(book.getId(), 123);
         assertEquals(book.getName(), "CXF in Action");
     }
     
@@ -93,7 +93,7 @@ public class RestClientServerBookTest ex
         GetAnotherBook getAnotherBook = new GetAnotherBook();
         getAnotherBook.setId(123);
         Book book = bs.getAnotherBook(getAnotherBook);
-        assertEquals(book.getId(), (long)123);
+        assertEquals(book.getId(), 123);
         assertEquals(book.getName(), "CXF in Action");
     }
     
@@ -108,7 +108,7 @@ public class RestClientServerBookTest ex
         sf.setAddress("http://localhost:" + PORT + "/xmlwrapped/");
         BookServiceWrapped bs = (BookServiceWrapped)sf.create();
         Book book = bs.getBook(123);
-        assertEquals(book.getId(), (long)123);
+        assertEquals(book.getId(), 123);
         assertEquals(book.getName(), "CXF in Action");
     }
     

Modified: cxf/trunk/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/AddressingAnonymousPolicyTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/AddressingAnonymousPolicyTest.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/AddressingAnonymousPolicyTest.java (original)
+++ cxf/trunk/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/AddressingAnonymousPolicyTest.java Sun Jan  8 13:59:37 2012
@@ -137,8 +137,8 @@ public class AddressingAnonymousPolicyTe
             greeter.pingMe();
             fail("Expected PingMeFault not thrown.");
         } catch (PingMeFault ex) {
-            assertEquals(2, (int)ex.getFaultInfo().getMajor());
-            assertEquals(1, (int)ex.getFaultInfo().getMinor());
+            assertEquals(2, ex.getFaultInfo().getMajor());
+            assertEquals(1, ex.getFaultInfo().getMinor());
         } 
     }
 }

Modified: cxf/trunk/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/AddressingInlinePolicyTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/AddressingInlinePolicyTest.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/AddressingInlinePolicyTest.java (original)
+++ cxf/trunk/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/AddressingInlinePolicyTest.java Sun Jan  8 13:59:37 2012
@@ -122,8 +122,8 @@ public class AddressingInlinePolicyTest 
             greeter.pingMe();
             fail("Expected PingMeFault not thrown.");
         } catch (PingMeFault ex) {
-            assertEquals(2, (int)ex.getFaultInfo().getMajor());
-            assertEquals(1, (int)ex.getFaultInfo().getMinor());
+            assertEquals(2, ex.getFaultInfo().getMajor());
+            assertEquals(1, ex.getFaultInfo().getMinor());
         } 
     }
 

Modified: cxf/trunk/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/AddressingOptionalPolicyTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/AddressingOptionalPolicyTest.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/AddressingOptionalPolicyTest.java (original)
+++ cxf/trunk/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/AddressingOptionalPolicyTest.java Sun Jan  8 13:59:37 2012
@@ -144,8 +144,8 @@ public class AddressingOptionalPolicyTes
             greeter.pingMe();
             fail("Expected PingMeFault not thrown.");
         } catch (PingMeFault ex) {
-            assertEquals(2, (int)ex.getFaultInfo().getMajor());
-            assertEquals(1, (int)ex.getFaultInfo().getMinor());
+            assertEquals(2, ex.getFaultInfo().getMajor());
+            assertEquals(1, ex.getFaultInfo().getMinor());
         } 
         
         MessageFlow mf = new MessageFlow(out.getOutboundMessages(), in.getInboundMessages());
@@ -194,8 +194,8 @@ public class AddressingOptionalPolicyTes
             greeter.pingMe();
             fail("Expected PingMeFault not thrown.");
         } catch (PingMeFault ex) {
-            assertEquals(2, (int)ex.getFaultInfo().getMajor());
-            assertEquals(1, (int)ex.getFaultInfo().getMinor());
+            assertEquals(2, ex.getFaultInfo().getMajor());
+            assertEquals(1, ex.getFaultInfo().getMinor());
         } 
         
         MessageFlow mf = new MessageFlow(out.getOutboundMessages(), in.getInboundMessages());

Modified: cxf/trunk/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/AddressingPolicyTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/AddressingPolicyTest.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/AddressingPolicyTest.java (original)
+++ cxf/trunk/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/AddressingPolicyTest.java Sun Jan  8 13:59:37 2012
@@ -138,8 +138,8 @@ public class AddressingPolicyTest extend
             greeter.pingMe();
             fail("Expected PingMeFault not thrown.");
         } catch (PingMeFault ex) {
-            assertEquals(2, (int)ex.getFaultInfo().getMajor());
-            assertEquals(1, (int)ex.getFaultInfo().getMinor());
+            assertEquals(2, ex.getFaultInfo().getMajor());
+            assertEquals(1, ex.getFaultInfo().getMinor());
         } 
     }
 }

Modified: cxf/trunk/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/HTTPClientPolicyTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/HTTPClientPolicyTest.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/HTTPClientPolicyTest.java (original)
+++ cxf/trunk/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/HTTPClientPolicyTest.java Sun Jan  8 13:59:37 2012
@@ -161,8 +161,8 @@ public class HTTPClientPolicyTest extend
             greeter.pingMe();
             fail("Expected PingMeFault not thrown.");
         } catch (PingMeFault ex) {
-            assertEquals(2, (int)ex.getFaultInfo().getMajor());
-            assertEquals(1, (int)ex.getFaultInfo().getMinor());
+            assertEquals(2, ex.getFaultInfo().getMajor());
+            assertEquals(1, ex.getFaultInfo().getMinor());
         } 
 
     }

Modified: cxf/trunk/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/HTTPServerPolicyTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/HTTPServerPolicyTest.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/HTTPServerPolicyTest.java (original)
+++ cxf/trunk/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/HTTPServerPolicyTest.java Sun Jan  8 13:59:37 2012
@@ -139,8 +139,8 @@ public class HTTPServerPolicyTest extend
             greeter.pingMe();
             fail("Expected PingMeFault not thrown.");
         } catch (PingMeFault ex) {
-            assertEquals(2, (int)ex.getFaultInfo().getMajor());
-            assertEquals(1, (int)ex.getFaultInfo().getMinor());
+            assertEquals(2, ex.getFaultInfo().getMajor());
+            assertEquals(1, ex.getFaultInfo().getMinor());
         }
 
     }

Modified: cxf/trunk/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/RMPolicyTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/RMPolicyTest.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/RMPolicyTest.java (original)
+++ cxf/trunk/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/RMPolicyTest.java Sun Jan  8 13:59:37 2012
@@ -155,8 +155,8 @@ public class RMPolicyTest extends Abstra
             greeter.pingMe();
             fail("Expected PingMeFault not thrown.");
         } catch (PingMeFault ex) {
-            assertEquals(2, (int)ex.getFaultInfo().getMajor());
-            assertEquals(1, (int)ex.getFaultInfo().getMinor());
+            assertEquals(2, ex.getFaultInfo().getMajor());
+            assertEquals(1, ex.getFaultInfo().getMinor());
         } 
 
         MessageRecorder mr = new MessageRecorder(outRecorder, inRecorder);

Modified: cxf/trunk/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/RMPolicyWsdlTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/RMPolicyWsdlTest.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/RMPolicyWsdlTest.java (original)
+++ cxf/trunk/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/RMPolicyWsdlTest.java Sun Jan  8 13:59:37 2012
@@ -157,8 +157,8 @@ public class RMPolicyWsdlTest extends Ab
             greeter.pingMe();
             fail("Expected PingMeFault not thrown.");
         } catch (PingMeFault ex) {
-            assertEquals(2, (int)ex.getFaultInfo().getMajor());
-            assertEquals(1, (int)ex.getFaultInfo().getMinor());
+            assertEquals(2, ex.getFaultInfo().getMajor());
+            assertEquals(1, ex.getFaultInfo().getMinor());
         } 
 
         MessageRecorder mr = new MessageRecorder(outRecorder, inRecorder);

Modified: cxf/trunk/testutils/src/main/java/org/apache/cxf/customer/book/BookServiceImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/testutils/src/main/java/org/apache/cxf/customer/book/BookServiceImpl.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/testutils/src/main/java/org/apache/cxf/customer/book/BookServiceImpl.java (original)
+++ cxf/trunk/testutils/src/main/java/org/apache/cxf/customer/book/BookServiceImpl.java Sun Jan  8 13:59:37 2012
@@ -41,17 +41,17 @@ public class BookServiceImpl implements 
             System.out.println("getBooks -> " + me.getKey() + " : " + me.getValue());
         }
         Books b = new Books();
-        b.setBooks((Book[])books.values().toArray(new Book[books.size()]));
+        b.setBooks(books.values().toArray(new Book[books.size()]));
         return b;
     }
 
     public Book getBook(GetBook getBook) throws BookNotFoundFault {
         for (Map.Entry<Long, Book> me : books.entrySet()) {
             System.out.println("getBook -> " + me.getKey() + " : " 
-                               + ((Book)me.getValue()).getName() + ", " + ((Book)me.getValue()).getId());
+                               + me.getValue().getName() + ", " + me.getValue().getId());
         }
         System.out.println("Book de id " + getBook.getId());
-        Book b = (Book)books.get(((Long)getBook.getId()).longValue());
+        Book b = books.get(((Long)getBook.getId()).longValue());
 
         if (b == null) {
             BookNotFoundDetails details = new BookNotFoundDetails();
@@ -64,10 +64,10 @@ public class BookServiceImpl implements 
     public Book getAnotherBook(GetAnotherBook getAnotherBook) throws BookNotFoundFault {
         for (Map.Entry<Long, Book> me : books.entrySet()) {
             System.out.println("getBook -> " + me.getKey() + " : " 
-                               + ((Book)me.getValue()).getName() + ", " + ((Book)me.getValue()).getId());
+                               + me.getValue().getName() + ", " + me.getValue().getId());
         }
         System.out.println("Book de id " + getAnotherBook.getId());
-        Book b = (Book)books.get(((Long)getAnotherBook.getId()).longValue());
+        Book b = books.get(((Long)getAnotherBook.getId()).longValue());
 
         if (b == null) {
             BookNotFoundDetails details = new BookNotFoundDetails();
@@ -91,7 +91,7 @@ public class BookServiceImpl implements 
         books.put(id, b);
         for (Map.Entry<Long, Book> me : books.entrySet()) {
             System.out.println("addBook -> " + me.getKey() + " : " 
-                               + ((Book)me.getValue()).getName() + ", " + ((Book)me.getValue()).getId());
+                               + me.getValue().getName() + ", " + me.getValue().getId());
         }
 
         return b.getId();

Modified: cxf/trunk/testutils/src/main/java/org/apache/cxf/customer/book/BookServiceWrappedImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/testutils/src/main/java/org/apache/cxf/customer/book/BookServiceWrappedImpl.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/testutils/src/main/java/org/apache/cxf/customer/book/BookServiceWrappedImpl.java (original)
+++ cxf/trunk/testutils/src/main/java/org/apache/cxf/customer/book/BookServiceWrappedImpl.java Sun Jan  8 13:59:37 2012
@@ -39,10 +39,10 @@ public class BookServiceWrappedImpl impl
     public Book getBook(long bookid) throws BookNotFoundFault {
         for (Map.Entry<Long, Book> me : books.entrySet()) {
             System.out.println("getBook -> " + me.getKey() + " : " 
-                               + ((Book)me.getValue()).getName() + ", " + ((Book)me.getValue()).getId());
+                               + me.getValue().getName() + ", " + me.getValue().getId());
         }
         System.out.println("The Book's id " + bookid);
-        Book b = (Book)books.get(bookid);
+        Book b = books.get(bookid);
 
         if (b == null) {
             BookNotFoundDetails details = new BookNotFoundDetails();

Modified: cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/VelocityGenerator.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/VelocityGenerator.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/VelocityGenerator.java (original)
+++ cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/VelocityGenerator.java Sun Jan  8 13:59:37 2012
@@ -97,7 +97,7 @@ public final class VelocityGenerator {
 
         VelocityContext ctx = new VelocityContext();
 
-        for (String key: attributes.keySet()) {
+        for (String key : attributes.keySet()) {
             ctx.put(key, attributes.get(key));
         }
 

Modified: cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/CommandDocument.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/CommandDocument.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/CommandDocument.java (original)
+++ cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/CommandDocument.java Sun Jan  8 13:59:37 2012
@@ -85,7 +85,7 @@ public class CommandDocument {
         List<Object> result = new ArrayList<Object>();
 
         if (values != null) {
-            for (Element el: values) {
+            for (Element el : values) {
                 if (el.getAttribute("name").equals(name)) {
                     if (el.hasChildNodes()) {
                         result.add(el.getFirstChild().getNodeValue());
@@ -109,7 +109,7 @@ public class CommandDocument {
         List<Object> result = new ArrayList<Object>();
 
         if (values != null) {
-            for (Element el: values) {
+            for (Element el : values) {
                 result.add(el.getAttribute("name"));
             }
         }

Modified: cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/Option.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/Option.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/Option.java (original)
+++ cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/Option.java Sun Jan  8 13:59:37 2012
@@ -49,21 +49,21 @@ public class Option implements TokenCons
                                                                      Tool.TOOL_SPEC_PUBLIC_ID, 
                                                                      "associatedArgument");
         if (elemList != null && elemList.size() > 0) {            
-            argument = (Element)elemList.get(0);
+            argument = elemList.get(0);
         }
         
         elemList = DOMUtils.findAllElementsByTagNameNS(element, 
                                                        Tool.TOOL_SPEC_PUBLIC_ID, 
                                                        "annotation");
         if (elemList != null && elemList.size() > 0) {            
-            annotation = (Element)elemList.get(0);
+            annotation = elemList.get(0);
         }
 
         if (annotation == null && argument != null) {
             elemList =  DOMUtils.findAllElementsByTagNameNS(argument, Tool.TOOL_SPEC_PUBLIC_ID, "annotation");
 
             if (elemList != null && elemList.size() > 0) {
-                annotation = (Element)elemList.get(0);
+                annotation = elemList.get(0);
             }
         }
     }
@@ -166,7 +166,7 @@ public class Option implements TokenCons
         String valuetypeStr = null;
 
         if (list != null && list.size() > 0) {
-            valueType = (Element)list.get(0);
+            valueType = list.get(0);
             valuetypeStr = valueType.getFirstChild().getNodeValue();
 
             if ("IdentifyString".equals(valuetypeStr)) {

Modified: cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/util/AnnotationUtil.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/util/AnnotationUtil.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/util/AnnotationUtil.java (original)
+++ cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/util/AnnotationUtil.java Sun Jan  8 13:59:37 2012
@@ -60,7 +60,7 @@ public final class AnnotationUtil {
     }
 
     public static Annotation[][] getPrivParameterAnnotations(final Method method) {
-        return (Annotation[][])AccessController.doPrivileged(new PrivilegedAction<Annotation[][]>() {
+        return AccessController.doPrivileged(new PrivilegedAction<Annotation[][]>() {
             public Annotation[][] run() {
                 return method.getParameterAnnotations();
             }

Modified: cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/util/JAXBUtils.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/util/JAXBUtils.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/util/JAXBUtils.java (original)
+++ cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/util/JAXBUtils.java Sun Jan  8 13:59:37 2012
@@ -42,7 +42,7 @@ public final class JAXBUtils {
         List<Element> annoList = DOMUtils.findAllElementsByTagNameNS(schema, schemaNamespace, "annotation");
         Element annotation = null;
         if (annoList.size() > 0) {
-            annotation = (Element)annoList.get(0);
+            annotation = annoList.get(0);
         } else {
             annotation = schema.getOwnerDocument().createElementNS(schemaNamespace, "annotation");
         }
@@ -51,7 +51,7 @@ public final class JAXBUtils {
                                                                     "appinfo");
         Element appInfo = null;
         if (appList.size() > 0) {
-            appInfo = (Element)appList.get(0);
+            appInfo = appList.get(0);
         } else {
             appInfo = schema.getOwnerDocument().createElementNS(schemaNamespace, "appinfo");
             annotation.appendChild(appInfo);
@@ -62,7 +62,7 @@ public final class JAXBUtils {
                                                                      ToolConstants.NS_JAXB_BINDINGS, 
                                                                      "schemaBindings");
         if (jaxbList.size() > 0) {
-            jaxbBindings = (Element)jaxbList.get(0);
+            jaxbBindings = jaxbList.get(0);
         } else {
             jaxbBindings = schema.getOwnerDocument().createElementNS(ToolConstants.NS_JAXB_BINDINGS, 
                                                                      "schemaBindings");
@@ -90,7 +90,7 @@ public final class JAXBUtils {
                                                                     "package");
         Element packagename = null;
         if (pkgList.size() > 0) {
-            packagename = (Element)pkgList.get(0);
+            packagename = pkgList.get(0);
         } else {
             packagename = doc.createElementNS(ToolConstants.NS_JAXB_BINDINGS, "package");
         }

Modified: cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/util/SOAPBindingUtil.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/util/SOAPBindingUtil.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/util/SOAPBindingUtil.java (original)
+++ cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/util/SOAPBindingUtil.java Sun Jan  8 13:59:37 2012
@@ -378,10 +378,10 @@ public final class SOAPBindingUtil {
         throws WSDLException {
         ExtensibilityElement extElement = null;
         if (isSOAP12) {
-            extElement = (SOAP12Address)extReg.createExtension(Port.class,
+            extElement = extReg.createExtension(Port.class,
                                                                WSDLConstants.QNAME_SOAP12_BINDING_ADDRESS);
         } else {
-            extElement = (SOAPAddress)extReg.createExtension(Port.class,
+            extElement = extReg.createExtension(Port.class,
                                                              WSDLConstants.QNAME_SOAP_BINDING_ADDRESS);
         }
         return getSoapAddress(extElement);
@@ -391,10 +391,10 @@ public final class SOAPBindingUtil {
         throws WSDLException {
         ExtensibilityElement extElement = null;
         if (isSOAP12) {
-            extElement = (SOAP12Body)extReg.createExtension(clz, new QName(WSDLConstants.NS_SOAP12,
+            extElement = extReg.createExtension(clz, new QName(WSDLConstants.NS_SOAP12,
                                                                            "body"));
         } else {
-            extElement = (SOAPBody)extReg.createExtension(clz, new QName(WSDLConstants.NS_SOAP11,
+            extElement = extReg.createExtension(clz, new QName(WSDLConstants.NS_SOAP11,
                                                                          "body"));
         }
         return getSoapBody(extElement);
@@ -404,12 +404,12 @@ public final class SOAPBindingUtil {
         throws WSDLException {
         ExtensibilityElement extElement = null;
         if (isSOAP12) {
-            extElement = (SOAP12Binding)extReg.createExtension(Binding.class,
+            extElement = extReg.createExtension(Binding.class,
                                                                new QName(WSDLConstants.NS_SOAP12,
                                                                          "binding"));
             ((SOAP12Binding)extElement).setTransportURI(WSDLConstants.NS_SOAP_HTTP_TRANSPORT);
         } else {
-            extElement = (SOAPBinding)extReg.createExtension(Binding.class,
+            extElement = extReg.createExtension(Binding.class,
                                                              new QName(WSDLConstants.NS_SOAP11,
                                                                        "binding"));
             ((SOAPBinding)extElement).setTransportURI(WSDLConstants.NS_SOAP_HTTP_TRANSPORT);
@@ -421,11 +421,11 @@ public final class SOAPBindingUtil {
         throws WSDLException {
         ExtensibilityElement extElement = null;
         if (isSOAP12) {
-            extElement = (SOAP12Operation)extReg.createExtension(BindingOperation.class,
+            extElement = extReg.createExtension(BindingOperation.class,
                                                                  new QName(WSDLConstants.NS_SOAP12,
                                                                            "operation"));
         } else {
-            extElement = (SOAPOperation)extReg.createExtension(BindingOperation.class,
+            extElement = extReg.createExtension(BindingOperation.class,
                                                                new QName(WSDLConstants.NS_SOAP11,
                                                                          "operation"));
         }
@@ -436,11 +436,11 @@ public final class SOAPBindingUtil {
         throws WSDLException {
         ExtensibilityElement extElement = null;
         if (isSOAP12) {
-            extElement = (SOAP12Fault)extReg.createExtension(BindingFault.class,
+            extElement = extReg.createExtension(BindingFault.class,
                                                              new QName(WSDLConstants.NS_SOAP12,
                                                                        "fault"));
         } else {
-            extElement = (SOAPFault)extReg.createExtension(BindingFault.class,
+            extElement = extReg.createExtension(BindingFault.class,
                                                            new QName(WSDLConstants.NS_SOAP11,
                                                                      "fault"));
         }
@@ -451,11 +451,11 @@ public final class SOAPBindingUtil {
         throws WSDLException {
         ExtensibilityElement extElement = null;
         if (isSOAP12) {
-            extElement = (SOAP12Header)extReg.createExtension(clz,
+            extElement = extReg.createExtension(clz,
                                                               new QName(WSDLConstants.NS_SOAP12,
                                                                         "header"));
         } else {
-            extElement = (SOAPHeader)extReg.createExtension(clz,
+            extElement = extReg.createExtension(clz,
                                                             new QName(WSDLConstants.NS_SOAP11,
                                                                       "header"));
         }

Modified: cxf/trunk/tools/corba/src/main/generated/org/apache/cxf/tools/corba/processors/idl/IDLLexer.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/corba/src/main/generated/org/apache/cxf/tools/corba/processors/idl/IDLLexer.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/tools/corba/src/main/generated/org/apache/cxf/tools/corba/processors/idl/IDLLexer.java (original)
+++ cxf/trunk/tools/corba/src/main/generated/org/apache/cxf/tools/corba/processors/idl/IDLLexer.java Sun Jan  8 13:59:37 2012
@@ -343,7 +343,7 @@ tryAgain:
 					}
 				else {
 					if (LA(1)==EOF_CHAR) {uponEOF(); _returnToken = makeToken(Token.EOF_TYPE);}
-				else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
+				else {throw new NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
 				}
 				}
 				if ( _returnToken==null ) continue tryAgain; // found SKIP token
@@ -748,7 +748,7 @@ tryAgain:
 		}
 		default:
 		{
-			throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
+			throw new NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());
 		}
 		}
 		}
@@ -840,7 +840,7 @@ tryAgain:
 						match('*');
 					}
 					else {
-						if ( _cnt332>=1 ) { break _loop332; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
+						if ( _cnt332>=1 ) { break _loop332; } else {throw new NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
 					}
 					
 					_cnt332++;
@@ -857,7 +857,7 @@ tryAgain:
 					}
 				}
 				else {
-					throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
+					throw new NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());
 				}
 				
 				}
@@ -904,7 +904,7 @@ tryAgain:
 			matchNot('\'');
 		}
 		else {
-			throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
+			throw new NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());
 		}
 		
 		}
@@ -1008,7 +1008,7 @@ tryAgain:
 				else if (((LA(1) >= '\u0000' && LA(1) <= '\ufffe')) && (true) && (true) && (true)) {
 				}
 				else {
-					throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
+					throw new NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());
 				}
 				
 				}
@@ -1016,7 +1016,7 @@ tryAgain:
 			else if (((LA(1) >= '\u0000' && LA(1) <= '\ufffe')) && (true) && (true) && (true)) {
 			}
 			else {
-				throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
+				throw new NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());
 			}
 			
 			}
@@ -1036,7 +1036,7 @@ tryAgain:
 			else if (((LA(1) >= '\u0000' && LA(1) <= '\ufffe')) && (true) && (true) && (true)) {
 			}
 			else {
-				throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
+				throw new NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());
 			}
 			
 			}
@@ -1062,7 +1062,7 @@ tryAgain:
 					else if (((LA(1) >= '\u0000' && LA(1) <= '\ufffe')) && (true) && (true) && (true)) {
 					}
 					else {
-						throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
+						throw new NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());
 					}
 					
 					}
@@ -1070,7 +1070,7 @@ tryAgain:
 				else if (((LA(1) >= '\u0000' && LA(1) <= '\ufffe')) && (true) && (true) && (true)) {
 				}
 				else {
-					throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
+					throw new NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());
 				}
 				
 				}
@@ -1078,7 +1078,7 @@ tryAgain:
 			else if (((LA(1) >= '\u0000' && LA(1) <= '\ufffe')) && (true) && (true) && (true)) {
 			}
 			else {
-				throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
+				throw new NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());
 			}
 			
 			}
@@ -1087,7 +1087,7 @@ tryAgain:
 		}
 		default:
 		{
-			throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
+			throw new NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());
 		}
 		}
 		}
@@ -1204,7 +1204,7 @@ tryAgain:
 		}
 		default:
 		{
-			throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
+			throw new NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());
 		}
 		}
 		}
@@ -1267,7 +1267,7 @@ tryAgain:
 			match("0X");
 		}
 		else {
-			throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
+			throw new NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());
 		}
 		
 		}
@@ -1279,7 +1279,7 @@ tryAgain:
 				mHEXDIGIT(false);
 			}
 			else {
-				if ( _cnt361>=1 ) { break _loop361; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
+				if ( _cnt361>=1 ) { break _loop361; } else {throw new NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
 			}
 			
 			_cnt361++;
@@ -1346,7 +1346,7 @@ tryAgain:
 				}
 				default:
 				{
-					throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
+					throw new NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());
 				}
 				}
 				}
@@ -1370,7 +1370,7 @@ tryAgain:
 				}
 				default:
 				{
-					throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
+					throw new NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());
 				}
 				}
 				}
@@ -1382,7 +1382,7 @@ tryAgain:
 						mDIGIT(false);
 					}
 					else {
-						if ( _cnt373>=1 ) { break _loop373; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
+						if ( _cnt373>=1 ) { break _loop373; } else {throw new NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
 					}
 					
 					_cnt373++;
@@ -1408,7 +1408,7 @@ tryAgain:
 				}
 				default:
 				{
-					throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
+					throw new NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());
 				}
 				}
 				}
@@ -1439,7 +1439,7 @@ tryAgain:
 			}
 			default:
 			{
-				throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
+				throw new NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());
 			}
 			}
 			}
@@ -1463,7 +1463,7 @@ tryAgain:
 			}
 			default:
 			{
-				throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
+				throw new NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());
 			}
 			}
 			}
@@ -1475,7 +1475,7 @@ tryAgain:
 					mDIGIT(false);
 				}
 				else {
-					if ( _cnt378>=1 ) { break _loop378; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
+					if ( _cnt378>=1 ) { break _loop378; } else {throw new NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
 				}
 				
 				_cnt378++;
@@ -1500,7 +1500,7 @@ tryAgain:
 			}
 			default:
 			{
-				throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
+				throw new NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());
 			}
 			}
 			}
@@ -1539,7 +1539,7 @@ tryAgain:
 					mDIGIT(false);
 				}
 				else {
-					if ( _cnt383>=1 ) { break _loop383; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
+					if ( _cnt383>=1 ) { break _loop383; } else {throw new NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
 				}
 				
 				_cnt383++;
@@ -1569,7 +1569,7 @@ tryAgain:
 			}
 			default:
 			{
-				throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
+				throw new NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());
 			}
 			}
 			}
@@ -1603,7 +1603,7 @@ tryAgain:
 				mDIGIT(false);
 			}
 			else {
-				if ( _cnt387>=1 ) { break _loop387; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
+				if ( _cnt387>=1 ) { break _loop387; } else {throw new NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
 			}
 			
 			_cnt387++;
@@ -1627,7 +1627,7 @@ tryAgain:
 			}
 			default:
 			{
-				throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
+				throw new NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());
 			}
 			}
 			}
@@ -1651,7 +1651,7 @@ tryAgain:
 			}
 			default:
 			{
-				throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
+				throw new NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());
 			}
 			}
 			}
@@ -1663,7 +1663,7 @@ tryAgain:
 					mDIGIT(false);
 				}
 				else {
-					if ( _cnt392>=1 ) { break _loop392; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());}
+					if ( _cnt392>=1 ) { break _loop392; } else {throw new NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());}
 				}
 				
 				_cnt392++;
@@ -1687,7 +1687,7 @@ tryAgain:
 			}
 			default:
 			{
-				throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
+				throw new NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());
 			}
 			}
 			}
@@ -1737,7 +1737,7 @@ tryAgain:
 		}
 		default:
 		{
-			throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
+			throw new NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());
 		}
 		}
 		}
@@ -1826,7 +1826,7 @@ tryAgain:
 		}
 		default:
 		{
-			throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());
+			throw new NoViableAltForCharException(LA(1), getFilename(), getLine(), getColumn());
 		}
 		}
 		}

Modified: cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/common/idltypes/IdlRoot.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/common/idltypes/IdlRoot.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/common/idltypes/IdlRoot.java (original)
+++ cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/common/idltypes/IdlRoot.java Sun Jan  8 13:59:37 2012
@@ -58,7 +58,7 @@ public final class IdlRoot extends IdlSc
         IdlDefn result = null;
 
         if (!undefined && primitiveTypes.containsKey(nm)) {
-            result = (IdlDefn)primitiveTypes.get(nm);
+            result = primitiveTypes.get(nm);
         } else {
             result = super.lookup(nm, undefined);
         }

Modified: cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/common/idltypes/IdlScopeBase.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/common/idltypes/IdlScopeBase.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/common/idltypes/IdlScopeBase.java (original)
+++ cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/common/idltypes/IdlScopeBase.java Sun Jan  8 13:59:37 2012
@@ -59,14 +59,14 @@ public abstract class IdlScopeBase exten
 
 
     public IdlDefn promoteHeldToScope() {
-        IdlDefn result = (IdlDefn)hold.pop();
+        IdlDefn result = hold.pop();
         defns.add(result);
         return result;
     }
 
 
     public IdlDefn parkHeld() {
-        IdlDefn result = (IdlDefn)hold.pop();
+        IdlDefn result = hold.pop();
         park.add(result);
         return result;
     }

Modified: cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/idl/ScopeNameCollection.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/idl/ScopeNameCollection.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/idl/ScopeNameCollection.java (original)
+++ cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/idl/ScopeNameCollection.java Sun Jan  8 13:59:37 2012
@@ -35,11 +35,11 @@ public final class ScopeNameCollection  
     }
     
     public Scope getScope(Scope scope) {
-        return (Scope)scopedNames.get(scope.toString());
+        return scopedNames.get(scope.toString());
     }
     
     public Scope getScope(String scopename) {
-        return (Scope)scopedNames.get(scopename);
+        return scopedNames.get(scopename);
     }
     
 }
\ No newline at end of file

Modified: cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/idl/ScopedNameVisitor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/idl/ScopedNameVisitor.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/idl/ScopedNameVisitor.java (original)
+++ cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/idl/ScopedNameVisitor.java Sun Jan  8 13:59:37 2012
@@ -373,7 +373,7 @@ public class ScopedNameVisitor extends V
                                                           VisitorTypeHolder holder) {
 
         boolean result = false;                
-        List<Scope> baseScopes = (List<Scope>)wsdlVisitor.getInheritedScopeMap().get(scope);
+        List<Scope> baseScopes = wsdlVisitor.getInheritedScopeMap().get(scope);
         if (baseScopes != null) {
             List<Scope> scopeList = new ArrayList<Scope>();
             for (Scope scopeName : baseScopes) {

Modified: cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/idl/WSDLASTVisitor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/idl/WSDLASTVisitor.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/idl/WSDLASTVisitor.java (original)
+++ cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/idl/WSDLASTVisitor.java Sun Jan  8 13:59:37 2012
@@ -262,7 +262,7 @@ public final class WSDLASTVisitor implem
                 }
             }
         }
-        return (Binding[]) result.toArray(new Binding[result.size()]);
+        return result.toArray(new Binding[result.size()]);
     }
 
     public boolean writeDefinition(Writer writer) throws Exception {

Modified: cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/wsdl/WSDLParameter.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/wsdl/WSDLParameter.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/wsdl/WSDLParameter.java (original)
+++ cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/wsdl/WSDLParameter.java Sun Jan  8 13:59:37 2012
@@ -235,7 +235,7 @@ public final class WSDLParameter {
                 boolean isObjectRef = isObjectReference(xmlSchemaList, part.getElementName());
                 for (int x = 0; x < inputs.size(); x++) {
                     paramtype = null;
-                    ParamType d2 = (ParamType)inputs.get(x);
+                    ParamType d2 = inputs.get(x);
                     if (part.getElementName() != null && !isObjectRef) {
                         XmlSchemaElement el = getElement(part, xmlSchemaList);
                         if (el != null && el.getSchemaType() != null) {
@@ -293,7 +293,7 @@ public final class WSDLParameter {
     private void processReturnParams(List<ParamType> outputs, List<ArgType> returns) {
 
         if (outputs.size() > 0) {
-            ParamType d2 = (ParamType)outputs.get(0);
+            ParamType d2 = outputs.get(0);
 
             if (d2.getMode().value().equals("out")) {
                 ArgType argType = new ArgType();
@@ -309,7 +309,7 @@ public final class WSDLParameter {
         ListIterator<ParamType> inputit = inputs.listIterator();
 
         while (inputit.hasNext()) {
-            ParamType d2 = (ParamType)inputit.next();
+            ParamType d2 = inputit.next();
             if (d2.getMode().value().equals("inout")) {
                 ListIterator<ParamType> it = outputs.listIterator();
 

Modified: cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/wsdl/WSDLToCorbaBinding.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/wsdl/WSDLToCorbaBinding.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/wsdl/WSDLToCorbaBinding.java (original)
+++ cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/wsdl/WSDLToCorbaBinding.java Sun Jan  8 13:59:37 2012
@@ -171,8 +171,8 @@ public class WSDLToCorbaBinding {
 
         Binding[] bindings = new Binding[intfs.size()];
         for (int i = 0; i < intfs.size(); i++) {
-            bindings[i] = generateCORBABinding(def, (PortType) intfs.get(i));
-            generateCORBAServiceForBinding(def, (PortType) intfs.get(i), bindings[i]);
+            bindings[i] = generateCORBABinding(def, intfs.get(i));
+            generateCORBAServiceForBinding(def, intfs.get(i), bindings[i]);
         }
         return bindings;
     }
@@ -189,7 +189,7 @@ public class WSDLToCorbaBinding {
             PortType portType = null;
             intfs = new ArrayList<PortType>();
             if (portTypes.size() == 1) {
-                portType = (PortType) portTypes.values().iterator().next();
+                portType = portTypes.values().iterator().next();
                 interfaceNames.add(portType.getQName().getLocalPart());
                 intfs.add(portType);
             } else if (portTypes.size() > 1) {
@@ -657,7 +657,7 @@ public class WSDLToCorbaBinding {
                 + corbaex.getName().replace('.', '/')
                 + WSDLToCorbaHelper.IDL_VERSION;
             corbaex.setRepositoryID(repoId);
-            CorbaTypeImpl corbaTypeImpl = (CorbaTypeImpl)corbaex;
+            CorbaTypeImpl corbaTypeImpl = corbaex;
             if (!helper.isDuplicate(corbaTypeImpl)) {
                 CorbaTypeImpl dup = helper.isDuplicateException(corbaTypeImpl);
                 if (dup != null) {

Modified: cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/wsdl/WSDLToCorbaHelper.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/wsdl/WSDLToCorbaHelper.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/wsdl/WSDLToCorbaHelper.java (original)
+++ cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/wsdl/WSDLToCorbaHelper.java Sun Jan  8 13:59:37 2012
@@ -998,7 +998,7 @@ public class WSDLToCorbaHelper {
             }
             List<MemberType> attlist2 = processAttributesAsMembers(complex.getAttributes(), uri);
             for (int i = 0; i < attlist2.size(); i++) {
-                MemberType member = (MemberType)attlist2.get(i);
+                MemberType member = attlist2.get(i);
                 corbaStruct.getMember().add(member);
             }
         }
@@ -1084,7 +1084,7 @@ public class WSDLToCorbaHelper {
 
         //Deal with Attributes defined in Extension
         for (int i = 0; i < attrMembers.size(); i++) {
-            MemberType member = (MemberType)attrMembers.get(i);
+            MemberType member = attrMembers.get(i);
             corbaStruct.getMember().add(member);
         }
 
@@ -1141,7 +1141,7 @@ public class WSDLToCorbaHelper {
         // process attributes at complexContent level
         List<MemberType> attlist1 = processAttributesAsMembers(list, uri);
         for (int i = 0; i < attlist1.size(); i++) {
-            MemberType member = (MemberType)attlist1.get(i);
+            MemberType member = attlist1.get(i);
             corbaStruct.getMember().add(member);
         }
 
@@ -1394,7 +1394,7 @@ public class WSDLToCorbaHelper {
             Iterator<Enumerator> iterator = corbaenum.getEnumerator().iterator();
 
             while (iterator.hasNext()) {
-                Enumerator enumerator = (Enumerator)iterator.next();
+                Enumerator enumerator = iterator.next();
                 caselist.add(enumerator.getValue());
             }
         } else if (SUPPORTEDDISTYPES.contains(disctype.getQName().getLocalPart())) {

Modified: cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/wsdl/WSDLTypes.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/wsdl/WSDLTypes.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/wsdl/WSDLTypes.java (original)
+++ cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/wsdl/WSDLTypes.java Sun Jan  8 13:59:37 2012
@@ -244,7 +244,7 @@ public final class WSDLTypes {
         int caseIndex = 0;
 
         for (int i = 0; i < fields.size(); i++) {
-            MemberType field = (MemberType)fields.get(i);
+            MemberType field = fields.get(i);
             Unionbranch branch = new Unionbranch();
             branch.setName(field.getName());
             branch.setIdltype(field.getIdltype());
@@ -254,7 +254,7 @@ public final class WSDLTypes {
             branch.setDefault(false);
 
             CaseType c = new CaseType();
-            c.setLabel((String)caselist.get(caseIndex));
+            c.setLabel(caselist.get(caseIndex));
             caseIndex++;
             branch.getCase().add(c);
             corbaUnion.getUnionbranch().add(branch);
@@ -384,10 +384,10 @@ public final class WSDLTypes {
 
         if (boundedDecimal || boundedScale) {
             if (anonymous) {
-                corbaTypeImpl = (CorbaTypeImpl)getAnonFixedCorbaType(name, W3CConstants.NT_SCHEMA_DECIMAL,
+                corbaTypeImpl = getAnonFixedCorbaType(name, W3CConstants.NT_SCHEMA_DECIMAL,
                                                                  digits, scale);
             } else {
-                corbaTypeImpl = (CorbaTypeImpl)getFixedCorbaType(name, W3CConstants.NT_SCHEMA_DECIMAL,
+                corbaTypeImpl = getFixedCorbaType(name, W3CConstants.NT_SCHEMA_DECIMAL,
                                           digits, scale);
             }
         }

Modified: cxf/trunk/tools/corba/src/test/java/org/apache/cxf/tools/corba/common/CorbaPrimitiveMapTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/corba/src/test/java/org/apache/cxf/tools/corba/common/CorbaPrimitiveMapTest.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/tools/corba/src/test/java/org/apache/cxf/tools/corba/common/CorbaPrimitiveMapTest.java (original)
+++ cxf/trunk/tools/corba/src/test/java/org/apache/cxf/tools/corba/common/CorbaPrimitiveMapTest.java Sun Jan  8 13:59:37 2012
@@ -41,7 +41,7 @@ public class CorbaPrimitiveMapTest exten
         corbaTypeImpl.setName(corbaName.getLocalPart());
 
         map.put(typeName, corbaTypeImpl);
-        Object value = (CorbaTypeImpl)map.get(typeName);
+        Object value = map.get(typeName);
         assertEquals(corbaTypeImpl.getName(), corbaName.getLocalPart());
         assertEquals(corbaTypeImpl.getQName(), corbaName);
         assertEquals(corbaTypeImpl.getType(), typeName);

Modified: cxf/trunk/tools/corba/src/test/java/org/apache/cxf/tools/corba/processors/WSDLToCorbaBindingTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/corba/src/test/java/org/apache/cxf/tools/corba/processors/WSDLToCorbaBindingTest.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/tools/corba/src/test/java/org/apache/cxf/tools/corba/processors/WSDLToCorbaBindingTest.java (original)
+++ cxf/trunk/tools/corba/src/test/java/org/apache/cxf/tools/corba/processors/WSDLToCorbaBindingTest.java Sun Jan  8 13:59:37 2012
@@ -551,7 +551,7 @@ public class WSDLToCorbaBindingTest exte
         assertEquals(32, binding.getBindingOperations().size());
         
         List<ExtensibilityElement> extElements = getExtensibilityElements(binding);             
-        ExtensibilityElement extElement = (ExtensibilityElement)extElements.get(0);
+        ExtensibilityElement extElement = extElements.get(0);
         if (extElement.getElementType().getLocalPart().equals("binding")) {
             BindingType bindingType = (BindingType)extElement;
             assertEquals(bindingType.getRepositoryID(), "IDL:Test/MultiPart:1.0");

Modified: cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2wsdl/processor/internal/AntGenerator.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2wsdl/processor/internal/AntGenerator.java?rev=1228848&r1=1228847&r2=1228848&view=diff
==============================================================================
--- cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2wsdl/processor/internal/AntGenerator.java (original)
+++ cxf/trunk/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2wsdl/processor/internal/AntGenerator.java Sun Jan  8 13:59:37 2012
@@ -70,10 +70,10 @@ public class AntGenerator extends Abstra
         setAttributes("clientClassNamesMap", clientClassNamesMap);
         setAttributes("serverClassNamesMap", serverClassNamesMap);
         
-        setAttributes("srcdir", (String)penv.get(ToolConstants.CFG_SOURCEDIR));
-        setAttributes("clsdir", (String)penv.get(ToolConstants.CFG_CLASSDIR));
-        setAttributes("classpath", (String)penv.get(ToolConstants.CFG_CLASSPATH));
-        setAttributes("classpath", (String)penv.get(ToolConstants.CFG_CLASSPATH));
+        setAttributes("srcdir", penv.get(ToolConstants.CFG_SOURCEDIR));
+        setAttributes("clsdir", penv.get(ToolConstants.CFG_CLASSDIR));
+        setAttributes("classpath", penv.get(ToolConstants.CFG_CLASSPATH));
+        setAttributes("classpath", penv.get(ToolConstants.CFG_CLASSPATH));
         
         setCommonAttributes();
         doWrite(BUILD_TEMPLATE, parseOutputName(null, "build", ".xml"));