diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-12 14:00:54 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-19 14:57:16 +0200 |
commit | be1bb7b1ccee28be616b89cc95e97d656e78bbe3 (patch) | |
tree | d67d16a68d1469b5096a27c743c4b0326a0c0ebe /scripting/examples/java/Highlight/HighlightText.java | |
parent | 56ef5533fc1bce2134721ae64d4d6c18a3526a7a (diff) |
java: use Boolean.valueOf instead of instantiating Boolean objects
Change-Id: Ie41d6b0170a035a694dd270c311a137fd1810e74
Diffstat (limited to 'scripting/examples/java/Highlight/HighlightText.java')
-rw-r--r-- | scripting/examples/java/Highlight/HighlightText.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripting/examples/java/Highlight/HighlightText.java b/scripting/examples/java/Highlight/HighlightText.java index 99af06f25468..11f5249acba8 100644 --- a/scripting/examples/java/Highlight/HighlightText.java +++ b/scripting/examples/java/Highlight/HighlightText.java @@ -163,8 +163,8 @@ public class HighlightText implements com.sun.star.awt.XActionListener { // Only matches whole words and case sensitive descriptor.setPropertyValue( - "SearchCaseSensitive", new Boolean(true)); - descriptor.setPropertyValue("SearchWords", new Boolean(true)); + "SearchCaseSensitive", Boolean.TRUE); + descriptor.setPropertyValue("SearchWords", Boolean.TRUE); } catch (com.sun.star.beans.UnknownPropertyException upe) { System.err.println("Error setting up search properties"); |