You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by mc...@apache.org on 2008/12/04 13:54:49 UTC

svn commit: r723303 - in /tuscany/java/sca/modules/interface-java/src: main/java/org/apache/tuscany/sca/interfacedef/java/impl/ test/java/org/apache/tuscany/sca/interfacedef/java/impl/

Author: mcombellack
Date: Thu Dec  4 04:54:49 2008
New Revision: 723303

URL: http://svn.apache.org/viewvc?rev=723303&view=rev
Log:
Fixed generics raw type compiler warnings

Modified:
    tuscany/java/sca/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceIntrospectorImpl.java
    tuscany/java/sca/modules/interface-java/src/test/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceUtilDuplicateRemotableTestCase.java

Modified: tuscany/java/sca/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceIntrospectorImpl.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceIntrospectorImpl.java?rev=723303&r1=723302&r2=723303&view=diff
==============================================================================
--- tuscany/java/sca/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceIntrospectorImpl.java (original)
+++ tuscany/java/sca/modules/interface-java/src/main/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceIntrospectorImpl.java Thu Dec  4 04:54:49 2008
@@ -219,7 +219,7 @@
             List<DataType> paramDataTypes = new ArrayList<DataType>(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<XMLType>(UNKNOWN_DATABINDING, paramType, genericParamTypes[i],
                                                              xmlParamType));

Modified: tuscany/java/sca/modules/interface-java/src/test/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceUtilDuplicateRemotableTestCase.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/interface-java/src/test/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceUtilDuplicateRemotableTestCase.java?rev=723303&r1=723302&r2=723303&view=diff
==============================================================================
--- tuscany/java/sca/modules/interface-java/src/test/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceUtilDuplicateRemotableTestCase.java (original)
+++ tuscany/java/sca/modules/interface-java/src/test/java/org/apache/tuscany/sca/interfacedef/java/impl/JavaInterfaceUtilDuplicateRemotableTestCase.java Thu Dec  4 04:54:49 2008
@@ -63,7 +63,7 @@
      * @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 @@
      * @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 @@
     * @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 @@
      * @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 @@
         // Construct the parameters
         List<DataType> types = new ArrayList<DataType>();
         DataType<List<DataType>> inputType = new DataTypeImpl<List<DataType>>(Object[].class, types);
-        for (Class parameterType : parameterTypes) {
+        for (Class<?> parameterType : parameterTypes) {
             DataType type = new DataTypeImpl<Class>(parameterType, Object.class);
             types.add(type);
         }