summaryrefslogtreecommitdiffstats
path: root/java/sca
diff options
context:
space:
mode:
authormcombellack <mcombellack@13f79535-47bb-0310-9956-ffa450edef68>2008-11-27 09:40:08 +0000
committermcombellack <mcombellack@13f79535-47bb-0310-9956-ffa450edef68>2008-11-27 09:40:08 +0000
commite1346d1f01e1f71ee542fa4a879d7af1596bbb07 (patch)
treecb7fd5c186dc2ea41160e6da90eba5d67bc0c4fd /java/sca
parente1def9634b12b2c32a37f5d98bf80549f2eed161 (diff)
Cleaned up compile time warning messages regarding unneccsary use of @SuppressWarnings
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@721131 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca')
-rw-r--r--java/sca/modules/contribution-xml/src/main/java/org/apache/tuscany/sca/contribution/processor/xml/XMLEventsStreamReader.java2
-rw-r--r--java/sca/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/DefaultProviderFactoryExtensionPoint.java4
-rw-r--r--java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/CompositeActivatorImpl.java1
-rw-r--r--java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/RequestContextImpl.java2
-rw-r--r--java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/NonBlockingInterceptor.java1
-rw-r--r--java/sca/modules/databinding-jaxb/src/test/java/org/apache/tuscany/sca/databinding/jaxb/JAXBDataBindingTestCase.java2
-rw-r--r--java/sca/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/impl/DataBindingTestCase.java1
-rw-r--r--java/sca/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/JavaPropertyValueObjectFactory.java1
-rw-r--r--java/sca/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/ResourceObjectFactory.java1
-rw-r--r--java/sca/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaInstanceFactoryProvider.java1
-rw-r--r--java/sca/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/AbstractPropertyProcessor.java1
-rw-r--r--java/sca/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ResourceProcessor.java1
-rw-r--r--java/sca/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/AbstractPropertyProcessorTestCase.java2
-rw-r--r--java/sca/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/HeuristicConstructorTestCase.java1
14 files changed, 0 insertions, 21 deletions
diff --git a/java/sca/modules/contribution-xml/src/main/java/org/apache/tuscany/sca/contribution/processor/xml/XMLEventsStreamReader.java b/java/sca/modules/contribution-xml/src/main/java/org/apache/tuscany/sca/contribution/processor/xml/XMLEventsStreamReader.java
index 0bbfdacef5..eecdee5ba6 100644
--- a/java/sca/modules/contribution-xml/src/main/java/org/apache/tuscany/sca/contribution/processor/xml/XMLEventsStreamReader.java
+++ b/java/sca/modules/contribution-xml/src/main/java/org/apache/tuscany/sca/contribution/processor/xml/XMLEventsStreamReader.java
@@ -39,14 +39,12 @@ public class XMLEventsStreamReader implements XMLStreamReader {
@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;
diff --git a/java/sca/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/DefaultProviderFactoryExtensionPoint.java b/java/sca/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/DefaultProviderFactoryExtensionPoint.java
index 02178b8f18..54912c1574 100644
--- a/java/sca/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/DefaultProviderFactoryExtensionPoint.java
+++ b/java/sca/modules/core-spi/src/main/java/org/apache/tuscany/sca/provider/DefaultProviderFactoryExtensionPoint.java
@@ -416,14 +416,12 @@ public class DefaultProviderFactoryExtensionPoint implements ProviderFactoryExte
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 @@ public class DefaultProviderFactoryExtensionPoint implements ProviderFactoryExte
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){
diff --git a/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/CompositeActivatorImpl.java b/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/CompositeActivatorImpl.java
index 61f1f6494c..a657ecb19c 100644
--- a/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/CompositeActivatorImpl.java
+++ b/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/CompositeActivatorImpl.java
@@ -248,7 +248,6 @@ public class CompositeActivatorImpl implements CompositeActivator {
(EndpointResolverFactory<Endpoint>)endpointResolverFactories.getEndpointResolverFactory(endpoint.getClass());
if (resolverFactory != null) {
- @SuppressWarnings("unchecked")
EndpointResolver endpointResolver =
resolverFactory.createEndpointResolver(endpoint, null);
if (endpointResolver != null) {
diff --git a/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/RequestContextImpl.java b/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/RequestContextImpl.java
index ed6c3df8fa..d26da1fd4f 100644
--- a/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/RequestContextImpl.java
+++ b/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/RequestContextImpl.java
@@ -63,7 +63,6 @@ public class RequestContextImpl implements RequestContext {
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 @@ public class RequestContextImpl implements RequestContext {
return callableReference;
}
- @SuppressWarnings("unchecked")
public <CB> CB getCallback() {
CallableReference<CB> cb = getCallbackReference();
if (cb == null) {
diff --git a/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/NonBlockingInterceptor.java b/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/NonBlockingInterceptor.java
index 582d1ee141..6597df0e08 100644
--- a/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/NonBlockingInterceptor.java
+++ b/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/invocation/NonBlockingInterceptor.java
@@ -121,7 +121,6 @@ public class NonBlockingInterceptor implements Interceptor {
*/
private static class ImmutableMessage implements Message {
- @SuppressWarnings("unchecked")
public Object getBody() {
return null;
}
diff --git a/java/sca/modules/databinding-jaxb/src/test/java/org/apache/tuscany/sca/databinding/jaxb/JAXBDataBindingTestCase.java b/java/sca/modules/databinding-jaxb/src/test/java/org/apache/tuscany/sca/databinding/jaxb/JAXBDataBindingTestCase.java
index 5452175c54..3744ff8adb 100644
--- a/java/sca/modules/databinding-jaxb/src/test/java/org/apache/tuscany/sca/databinding/jaxb/JAXBDataBindingTestCase.java
+++ b/java/sca/modules/databinding-jaxb/src/test/java/org/apache/tuscany/sca/databinding/jaxb/JAXBDataBindingTestCase.java
@@ -107,7 +107,6 @@ public class JAXBDataBindingTestCase extends TestCase {
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 @@ public class JAXBDataBindingTestCase extends TestCase {
assertEquals("Comment", (copy).getComment());
}
- @SuppressWarnings("unchecked")
public void testCopyNonRoot() {
ObjectFactory factory = new ObjectFactory();
USAddress address = factory.createUSAddress();
diff --git a/java/sca/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/impl/DataBindingTestCase.java b/java/sca/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/impl/DataBindingTestCase.java
index 7c882c0285..9172187828 100644
--- a/java/sca/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/impl/DataBindingTestCase.java
+++ b/java/sca/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/impl/DataBindingTestCase.java
@@ -30,7 +30,6 @@ import org.apache.tuscany.sca.databinding.annotation.DataBinding;
* @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);
diff --git a/java/sca/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/JavaPropertyValueObjectFactory.java b/java/sca/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/JavaPropertyValueObjectFactory.java
index 40aefed219..1849874b8f 100644
--- a/java/sca/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/JavaPropertyValueObjectFactory.java
+++ b/java/sca/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/JavaPropertyValueObjectFactory.java
@@ -221,7 +221,6 @@ public class JavaPropertyValueObjectFactory implements PropertyValueFactory {
super(property, propertyValue, isSimpleType, javaType);
}
- @SuppressWarnings("unchecked")
public Object getInstance() throws ObjectCreationException {
if (isSimpleType) {
try {
diff --git a/java/sca/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/ResourceObjectFactory.java b/java/sca/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/ResourceObjectFactory.java
index 5d4d999453..8f55eb18bc 100644
--- a/java/sca/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/ResourceObjectFactory.java
+++ b/java/sca/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/injection/ResourceObjectFactory.java
@@ -63,7 +63,6 @@ public class ResourceObjectFactory<T> implements ObjectFactory<T> {
this.optional = optional;
}
- @SuppressWarnings({"unchecked"})
public T getInstance() throws ObjectCreationException {
try {
T resource;
diff --git a/java/sca/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaInstanceFactoryProvider.java b/java/sca/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaInstanceFactoryProvider.java
index 0200fcf385..7fcfaad615 100644
--- a/java/sca/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaInstanceFactoryProvider.java
+++ b/java/sca/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaInstanceFactoryProvider.java
@@ -104,7 +104,6 @@ public class JavaInstanceFactoryProvider<T> implements InstanceFactoryProvider<T
@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;
diff --git a/java/sca/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/AbstractPropertyProcessor.java b/java/sca/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/AbstractPropertyProcessor.java
index 9e1d8c8b0c..6d27dff9c9 100644
--- a/java/sca/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/AbstractPropertyProcessor.java
+++ b/java/sca/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/AbstractPropertyProcessor.java
@@ -175,7 +175,6 @@ public abstract class AbstractPropertyProcessor<A extends Annotation> extends Ba
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();
diff --git a/java/sca/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ResourceProcessor.java b/java/sca/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ResourceProcessor.java
index dbb59d558a..5498a792a3 100644
--- a/java/sca/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ResourceProcessor.java
+++ b/java/sca/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ResourceProcessor.java
@@ -96,7 +96,6 @@ public class ResourceProcessor extends BaseJavaClassVisitor {
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);
diff --git a/java/sca/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/AbstractPropertyProcessorTestCase.java b/java/sca/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/AbstractPropertyProcessorTestCase.java
index 2383f1ba60..3c8022d1d8 100644
--- a/java/sca/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/AbstractPropertyProcessorTestCase.java
+++ b/java/sca/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/AbstractPropertyProcessorTestCase.java
@@ -107,7 +107,6 @@ public class AbstractPropertyProcessorTestCase extends TestCase {
}
@Override
- @SuppressWarnings("unchecked")
protected void setUp() throws Exception {
super.setUp();
extension = new TestProcessor();
@@ -126,7 +125,6 @@ public class AbstractPropertyProcessorTestCase extends TestCase {
}
@Override
- @SuppressWarnings("unchecked")
protected void initProperty(Property property, Bar annotation) {
// property.setDefaultValueFactory(EasyMock.createMock(ObjectFactory.class));
property.setName("test");
diff --git a/java/sca/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/HeuristicConstructorTestCase.java b/java/sca/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/HeuristicConstructorTestCase.java
index 7a6fcbaacf..d837be8806 100644
--- a/java/sca/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/HeuristicConstructorTestCase.java
+++ b/java/sca/modules/implementation-java/src/test/java/org/apache/tuscany/sca/implementation/java/introspect/impl/HeuristicConstructorTestCase.java
@@ -151,7 +151,6 @@ public class HeuristicConstructorTestCase extends AbstractProcessorTest {
assertNotNull(ModelHelper.getReference(type, "myRef"));
}
- @SuppressWarnings("unchecked")
public void testDefaultConstructor() throws Exception {
JavaImplementation type = javaImplementationFactory.createJavaImplementation();
visitEnd(Foo3.class, type);