tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcombell...@apache.org
Subject svn commit: r721131 - in /tuscany/java/sca/modules: contribution-xml/src/main/java/org/apache/tuscany/sca/contribution/processor/xml/ core-spi/src/main/java/org/apache/tuscany/sca/provider/ core/src/main/java/org/apache/tuscany/sca/core/assembly/ core/...
Date Thu, 27 Nov 2008 09:40:09 GMT
Author: mcombellack
Date: Thu Nov 27 01:40:08 2008
New Revision: 721131

URL: http://svn.apache.org/viewvc?rev=721131&view=rev
Log:
Cleaned up compile time warning messages regarding unneccsary use of @SuppressWarnings

Modified:
    tuscany/java/sca/modules/contribution-xml/src/main/java/org/apache/tuscany/sca/contribution/processor/xml/XMLEventsStreamReader.java
    tuscany/java/sca/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/DefaultProviderFactoryExtensionPoint.java
    tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/CompositeActivatorImpl.java
    tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/RequestContextImpl.java
    tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/NonBlockingInterceptor.java
    tuscany/java/sca/modules/databinding-jaxb/src/test/java/org/apache/tuscany/sca/databinding/jaxb/JAXBDataBindingTestCase.java
    tuscany/java/sca/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/impl/DataBindingTestCase.java
    tuscany/java/sca/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/JavaPropertyValueObjectFactory.java
    tuscany/java/sca/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/ResourceObjectFactory.java
    tuscany/java/sca/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaInstanceFactoryProvider.java
    tuscany/java/sca/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/AbstractPropertyProcessor.java
    tuscany/java/sca/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ResourceProcessor.java
    tuscany/java/sca/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/AbstractPropertyProcessorTestCase.java
    tuscany/java/sca/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/HeuristicConstructorTestCase.java

Modified: tuscany/java/sca/modules/contribution-xml/src/main/java/org/apache/tuscany/sca/contribution/processor/xml/XMLEventsStreamReader.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/contribution-xml/src/main/java/org/apache/tuscany/sca/contribution/processor/xml/XMLEventsStreamReader.java?rev=721131&r1=721130&r2=721131&view=diff
==============================================================================
--- tuscany/java/sca/modules/contribution-xml/src/main/java/org/apache/tuscany/sca/contribution/processor/xml/XMLEventsStreamReader.java
(original)
+++ tuscany/java/sca/modules/contribution-xml/src/main/java/org/apache/tuscany/sca/contribution/processor/xml/XMLEventsStreamReader.java
Thu Nov 27 01:40:08 2008
@@ -39,14 +39,12 @@
 
 	@SuppressWarnings("unused")
 	private ArrayList<XMLEvent> events = null;
-	@SuppressWarnings("unchecked")
 	private HashMap<String, NamespaceContext> eventContext = null;
 
 	private int state;
 	private java.util.Iterator<XMLEvent> iterator;
 	private XMLEvent current;
 
-	@SuppressWarnings("unchecked")
 	public XMLEventsStreamReader(List<XMLEvent> events,Map<String, NamespaceContext>
map) {
 		this.events = (ArrayList<XMLEvent>) events;
 		this.eventContext = (HashMap<String, NamespaceContext>) map;

Modified: tuscany/java/sca/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/DefaultProviderFactoryExtensionPoint.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/DefaultProviderFactoryExtensionPoint.java?rev=721131&r1=721130&r2=721131&view=diff
==============================================================================
--- tuscany/java/sca/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/DefaultProviderFactoryExtensionPoint.java
(original)
+++ tuscany/java/sca/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/DefaultProviderFactoryExtensionPoint.java
Thu Nov 27 01:40:08 2008
@@ -416,14 +416,12 @@
             return factory;
         }
 
-        @SuppressWarnings("unchecked")
         public WireFormatProvider createReferenceWireFormatProvider(RuntimeComponent component,
                                                                     RuntimeComponentReference
reference,
                                                                     Binding binding){
             return getFactory().createReferenceWireFormatProvider(component, reference, binding);
         }
 
-        @SuppressWarnings("unchecked")
         public WireFormatProvider createServiceWireFormatProvider(RuntimeComponent component,
                                                                   RuntimeComponentService
service,
                                                                   Binding binding){
@@ -479,14 +477,12 @@
             return factory;
         }
 
-        @SuppressWarnings("unchecked")
         public OperationSelectorProvider createReferenceOperationSelectorProvider(RuntimeComponent
component,
                                                                     RuntimeComponentReference
reference,
                                                                     Binding binding){
             return getFactory().createReferenceOperationSelectorProvider(component, reference,
binding);
         }
 
