db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r799773 - /db/jdo/trunk/api2/src/java/javax/jdo/identity/ObjectIdentity.java
Date Fri, 31 Jul 2009 23:56:00 GMT
Author: clr
Date: Fri Jul 31 23:56:00 2009
New Revision: 799773

URL: http://svn.apache.org/viewvc?rev=799773&view=rev
Log:
Annotate unresolvable warning for unchecked cast to Comparable

Modified:
    db/jdo/trunk/api2/src/java/javax/jdo/identity/ObjectIdentity.java

Modified: db/jdo/trunk/api2/src/java/javax/jdo/identity/ObjectIdentity.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api2/src/java/javax/jdo/identity/ObjectIdentity.java?rev=799773&r1=799772&r2=799773&view=diff
==============================================================================
--- db/jdo/trunk/api2/src/java/javax/jdo/identity/ObjectIdentity.java (original)
+++ db/jdo/trunk/api2/src/java/javax/jdo/identity/ObjectIdentity.java Fri Jul 31 23:56:00
2009
@@ -150,6 +150,7 @@
      * @return The relative ordering between the objects
      * @since 2.2
      */
+    @SuppressWarnings("unchecked")
     public int compareTo(Object o) {
         if (o instanceof ObjectIdentity) {
         	ObjectIdentity other = (ObjectIdentity)o;



Mime
View raw message