src/share/classes/com/sun/java/swing/plaf/windows/TMSchema.java

Print this page

        

*** 444,454 **** public static synchronized int getValue(Part part, State state) { if (stateMap == null) { initStates(); } ! Enum[] states = stateMap.get(part); if (states != null) { for (int i = 0; i < states.length; i++) { if (state == states[i]) { return i + 1; } --- 444,454 ---- public static synchronized int getValue(Part part, State state) { if (stateMap == null) { initStates(); } ! Enum<?>[] states = stateMap.get(part); if (states != null) { for (int i = 0; i < states.length; i++) { if (state == states[i]) { return i + 1; }
*** 502,515 **** TEXTSHADOWTYPE(Integer.class, 4010), // type of shadow to draw with text TRANSITIONDURATIONS(Integer.class, 6000); ! private final Class type; private final int value; ! private Prop(Class type, int value) { this.type = type; this.value = value; } public int getValue() { --- 502,515 ---- TEXTSHADOWTYPE(Integer.class, 4010), // type of shadow to draw with text TRANSITIONDURATIONS(Integer.class, 6000); ! private final Class<?> type; private final int value; ! private Prop(Class<?> type, int value) { this.type = type; this.value = value; } public int getValue() {