src/solaris/classes/sun/awt/X11CustomCursor.java
Print this page
rev 9717 : 8039642: Fix raw and unchecked warnings in sun.awt.*
Reviewed-by:
@@ -45,21 +45,21 @@
}
protected void createNativeCursor(Image im, int[] pixels, int width, int height,
int xHotSpot, int yHotSpot) {
- class CCount implements Comparable {
+ class CCount implements Comparable<CCount> {
int color;
int count;
public CCount(int cl, int ct) {
color = cl;
count = ct;
}
- public int compareTo(Object cc) {
- return ((CCount)cc).count - count;
+ public int compareTo(CCount cc) {
+ return cc.count - count;
}
}
int tmp[] = new int[pixels.length];
for (int i=0; i<pixels.length; i++) {