< prev index next >
src/share/classes/javax/swing/plaf/synth/Region.java
Print this page
rev 1580 : 6727661: Code improvement and warnings removing from the swing/plaf packages
Summary: Removed unnecessary castings and other warnings
Reviewed-by: alexp
Contributed-by: Florian Brunner <fbrunnerlist@gmx.ch>
*** 493,503 ****
static Region getRegion(JComponent c) {
return getUItoRegionMap().get(c.getUIClassID());
}
static void registerUIs(UIDefaults table) {
! for (Object key : getUItoRegionMap().keySet()) {
table.put(key, "javax.swing.plaf.synth.SynthLookAndFeel");
}
}
private final String name;
--- 493,503 ----
static Region getRegion(JComponent c) {
return getUItoRegionMap().get(c.getUIClassID());
}
static void registerUIs(UIDefaults table) {
! for (String key : getUItoRegionMap().keySet()) {
table.put(key, "javax.swing.plaf.synth.SynthLookAndFeel");
}
}
private final String name;
< prev index next >