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 /odk/examples/DevelopersGuide/Text | |
parent | 56ef5533fc1bce2134721ae64d4d6c18a3526a7a (diff) |
java: use Boolean.valueOf instead of instantiating Boolean objects
Change-Id: Ie41d6b0170a035a694dd270c311a137fd1810e74
Diffstat (limited to 'odk/examples/DevelopersGuide/Text')
-rw-r--r-- | odk/examples/DevelopersGuide/Text/TextDocuments.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/odk/examples/DevelopersGuide/Text/TextDocuments.java b/odk/examples/DevelopersGuide/Text/TextDocuments.java index ab66ebd5f3a8..92b5504f536b 100644 --- a/odk/examples/DevelopersGuide/Text/TextDocuments.java +++ b/odk/examples/DevelopersGuide/Text/TextDocuments.java @@ -439,7 +439,7 @@ public class TextDocuments { PropertyValue[] loadProps = new PropertyValue[1]; loadProps[0] = new PropertyValue(); loadProps[0].Name = "AsTemplate"; - loadProps[0].Value = new Boolean(true); + loadProps[0].Value = Boolean.TRUE; // load return xComponentLoader.loadComponentFromURL(loadUrl, "_blank", 0, loadProps); @@ -717,7 +717,7 @@ public class TextDocuments { XPropertySet xRow = UnoRuntime.queryInterface( XPropertySet.class, xRows.getByIndex ( 0 ) ); // If BackTransparant is false, then the background color is visible - xRow.setPropertyValue( "BackTransparent", new Boolean(false)); + xRow.setPropertyValue( "BackTransparent", Boolean.FALSE); // Specify the color of the background to be dark blue xRow.setPropertyValue( "BackColor", new Integer(6710932)); @@ -725,7 +725,7 @@ public class TextDocuments { XPropertySet xTableProps = UnoRuntime.queryInterface( XPropertySet.class, xTable ); // We want visible background colors - xTableProps.setPropertyValue( "BackTransparent", new Boolean(false)); + xTableProps.setPropertyValue( "BackTransparent", Boolean.FALSE); // Set the background colour to light blue xTableProps.setPropertyValue( "BackColor", new Integer(13421823)); @@ -863,7 +863,7 @@ public class TextDocuments { // We want a visible background xTableProps.setPropertyValue( "BackTransparent", - new Boolean(false)); + Boolean.FALSE); // We want the background to be light blue xTableProps.setPropertyValue( "BackColor", new Integer(13421823)); @@ -879,7 +879,7 @@ public class TextDocuments { XPropertySet.class, xRows.getByIndex ( 0 ) ); // We want the background of the first row to be visible too - xRow.setPropertyValue( "BackTransparent", new Boolean(false)); + xRow.setPropertyValue( "BackTransparent", Boolean.FALSE); // And let's make it dark blue xRow.setPropertyValue( "BackColor", new Integer(6710932)); |