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 /qadevOOo/runner | |
parent | java: classes in java.lang package do not need to be fully qualified (diff) | |
download | core-be1bb7b1ccee28be616b89cc95e97d656e78bbe3.tar.gz core-be1bb7b1ccee28be616b89cc95e97d656e78bbe3.zip |
java: use Boolean.valueOf instead of instantiating Boolean objects
Change-Id: Ie41d6b0170a035a694dd270c311a137fd1810e74
Diffstat (limited to 'qadevOOo/runner')
4 files changed, 4 insertions, 4 deletions
diff --git a/qadevOOo/runner/convwatch/GraphicalDifferenceCheck.java b/qadevOOo/runner/convwatch/GraphicalDifferenceCheck.java index 23e975815837..abd1aecefb7b 100644 --- a/qadevOOo/runner/convwatch/GraphicalDifferenceCheck.java +++ b/qadevOOo/runner/convwatch/GraphicalDifferenceCheck.java @@ -274,7 +274,7 @@ public class GraphicalDifferenceCheck } PropertyValue pvFilterName = new PropertyValue("FilterName", -1, exportFilter, com.sun.star.beans.PropertyState.getDefault()); - PropertyValue pvOverwrite = new PropertyValue("Overwrite", -1, new Boolean(true), com.sun.star.beans.PropertyState.getDefault()); + PropertyValue pvOverwrite = new PropertyValue("Overwrite", -1, Boolean.TRUE, com.sun.star.beans.PropertyState.getDefault()); try { diff --git a/qadevOOo/runner/convwatch/OfficePrint.java b/qadevOOo/runner/convwatch/OfficePrint.java index 9279f6457552..9cbb1325a530 100644 --- a/qadevOOo/runner/convwatch/OfficePrint.java +++ b/qadevOOo/runner/convwatch/OfficePrint.java @@ -519,7 +519,7 @@ public class OfficePrint { if (aSettings != null) { XPropertySet xPropSet = UnoRuntime.queryInterface( XPropertySet.class, aSettings ); - xPropSet.setPropertyValue( "PrintAllSheets", new Boolean( true ) ); + xPropSet.setPropertyValue( "PrintAllSheets", Boolean.TRUE ); GlobalLogWriter.get().println("PrintAllSheets := true"); } } diff --git a/qadevOOo/runner/graphical/OpenOfficePostscriptCreator.java b/qadevOOo/runner/graphical/OpenOfficePostscriptCreator.java index f63c623975d0..bca3b38efb15 100644 --- a/qadevOOo/runner/graphical/OpenOfficePostscriptCreator.java +++ b/qadevOOo/runner/graphical/OpenOfficePostscriptCreator.java @@ -475,7 +475,7 @@ public class OpenOfficePostscriptCreator implements IOffice if (aSettings != null) { XPropertySet xPropSet = UnoRuntime.queryInterface( XPropertySet.class, aSettings ); - xPropSet.setPropertyValue( "PrintAllSheets", new Boolean( true ) ); + xPropSet.setPropertyValue( "PrintAllSheets", Boolean.TRUE ); GlobalLogWriter.println("PrintAllSheets := true"); } } diff --git a/qadevOOo/runner/util/ValueChanger.java b/qadevOOo/runner/util/ValueChanger.java index 7f01f8a21a57..00d6fdffaea2 100644 --- a/qadevOOo/runner/util/ValueChanger.java +++ b/qadevOOo/runner/util/ValueChanger.java @@ -50,7 +50,7 @@ public class ValueChanger { if (oldValue instanceof Boolean) { boolean oldbool = ((Boolean) oldValue).booleanValue(); - newValue = new Boolean(!oldbool); + newValue = Boolean.valueOf(!oldbool); } else if (oldValue instanceof Integer) { |