commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ra...@apache.org
Subject svn commit: r651763 - /commons/proper/scxml/branches/J6/src/main/java/org/apache/commons/scxml/SCXMLHelper.java
Date Sat, 26 Apr 2008 01:02:13 GMT
Author: rahul
Date: Fri Apr 25 18:02:08 2008
New Revision: 651763

URL: http://svn.apache.org/viewvc?rev=651763&view=rev
Log:
Eliminate raw type warnings.

Modified:
    commons/proper/scxml/branches/J6/src/main/java/org/apache/commons/scxml/SCXMLHelper.java

Modified: commons/proper/scxml/branches/J6/src/main/java/org/apache/commons/scxml/SCXMLHelper.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/branches/J6/src/main/java/org/apache/commons/scxml/SCXMLHelper.java?rev=651763&r1=651762&r2=651763&view=diff
==============================================================================
--- commons/proper/scxml/branches/J6/src/main/java/org/apache/commons/scxml/SCXMLHelper.java
(original)
+++ commons/proper/scxml/branches/J6/src/main/java/org/apache/commons/scxml/SCXMLHelper.java
Fri Apr 25 18:02:08 2008
@@ -293,11 +293,11 @@
      * @param parent The supertype
      * @return true if child is subtype of parent, otherwise false
      */
-    public static boolean subtypeOf(final Class child, final Class parent) {
+    public static boolean subtypeOf(final Class<?> child, final Class<?> parent)
{
         if (child == null || parent == null) {
             return false;
         }
-        for (Class current = child; current != Object.class;
+        for (Class<?> current = child; current != Object.class;
                 current = current.getSuperclass()) {
             if (current == parent) {
                 return true;
@@ -313,14 +313,14 @@
      * @param interfayce The interface
      * @return true if clas implements interfayce, otherwise false
      */
-    public static boolean implementationOf(final Class clas,
-            final Class interfayce) {
+    public static boolean implementationOf(final Class<?> clas,
+            final Class<?> interfayce) {
         if (clas == null || interfayce == null || !interfayce.isInterface()) {
             return false;
         }
-        for (Class current = clas; current != Object.class;
+        for (Class<?> current = clas; current != Object.class;
                 current = current.getSuperclass()) {
-            Class[] implementedInterfaces = current.getInterfaces();
+            Class<?>[] implementedInterfaces = current.getInterfaces();
             for (int i = 0; i < implementedInterfaces.length; i++) {
                 if (implementedInterfaces[i] == interfayce) {
                     return true;



Mime
View raw message