summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authormcombellack <mcombellack@13f79535-47bb-0310-9956-ffa450edef68>2008-12-03 16:18:28 +0000
committermcombellack <mcombellack@13f79535-47bb-0310-9956-ffa450edef68>2008-12-03 16:18:28 +0000
commit2e2d6050ac0e2611571acb2320d6f406a41d6ba1 (patch)
tree1ed4b6dc095eacde3417e19d47ce70402db49dbb /java
parent4be396ab05d2426cc79d8f4fa87e3fb75eb27d9b (diff)
Fixed generics raw type compiler warnings
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@722954 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java')
-rw-r--r--java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DefaultDataBindingExtensionPoint.java6
-rw-r--r--java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/JavaBeansDataBinding.java2
-rw-r--r--java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/XML2JavaBeanTransformer.java2
-rw-r--r--java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XmlNodeIterator.java2
-rw-r--r--java/sca/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/xml/BeanXMLStreamReaderTestCase.java2
5 files changed, 7 insertions, 7 deletions
diff --git a/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DefaultDataBindingExtensionPoint.java b/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DefaultDataBindingExtensionPoint.java
index fdc7b90f20..d343fb2d46 100644
--- a/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DefaultDataBindingExtensionPoint.java
+++ b/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DefaultDataBindingExtensionPoint.java
@@ -193,7 +193,7 @@ public class DefaultDataBindingExtensionPoint implements DataBindingExtensionPoi
}
// FIXME: Should we honor the databinding from operation/interface
// level?
- Class physical = dataType.getPhysical();
+ Class<?> physical = dataType.getPhysical();
if (physical == Object.class) {
dataType.setDataBinding(JavaBeansDataBinding.NAME);
return false;
@@ -211,11 +211,11 @@ public class DefaultDataBindingExtensionPoint implements DataBindingExtensionPoi
}
private boolean introspectArray(DataType dataType, Operation operation) {
- Class physical = dataType.getPhysical();
+ Class<?> physical = dataType.getPhysical();
if (!physical.isArray() || physical == byte[].class) {
return false;
}
- Class componentType = physical.getComponentType();
+ Class<?> componentType = physical.getComponentType();
DataType logical = new DataTypeImpl(componentType, dataType.getLogical());
introspectType(logical, operation);
dataType.setDataBinding("java:array");
diff --git a/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/JavaBeansDataBinding.java b/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/JavaBeansDataBinding.java
index fb04014051..c7d21ebc66 100644
--- a/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/JavaBeansDataBinding.java
+++ b/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/JavaBeansDataBinding.java
@@ -59,7 +59,7 @@ public class JavaBeansDataBinding extends BaseDataBinding {
if (arg == null) {
return null;
}
- final Class clazz = arg.getClass();
+ final Class<?> clazz = arg.getClass();
if (String.class == clazz || clazz.isPrimitive()
|| Number.class.isAssignableFrom(clazz)
|| Boolean.class.isAssignableFrom(clazz)
diff --git a/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/XML2JavaBeanTransformer.java b/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/XML2JavaBeanTransformer.java
index 06feeffabd..01dd8fe963 100644
--- a/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/XML2JavaBeanTransformer.java
+++ b/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/XML2JavaBeanTransformer.java
@@ -226,7 +226,7 @@ public abstract class XML2JavaBeanTransformer<T> extends BaseTransformer<T, Obje
if (arraySetters.size() > 0) {
for (Method aMethod : arraySetters.keySet()) {
- Class paramType = aMethod.getParameterTypes()[0];
+ Class<?> paramType = aMethod.getParameterTypes()[0];
if (paramType.getComponentType().isPrimitive()) {
aMethod.invoke(javaInstance,
new Object[] {createPrimitiveArray(paramType.getComponentType(),
diff --git a/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XmlNodeIterator.java b/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XmlNodeIterator.java
index 3dd125463e..d1632befe1 100644
--- a/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XmlNodeIterator.java
+++ b/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XmlNodeIterator.java
@@ -158,7 +158,7 @@ public class XmlNodeIterator implements Iterator<XmlNode> {
prefixList.add(entry.getKey());
}
}
- final Iterator currentIterator = prefixList.iterator();
+ final Iterator<String> currentIterator = prefixList.iterator();
final Iterator parentIterator = parent != null ? null : parent.getPrefixes(nsURI);
return new Iterator() {
diff --git a/java/sca/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/xml/BeanXMLStreamReaderTestCase.java b/java/sca/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/xml/BeanXMLStreamReaderTestCase.java
index f396d4e016..aa785a5e48 100644
--- a/java/sca/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/xml/BeanXMLStreamReaderTestCase.java
+++ b/java/sca/modules/databinding/src/test/java/org/apache/tuscany/sca/databinding/xml/BeanXMLStreamReaderTestCase.java
@@ -80,7 +80,7 @@ public class BeanXMLStreamReaderTestCase {
private String str;
private int i;
private String nil;
- private List<String> list = new ArrayList();
+ private List<String> list = new ArrayList<String>();
private AnotherBean bean;
private Map<String, String> map = new HashMap<String, String>();