summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-12 14:00:54 +0200
committerNoel Grandin <noel@peralex.com>2014-08-19 14:57:16 +0200
commitbe1bb7b1ccee28be616b89cc95e97d656e78bbe3 (patch)
treed67d16a68d1469b5096a27c743c4b0326a0c0ebe /toolkit
parent56ef5533fc1bce2134721ae64d4d6c18a3526a7a (diff)
java: use Boolean.valueOf instead of instantiating Boolean objects
Change-Id: Ie41d6b0170a035a694dd270c311a137fd1810e74
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/test/accessibility/AccessibleTextHandler.java2
-rw-r--r--toolkit/test/accessibility/EventQueue.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/toolkit/test/accessibility/AccessibleTextHandler.java b/toolkit/test/accessibility/AccessibleTextHandler.java
index 731bfdca3905..a02bc0b34c15 100644
--- a/toolkit/test/accessibility/AccessibleTextHandler.java
+++ b/toolkit/test/accessibility/AccessibleTextHandler.java
@@ -803,7 +803,7 @@ class TextAttributeDialog extends TextActionDialog
aSequence[4].Value = new Integer( aItalics.isSelected() ? 1 : 0 );
aSequence[5] = new PropertyValue();
aSequence[5].Name = "CharBackTransparent";
- aSequence[5].Value = new Boolean( false );
+ aSequence[5].Value = Boolean.FALSE;
bSuccess = xEdit.setAttributes( getSelectionStart(),
getSelectionEnd(),
diff --git a/toolkit/test/accessibility/EventQueue.java b/toolkit/test/accessibility/EventQueue.java
index c9ab467026ca..684f4027eb1a 100644
--- a/toolkit/test/accessibility/EventQueue.java
+++ b/toolkit/test/accessibility/EventQueue.java
@@ -66,7 +66,7 @@ class EventQueue
private EventQueue ()
{
- maMonitor = new Boolean (true);
+ maMonitor = Boolean.TRUE;
maRegularQueue = new LinkedList<Runnable>();
maDisposingQueue = new LinkedList<Runnable>();
new Thread(this, "AWB.EventQueue").start();