empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From franci...@apache.org
Subject svn commit: r826501 - /incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBTable.java
Date Sun, 18 Oct 2009 19:20:21 GMT
Author: francisdb
Date: Sun Oct 18 19:20:20 2009
New Revision: 826501

URL: http://svn.apache.org/viewvc?rev=826501&view=rev
Log:
no need to use  @SuppressWarnings("unchecked")

Modified:
    incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBTable.java

Modified: incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBTable.java
URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBTable.java?rev=826501&r1=826500&r2=826501&view=diff
==============================================================================
--- incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBTable.java (original)
+++ incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBTable.java Sun
Oct 18 19:20:20 2009
@@ -90,7 +90,6 @@
      * 
      * @return this cloned Object
      */
-    @SuppressWarnings("unchecked")
     @Override
     public Object clone()
     {
@@ -98,8 +97,8 @@
         {
             DBTable clone = (DBTable) super.clone();
             // clone all columns
-            Class colClass = columns.get(0).getClass();
-            Class colBase = colClass.getSuperclass();
+            Class<?> colClass = columns.get(0).getClass();
+            Class<?> colBase = colClass.getSuperclass();
             clone.columns = new ArrayList<DBColumn>();
             Field[] fields = getClass().getDeclaredFields();
             for (int i = 0; i < columns.size(); i++)
@@ -109,7 +108,7 @@
                 // Replace all references for oldCol to newCol
                 for (int j = 0; j < fields.length; j++)
                 { // Find a class of Type DBColumn or DBTableColumn
-                    Class type = fields[j].getType();
+                    Class<?> type = fields[j].getType();
                     if (type == colClass || type == colBase)
                     {
                         try



Mime
View raw message