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:
Sebastian Sickelmann 2015-10-22 13:46:52 +04:00
parent 9a97133265
commit 80a6875dbf
3 changed files with 3 additions and 3 deletions

View File

@ -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();
}

View File

@ -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);
}

View File

@ -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"));