From 771e91d9dc5b93d9d01e7d6376feaf3bcfcc616b Mon Sep 17 00:00:00 2001 From: mcombellack Date: Thu, 4 Dec 2008 12:54:49 +0000 Subject: Fixed generics raw type compiler warnings git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@723303 13f79535-47bb-0310-9956-ffa450edef68 --- .../interfacedef/java/impl/JavaInterfaceIntrospectorImpl.java | 2 +- .../java/impl/JavaInterfaceUtilDuplicateRemotableTestCase.java | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'java/sca/modules/interface-java') diff --git a/java/sca/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceIntrospectorImpl.java b/java/sca/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceIntrospectorImpl.java index b1198824fa..c858d4f71a 100644 --- a/java/sca/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceIntrospectorImpl.java +++ b/java/sca/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceIntrospectorImpl.java @@ -219,7 +219,7 @@ public class JavaInterfaceIntrospectorImpl { List paramDataTypes = new ArrayList(parameterTypes.length); Type[] genericParamTypes = method.getGenericParameterTypes(); for (int i = 0; i < parameterTypes.length; i++) { - Class paramType = parameterTypes[i]; + Class paramType = parameterTypes[i]; XMLType xmlParamType = new XMLType(new QName(ns, "arg" + i), null); paramDataTypes.add(new DataTypeImpl(UNKNOWN_DATABINDING, paramType, genericParamTypes[i], xmlParamType)); diff --git a/java/sca/modules/interface-java/src/test/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceUtilDuplicateRemotableTestCase.java b/java/sca/modules/interface-java/src/test/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceUtilDuplicateRemotableTestCase.java index d8134ae687..f5ebbcac4c 100644 --- a/java/sca/modules/interface-java/src/test/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceUtilDuplicateRemotableTestCase.java +++ b/java/sca/modules/interface-java/src/test/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceUtilDuplicateRemotableTestCase.java @@ -63,7 +63,7 @@ public class JavaInterfaceUtilDuplicateRemotableTestCase { * @param timeServiceClass The class that implements the LocalTimeService * @throws Exception Test failed */ - private void doTestLocalTimeServiceGetTime(Class timeServiceClass) throws Exception { + private void doTestLocalTimeServiceGetTime(Class timeServiceClass) throws Exception { // Add a getTime() method Operation operation = newOperation("getTime", LocalTimeService.class); @@ -89,7 +89,7 @@ public class JavaInterfaceUtilDuplicateRemotableTestCase { * @param timeServiceClass The class that implements the WorldTimeService * @throws Exception Test failed */ - private void doTestWorldTimeServiceGetTime(Class timeServiceClass) throws Exception { + private void doTestWorldTimeServiceGetTime(Class timeServiceClass) throws Exception { // Add a getTime(String) method Operation operation = newOperation("getTime", WorldTimeService.class, String.class); @@ -116,7 +116,7 @@ public class JavaInterfaceUtilDuplicateRemotableTestCase { * @param timeServiceClass The class that implements the WorldTimeService * @throws Exception Test failed */ - private void doTestGMTTimeServiceGetTime(Class timeServiceClass) throws Exception { + private void doTestGMTTimeServiceGetTime(Class timeServiceClass) throws Exception { // Add a getTime(String) method Operation operation = newOperation("getTime", GMTTimeService.class, Integer.TYPE); @@ -167,7 +167,7 @@ public class JavaInterfaceUtilDuplicateRemotableTestCase { * @param parameterTypes The types of the parameters for this operation * @return An operation with the specified name and parameter types */ - private static Operation newOperation(String name, Class operationInterface, Class... parameterTypes) { + private static Operation newOperation(String name, Class operationInterface, Class... parameterTypes) { // Create and set the operation name Operation operation = new OperationImpl(); operation.setName(name); @@ -180,7 +180,7 @@ public class JavaInterfaceUtilDuplicateRemotableTestCase { // Construct the parameters List types = new ArrayList(); DataType> inputType = new DataTypeImpl>(Object[].class, types); - for (Class parameterType : parameterTypes) { + for (Class parameterType : parameterTypes) { DataType type = new DataTypeImpl(parameterType, Object.class); types.add(type); } -- cgit v1.2.3