src/solaris/classes/sun/awt/X11CustomCursor.java

Print this page
rev 9830 : 8039642: Fix raw and unchecked warnings in sun.awt.*
Reviewed-by: darcy, prr

*** 45,65 **** } protected void createNativeCursor(Image im, int[] pixels, int width, int height, int xHotSpot, int yHotSpot) { ! class CCount implements Comparable { int color; int count; public CCount(int cl, int ct) { color = cl; count = ct; } ! public int compareTo(Object cc) { ! return ((CCount)cc).count - count; } } int tmp[] = new int[pixels.length]; for (int i=0; i<pixels.length; i++) { --- 45,65 ---- } protected void createNativeCursor(Image im, int[] pixels, int width, int height, int xHotSpot, int yHotSpot) { ! class CCount implements Comparable<CCount> { int color; int count; public CCount(int cl, int ct) { color = cl; count = ct; } ! public int compareTo(CCount cc) { ! return cc.count - count; } } int tmp[] = new int[pixels.length]; for (int i=0; i<pixels.length; i++) {