]> source.dussan.org Git - jackcess.git/commitdiff
Fixed comparable.
authorTim McCune <javajedi@users.sf.net>
Sat, 9 Apr 2005 16:34:30 +0000 (16:34 +0000)
committerTim McCune <javajedi@users.sf.net>
Sat, 9 Apr 2005 16:34:30 +0000 (16:34 +0000)
Turned statcvs report back on.

git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@11 f203690c-595d-4dc9-a70b-905162fa7fd2

project.xml
src/java/com/healthmarketscience/jackcess/Column.java

index ae863f3826ed7d51fa2ec5407bda337da1cb2164..c8e88ed7b8c2dc30038bae1ffd824f7182679ac2 100644 (file)
@@ -97,6 +97,6 @@
     <report>maven-javadoc-plugin</report>
     <report>maven-jxr-plugin</report>
     <report>maven-jdepend-plugin</report>
-    <!--<report>maven-statcvs-plugin</report>-->
+    <report>maven-statcvs-plugin</report>
   </reports>
 </project>
index 04182ef39c14cda753073f7ff5d7f255d121e15d..cb0b64db0d14c433b4335ae3ae53feaf1f059c5f 100644 (file)
@@ -49,7 +49,7 @@ import org.apache.commons.logging.LogFactory;
  * Access database column definition
  * @author Tim McCune
  */
-public class Column implements Comparable {
+public class Column implements Comparable<Column> {
   
   private static final Log LOG = LogFactory.getLog(Column.class);
   
@@ -499,8 +499,7 @@ public class Column implements Comparable {
     return rtn.toString();
   }
   
-  public int compareTo(Object obj) {
-    Column other = (Column) obj;
+  public int compareTo(Column other) {
     if (_columnNumber > other.getColumnNumber()) {
       return 1;
     } else if (_columnNumber < other.getColumnNumber()) {