Mercurial > hg > truffle
diff agent/src/share/classes/sun/jvm/hotspot/jdi/FieldImpl.java @ 2471:37be97a58393
7010849: 5/5 Extraneous javac source/target options when building sa-jdi
Summary: Make code changes necessary to get rid of the '-source 1.4 -target 1.4' options.
Reviewed-by: dholmes, dcubed
author | andrew |
---|---|
date | Fri, 01 Apr 2011 15:15:37 -0700 |
parents | c7f3d0b4570f |
children |
line wrap: on
line diff
--- a/agent/src/share/classes/sun/jvm/hotspot/jdi/FieldImpl.java Thu Mar 31 06:54:30 2011 -0400 +++ b/agent/src/share/classes/sun/jvm/hotspot/jdi/FieldImpl.java Fri Apr 01 15:15:37 2011 -0700 @@ -145,8 +145,7 @@ } // From interface Comparable - public int compareTo(Object object) { - Field field = (Field)object; + public int compareTo(Field field) { ReferenceTypeImpl declaringType = (ReferenceTypeImpl)declaringType(); int rc = declaringType.compareTo(field.declaringType()); if (rc == 0) {