8139754: Change Boolean constructor use to the use of Boolean factorymethods. For the macosx-port-dev area
Reviewed-by: serb, alexsch
This commit is contained in:
parent
9a97133265
commit
80a6875dbf
@ -845,7 +845,7 @@ public class AquaTabbedPaneUI extends AquaTabbedPaneCopyFromBasicUI {
|
||||
boolean isDefaultFocusReceiver(final JComponent component) {
|
||||
if (isDefaultFocusReceiver == null) {
|
||||
Component defaultFocusReceiver = KeyboardFocusManager.getCurrentKeyboardFocusManager().getDefaultFocusTraversalPolicy().getDefaultComponent(getTopLevelFocusCycleRootAncestor(component));
|
||||
isDefaultFocusReceiver = new Boolean(defaultFocusReceiver != null && defaultFocusReceiver.equals(component));
|
||||
isDefaultFocusReceiver = defaultFocusReceiver != null && defaultFocusReceiver.equals(component);
|
||||
}
|
||||
return isDefaultFocusReceiver.booleanValue();
|
||||
}
|
||||
|
@ -175,7 +175,7 @@ class CAccessibility implements PropertyChangeListener {
|
||||
final AccessibleSelection as = ac.getAccessibleSelection();
|
||||
if (as == null) return Boolean.FALSE;
|
||||
|
||||
return new Boolean(as.isAccessibleChildSelected(index));
|
||||
return as.isAccessibleChildSelected(index);
|
||||
}
|
||||
}, c);
|
||||
}
|
||||
|
@ -380,7 +380,7 @@ public final class LWCToolkit extends LWToolkit {
|
||||
desktopProperties.put("DnD.Autoscroll.interval", new Integer(50));
|
||||
desktopProperties.put("DnD.Autoscroll.cursorHysteresis", new Integer(5));
|
||||
|
||||
desktopProperties.put("DnD.isDragImageSupported", new Boolean(true));
|
||||
desktopProperties.put("DnD.isDragImageSupported", Boolean.TRUE);
|
||||
|
||||
// Register DnD cursors
|
||||
desktopProperties.put("DnD.Cursor.CopyDrop", new NamedCursor("DnD.Cursor.CopyDrop"));
|
||||
|
Loading…
Reference in New Issue
Block a user