-        @SuppressWarnings("unchecked")
         public OperationSelectorProvider createServiceOperationSelectorProvider(RuntimeComponent
component,
                                                                   RuntimeComponentService
service,
                                                                   Binding binding){

Modified: tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/CompositeActivatorImpl.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/CompositeActivatorImpl.java?rev=721131&r1=721130&r2=721131&view=diff
==============================================================================
--- tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/CompositeActivatorImpl.java
(original)
+++ tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/CompositeActivatorImpl.java
Thu Nov 27 01:40:08 2008
@@ -248,7 +248,6 @@
             (EndpointResolverFactory<Endpoint>)endpointResolverFactories.getEndpointResolverFactory(endpoint.getClass());
         
         if (resolverFactory != null) {
-            @SuppressWarnings("unchecked")
             EndpointResolver endpointResolver =
                 resolverFactory.createEndpointResolver(endpoint, null);
             if (endpointResolver != null) {

Modified: tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/RequestContextImpl.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/RequestContextImpl.java?rev=721131&r1=721130&r2=721131&view=diff
==============================================================================
--- tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/RequestContextImpl.java
(original)
+++ tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/RequestContextImpl.java
Thu Nov 27 01:40:08 2008
@@ -63,7 +63,6 @@
         return ThreadMessageContext.getMessageContext().getTo().getContract().getName();
     }
 
-    @SuppressWarnings("unchecked")
     public <B> CallableReference<B> getServiceReference() {
         Message msgContext = ThreadMessageContext.getMessageContext();
         // FIXME: [rfeng] Is this the service reference matching the caller side?
@@ -78,7 +77,6 @@
         return callableReference;
     }
 
-    @SuppressWarnings("unchecked")
     public <CB> CB getCallback() {
         CallableReference<CB> cb = getCallbackReference(); 
         if (cb == null) {

Modified: tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/NonBlockingInterceptor.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/NonBlockingInterceptor.java?rev=721131&r1=721130&r2=721131&view=diff
==============================================================================
--- tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/NonBlockingInterceptor.java
(original)
+++ tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/NonBlockingInterceptor.java
Thu Nov 27 01:40:08 2008
@@ -121,7 +121,6 @@
      */
     private static class ImmutableMessage implements Message {
 
-        @SuppressWarnings("unchecked")
         public Object getBody() {
             return null;
         }

Modified: tuscany/java/sca/modules/databinding-jaxb/src/test/java/org/apache/tuscany/sca/databinding/jaxb/JAXBDataBindingTestCase.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/databinding-jaxb/src/test/java/org/apache/tuscany/sca/databinding/jaxb/JAXBDataBindingTestCase.java?rev=721131&r1=721130&r2=721131&view=diff
==============================================================================
--- tuscany/java/sca/modules/databinding-jaxb/src/test/java/org/apache/tuscany/sca/databinding/jaxb/JAXBDataBindingTestCase.java
(original)
+++ tuscany/java/sca/modules/databinding-jaxb/src/test/java/org/apache/tuscany/sca/databinding/jaxb/JAXBDataBindingTestCase.java
Thu Nov 27 01:40:08 2008
@@ -107,7 +107,6 @@
         assertEquals(new QName("http://www.example.com/IPO", "purchaseOrder"), copy.getName());
     }
 
-    @SuppressWarnings("unchecked")
     public void testCopyNonElement() {
         ObjectFactory factory = new ObjectFactory();
         PurchaseOrderType poType = factory.createPurchaseOrderType();
@@ -117,7 +116,6 @@
         assertEquals("Comment", (copy).getComment());
     }
 
-    @SuppressWarnings("unchecked")
     public void testCopyNonRoot() {
         ObjectFactory factory = new ObjectFactory();
         USAddress address = factory.createUSAddress();

Modified: tuscany/java/sca/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/impl/DataBindingTestCase.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/impl/DataBindingTestCase.java?rev=721131&r1=721130&r2=721131&view=diff
==============================================================================
--- tuscany/java/sca/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/impl/DataBindingTestCase.java
(original)
+++ tuscany/java/sca/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/impl/DataBindingTestCase.java
Thu Nov 27 01:40:08 2008
@@ -30,7 +30,6 @@
  * @version $Rev$ $Date$
  */
 public class DataBindingTestCase extends TestCase {
-    @SuppressWarnings("unused")
     public void testDataType() throws Exception {
         Class<Test> testClass = Test.class;
         DataBinding d = testClass.getAnnotation(DataBinding.class);

Modified: tuscany/java/sca/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/JavaPropertyValueObjectFactory.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/JavaPropertyValueObjectFactory.java?rev=721131&r1=721130&r2=721131&view=diff
==============================================================================
--- tuscany/java/sca/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/JavaPropertyValueObjectFactory.java
(original)
+++ tuscany/java/sca/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/JavaPropertyValueObjectFactory.java
Thu Nov 27 01:40:08 2008
@@ -221,7 +221,6 @@
             super(property, propertyValue, isSimpleType, javaType);
         }
 
-        @SuppressWarnings("unchecked")
         public Object getInstance() throws ObjectCreationException {
             if (isSimpleType) {
                 try {

Modified: tuscany/java/sca/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/ResourceObjectFactory.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/ResourceObjectFactory.java?rev=721131&r1=721130&r2=721131&view=diff
==============================================================================
--- tuscany/java/sca/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/ResourceObjectFactory.java
(original)
+++ tuscany/java/sca/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/ResourceObjectFactory.java
Thu Nov 27 01:40:08 2008
@@ -63,7 +63,6 @@
         this.optional = optional;
     }
 
-    @SuppressWarnings({"unchecked"})
     public T getInstance() throws ObjectCreationException {
         try {
             T resource;

Modified: tuscany/java/sca/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaInstanceFactoryProvider.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaInstanceFactoryProvider.java?rev=721131&r1=721130&r2=721131&view=diff
==============================================================================
--- tuscany/java/sca/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaInstanceFactoryProvider.java
(original)
+++ tuscany/java/sca/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaInstanceFactoryProvider.java
Thu Nov 27 01:40:08 2008
@@ -104,7 +104,6 @@
     @SuppressWarnings("unchecked")
     private Injector<T>[] getInjectors() {
         // work around JDK1.5 issue with allocating generic arrays
-        @SuppressWarnings("unchecked")
         Injector<T>[] injectors = new Injector[injectionSites.size()];
 
         int i = 0;

Modified: tuscany/java/sca/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/AbstractPropertyProcessor.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/AbstractPropertyProcessor.java?rev=721131&r1=721130&r2=721131&view=diff
==============================================================================
--- tuscany/java/sca/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/AbstractPropertyProcessor.java
(original)
+++ tuscany/java/sca/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/AbstractPropertyProcessor.java
Thu Nov 27 01:40:08 2008
@@ -175,7 +175,6 @@
 
     protected abstract void initProperty(Property property, A annotation) throws IntrospectionException;
 
-    @SuppressWarnings("unchecked")
     protected Property createProperty(String name, JavaElementImpl element) throws IntrospectionException
{
 
         Property property = assemblyFactory.createProperty();

Modified: tuscany/java/sca/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ResourceProcessor.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ResourceProcessor.java?rev=721131&r1=721130&r2=721131&view=diff
==============================================================================
--- tuscany/java/sca/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ResourceProcessor.java
(original)
+++ tuscany/java/sca/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ResourceProcessor.java
Thu Nov 27 01:40:08 2008
@@ -96,7 +96,6 @@
         type.getResources().put(resource.getName(), resource);
     }
 
-    @SuppressWarnings("unchecked")
     public JavaResourceImpl createResource(String name, JavaElementImpl element) {
         element.setClassifer(org.apache.tuscany.sca.implementation.java.introspect.impl.Resource.class);
         element.setName(name);

Modified: tuscany/java/sca/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/AbstractPropertyProcessorTestCase.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/AbstractPropertyProcessorTestCase.java?rev=721131&r1=721130&r2=721131&view=diff
==============================================================================
--- tuscany/java/sca/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/AbstractPropertyProcessorTestCase.java
(original)
+++ tuscany/java/sca/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/AbstractPropertyProcessorTestCase.java
Thu Nov 27 01:40:08 2008
@@ -107,7 +107,6 @@
     }
 
     @Override
-    @SuppressWarnings("unchecked")
     protected void setUp() throws Exception {
         super.setUp();
         extension = new TestProcessor();
@@ -126,7 +125,6 @@
         }
 
         @Override
-        @SuppressWarnings("unchecked")
         protected void initProperty(Property property, Bar annotation) {
             // property.setDefaultValueFactory(EasyMock.createMock(ObjectFactory.class));
             property.setName("test");

Modified: tuscany/java/sca/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/HeuristicConstructorTestCase.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/HeuristicConstructorTestCase.java?rev=721131&r1=721130&r2=721131&view=diff
==============================================================================
--- tuscany/java/sca/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/HeuristicConstructorTestCase.java
(original)
+++ tuscany/java/sca/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/HeuristicConstructorTestCase.java
Thu Nov 27 01:40:08 2008
@@ -151,7 +151,6 @@
         assertNotNull(ModelHelper.getReference(type, "myRef"));
     }
 
-    @SuppressWarnings("unchecked")
     public void testDefaultConstructor() throws Exception {
         JavaImplementation type = javaImplementationFactory.createJavaImplementation();
         visitEnd(Foo3.class, type);



Mime
View raw message