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 | |
parent | 56ef5533fc1bce2134721ae64d4d6c18a3526a7a (diff) |
java: use Boolean.valueOf instead of instantiating Boolean objects
Change-Id: Ie41d6b0170a035a694dd270c311a137fd1810e74
Diffstat (limited to 'qadevOOo')
101 files changed, 163 insertions, 163 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) { diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlButtonModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlButtonModel.java index 4951d40382e1..d9a3d5424eee 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlButtonModel.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlButtonModel.java @@ -57,10 +57,10 @@ public class _UnoControlButtonModel extends MultiPropertyTest { protected PropertyTester BoolTester = new PropertyTester() { @Override protected Object getNewValue(String propName, Object oldValue) { - if (util.ValueComparer.equalValue(oldValue, new Boolean(true))) - return new Boolean(false); + if (util.ValueComparer.equalValue(oldValue, Boolean.TRUE)) + return Boolean.FALSE; else - return new Boolean(true); + return Boolean.TRUE; } }; diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlCheckBoxModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlCheckBoxModel.java index b9c2d926e6eb..263205974388 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlCheckBoxModel.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlCheckBoxModel.java @@ -73,7 +73,7 @@ public class _UnoControlCheckBoxModel extends MultiPropertyTest { testProperty("Tabstop", new PropertyTester() { @Override protected Object getNewValue(String p, Object old) { - if (utils.isVoid(old)) return new Boolean(true) ; + if (utils.isVoid(old)) return Boolean.TRUE ; else return null ; } }) ; diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlComboBoxModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlComboBoxModel.java index 13674faea5f7..2f61348e09f7 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlComboBoxModel.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlComboBoxModel.java @@ -92,7 +92,7 @@ public class _UnoControlComboBoxModel extends MultiPropertyTest { testProperty("Tabstop", new PropertyTester() { @Override protected Object getNewValue(String p, Object old) { - return utils.isVoid(old) ? new Boolean(true) : null ; + return utils.isVoid(old) ? Boolean.TRUE : null ; } }) ; } diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlCurrencyFieldModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlCurrencyFieldModel.java index 17bc0a67b987..cedc9274c009 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlCurrencyFieldModel.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlCurrencyFieldModel.java @@ -69,7 +69,7 @@ public class _UnoControlCurrencyFieldModel extends MultiPropertyTest { testProperty("Tabstop", new PropertyTester() { @Override protected Object getNewValue(String prop, Object old) { - return utils.isVoid(old) ? new Boolean(true) : null ; + return utils.isVoid(old) ? Boolean.TRUE : null ; } }) ; } diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlDateFieldModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlDateFieldModel.java index a9f8626754b0..cbbf2e2592cb 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlDateFieldModel.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlDateFieldModel.java @@ -96,7 +96,7 @@ public class _UnoControlDateFieldModel extends MultiPropertyTest { testProperty("Tabstop", new PropertyTester() { @Override protected Object getNewValue(String prop, Object old) { - return utils.isVoid(old) ? new Boolean(true) : null ; + return utils.isVoid(old) ? Boolean.TRUE : null ; } }) ; } @@ -144,10 +144,10 @@ public class _UnoControlDateFieldModel extends MultiPropertyTest { Boolean dsc = null; if (util.utils.isVoid(oDsc)) { log.println("Property is void, set it to true"); - dsc = new Boolean(true); + dsc = Boolean.TRUE; } else { dsc = (Boolean) oDsc; - dsc = new Boolean(!dsc.booleanValue()); + dsc = Boolean.valueOf(!dsc.booleanValue()); log.println("Setting property to "+dsc); } oObj.setPropertyValue("DateShowCentury",dsc); diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlEditModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlEditModel.java index 4820a9163cad..38a888e65325 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlEditModel.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlEditModel.java @@ -96,7 +96,7 @@ public class _UnoControlEditModel extends MultiPropertyTest { testProperty("Tabstop", new PropertyTester() { @Override protected Object getNewValue(String p, Object old) { - return utils.isVoid(old) ? new Boolean(true) : null ; + return utils.isVoid(old) ? Boolean.TRUE : null ; } }) ; } diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlFileControlModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlFileControlModel.java index 97354b886738..54fddfe7715c 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlFileControlModel.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlFileControlModel.java @@ -105,7 +105,7 @@ public class _UnoControlFileControlModel extends MultiPropertyTest { testProperty("Tabstop", new PropertyTester() { @Override protected Object getNewValue(String p, Object old) { - return utils.isVoid(old) ? new Boolean(true) : null ; + return utils.isVoid(old) ? Boolean.TRUE : null ; } }) ; } diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlFormattedFieldModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlFormattedFieldModel.java index ae22942e0138..a119eee6a55b 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlFormattedFieldModel.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlFormattedFieldModel.java @@ -216,7 +216,7 @@ public class _UnoControlFormattedFieldModel extends MultiPropertyTest { testProperty("StrictFromat", new PropertyTester() { @Override protected Object getNewValue(String p, Object v) { - return utils.isVoid(v) ? new Boolean(true) : + return utils.isVoid(v) ? Boolean.TRUE : super.getNewValue(p,v) ; } }) ; @@ -230,7 +230,7 @@ public class _UnoControlFormattedFieldModel extends MultiPropertyTest { testProperty("Tabstop", new PropertyTester() { @Override protected Object getNewValue(String p, Object v) { - return utils.isVoid(v) ? new Boolean(true) : + return utils.isVoid(v) ? Boolean.TRUE : null ; } }) ; diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlImageControlModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlImageControlModel.java index 518644321931..cc9094a34432 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlImageControlModel.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlImageControlModel.java @@ -94,7 +94,7 @@ public class _UnoControlImageControlModel extends MultiPropertyTest { testProperty("Tabstop", new PropertyTester() { @Override protected Object getNewValue(String p, Object v) { - return utils.isVoid(v) ? new Boolean(true) : + return utils.isVoid(v) ? Boolean.TRUE : null ; } }) ; diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlListBoxModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlListBoxModel.java index 49c1377e4012..7c2a3f2d72e5 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlListBoxModel.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlListBoxModel.java @@ -92,7 +92,7 @@ public class _UnoControlListBoxModel extends MultiPropertyTest { testProperty("Tabstop", new PropertyTester() { @Override protected Object getNewValue(String p, Object old) { - return utils.isVoid(old) ? new Boolean(true) : null ; + return utils.isVoid(old) ? Boolean.TRUE : null ; } }) ; } diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlNumericFieldModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlNumericFieldModel.java index 724ac84e975d..f0985238f1a1 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlNumericFieldModel.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlNumericFieldModel.java @@ -108,7 +108,7 @@ public class _UnoControlNumericFieldModel extends MultiPropertyTest { testProperty("Tabstop", new PropertyTester() { @Override protected Object getNewValue(String p, Object old) { - return utils.isVoid(old) ? new Boolean(true) : null ; + return utils.isVoid(old) ? Boolean.TRUE : null ; } }) ; } diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlPatternFieldModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlPatternFieldModel.java index 0cbd17cd9d40..4b7abedf8448 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlPatternFieldModel.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlPatternFieldModel.java @@ -104,7 +104,7 @@ public class _UnoControlPatternFieldModel extends MultiPropertyTest { testProperty("Tabstop", new PropertyTester() { @Override protected Object getNewValue(String p, Object old) { - return utils.isVoid(old) ? new Boolean(true) : null ; + return utils.isVoid(old) ? Boolean.TRUE : null ; } }) ; } diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlRadioButtonModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlRadioButtonModel.java index 84302c1484a4..e4b228f85dee 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlRadioButtonModel.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlRadioButtonModel.java @@ -60,7 +60,7 @@ public class _UnoControlRadioButtonModel extends MultiPropertyTest { testProperty("Tabstop", new PropertyTester() { @Override protected Object getNewValue(String p, Object old) { - return utils.isVoid(old) ? new Boolean(true) : null ; + return utils.isVoid(old) ? Boolean.TRUE : null ; } }) ; } diff --git a/qadevOOo/tests/java/ifc/awt/_UnoControlTimeFieldModel.java b/qadevOOo/tests/java/ifc/awt/_UnoControlTimeFieldModel.java index 13824c0da596..ec072aa23f81 100644 --- a/qadevOOo/tests/java/ifc/awt/_UnoControlTimeFieldModel.java +++ b/qadevOOo/tests/java/ifc/awt/_UnoControlTimeFieldModel.java @@ -126,7 +126,7 @@ public class _UnoControlTimeFieldModel extends MultiPropertyTest { testProperty("Tabstop", new PropertyTester() { @Override protected Object getNewValue(String p, Object old) { - return utils.isVoid(old) ? new Boolean(true) : null ; + return utils.isVoid(old) ? Boolean.TRUE : null ; } }) ; } diff --git a/qadevOOo/tests/java/ifc/chart/_BarDiagram.java b/qadevOOo/tests/java/ifc/chart/_BarDiagram.java index 5b546774bf9b..caf2f5ddc4e1 100644 --- a/qadevOOo/tests/java/ifc/chart/_BarDiagram.java +++ b/qadevOOo/tests/java/ifc/chart/_BarDiagram.java @@ -76,7 +76,7 @@ public class _BarDiagram extends MultiPropertyTest { oObj = UnoRuntime.queryInterface( XPropertySet.class, doc.getDiagram() ); log.println("Set it to 3D"); try { - oObj.setPropertyValue("Dim3D", new Boolean(true)); + oObj.setPropertyValue("Dim3D", Boolean.TRUE); } catch(com.sun.star.lang.WrappedTargetException e) { log.println("Exception while set property value"); e.printStackTrace(log); @@ -125,8 +125,8 @@ public class _BarDiagram extends MultiPropertyTest { public void _NumberOfLines() { log.println("Set it to 2D"); try { - oObj.setPropertyValue("Dim3D", new Boolean(false)); - oObj.setPropertyValue("Vertical", new Boolean(false)); + oObj.setPropertyValue("Dim3D", Boolean.FALSE); + oObj.setPropertyValue("Vertical", Boolean.FALSE); } catch(com.sun.star.lang.WrappedTargetException e) { log.println("Exception while set property value"); e.printStackTrace(log); diff --git a/qadevOOo/tests/java/ifc/chart/_Chart3DBarProperties.java b/qadevOOo/tests/java/ifc/chart/_Chart3DBarProperties.java index a255ae217414..401b1d9bbe8a 100644 --- a/qadevOOo/tests/java/ifc/chart/_Chart3DBarProperties.java +++ b/qadevOOo/tests/java/ifc/chart/_Chart3DBarProperties.java @@ -65,7 +65,7 @@ public class _Chart3DBarProperties extends MultiPropertyTest { log.println("Change Diagram to 3D"); oObj = UnoRuntime.queryInterface( XPropertySet.class, doc.getDiagram() ); try { - oObj.setPropertyValue("Dim3D", new Boolean(true)); + oObj.setPropertyValue("Dim3D", Boolean.TRUE); } catch(com.sun.star.lang.WrappedTargetException e) { log.println("Couldn't change Diagram to 3D"); e.printStackTrace(log); @@ -98,7 +98,7 @@ public class _Chart3DBarProperties extends MultiPropertyTest { log.println("Change Diagram to 3D"); oObj = UnoRuntime.queryInterface( XPropertySet.class, doc.getDiagram() ); try { - oObj.setPropertyValue("Dim3D", new Boolean(false)); + oObj.setPropertyValue("Dim3D", Boolean.FALSE); } catch(com.sun.star.lang.WrappedTargetException e) { log.println("Couldn't change Diagram back to 2D"); e.printStackTrace(log); diff --git a/qadevOOo/tests/java/ifc/chart/_ChartAxis.java b/qadevOOo/tests/java/ifc/chart/_ChartAxis.java index e4932e7e021b..f63413ebe7cb 100644 --- a/qadevOOo/tests/java/ifc/chart/_ChartAxis.java +++ b/qadevOOo/tests/java/ifc/chart/_ChartAxis.java @@ -61,8 +61,8 @@ public class _ChartAxis extends MultiPropertyTest { try { //if AutoOrigin isn't true then this property works only when //current Origin is less then new value of Max - oObj.setPropertyValue("AutoOrigin", new Boolean(true)); - oObj.setPropertyValue("AutoMax",new Boolean(false)); + oObj.setPropertyValue("AutoOrigin", Boolean.TRUE); + oObj.setPropertyValue("AutoMax",Boolean.FALSE); } catch(com.sun.star.lang.WrappedTargetException e) { log.println("Couldn't set property value"); e.printStackTrace(log); @@ -93,8 +93,8 @@ public class _ChartAxis extends MultiPropertyTest { try { //if AutoOrigin isn't true then this property works only when //current Origin is greater then new value of Min - oObj.setPropertyValue("AutoOrigin", new Boolean(true)); - oObj.setPropertyValue("AutoMin", new Boolean(false)); + oObj.setPropertyValue("AutoOrigin", Boolean.TRUE); + oObj.setPropertyValue("AutoMin", Boolean.FALSE); } catch(com.sun.star.lang.WrappedTargetException e) { log.println("Couldn't set property value"); e.printStackTrace(log); @@ -122,7 +122,7 @@ public class _ChartAxis extends MultiPropertyTest { */ public void _Origin() { try { - oObj.setPropertyValue("Logarithmic",new Boolean(false)); + oObj.setPropertyValue("Logarithmic",Boolean.FALSE); } catch(com.sun.star.lang.WrappedTargetException e) { log.println("Couldn't set property value"); e.printStackTrace(log); @@ -162,8 +162,8 @@ public class _ChartAxis extends MultiPropertyTest { */ public void _StepMain() { try { - oObj.setPropertyValue("AutoStepMain", new Boolean(false)); - oObj.setPropertyValue("Logarithmic",new Boolean(false)); + oObj.setPropertyValue("AutoStepMain", Boolean.FALSE); + oObj.setPropertyValue("Logarithmic",Boolean.FALSE); } catch(com.sun.star.lang.WrappedTargetException e) { log.println("Couldn't set property value"); e.printStackTrace(log); diff --git a/qadevOOo/tests/java/ifc/chart/_ChartAxisXSupplier.java b/qadevOOo/tests/java/ifc/chart/_ChartAxisXSupplier.java index 310ebf02560d..4f9075ef953d 100644 --- a/qadevOOo/tests/java/ifc/chart/_ChartAxisXSupplier.java +++ b/qadevOOo/tests/java/ifc/chart/_ChartAxisXSupplier.java @@ -66,7 +66,7 @@ public class _ChartAxisXSupplier extends MultiPropertyTest { tRes.tested("HasXAxis", !setVal); // leave axis untouched - oObj.setPropertyValue("HasXAxis", new Boolean(res)); + oObj.setPropertyValue("HasXAxis", Boolean.valueOf(res)); } catch (com.sun.star.lang.WrappedTargetException e) { log.println(e.getMessage()); @@ -101,7 +101,7 @@ public class _ChartAxisXSupplier extends MultiPropertyTest { "HasXAxisDescription")).booleanValue(); log.println("Start value: " + res); - oObj.setPropertyValue("HasXAxisDescription", new Boolean(!res)); + oObj.setPropertyValue("HasXAxisDescription", Boolean.valueOf(!res)); boolean setValue = ((Boolean)oObj.getPropertyValue( "HasXAxisDescription")).booleanValue(); log.println("Changed value: " + setValue); diff --git a/qadevOOo/tests/java/ifc/chart/_ChartAxisYSupplier.java b/qadevOOo/tests/java/ifc/chart/_ChartAxisYSupplier.java index 62eb9748fbba..ca2d6aedf7e5 100644 --- a/qadevOOo/tests/java/ifc/chart/_ChartAxisYSupplier.java +++ b/qadevOOo/tests/java/ifc/chart/_ChartAxisYSupplier.java @@ -91,7 +91,7 @@ public class _ChartAxisYSupplier extends MultiPropertyTest { tRes.tested("HasYAxis", !setVal); // leave axis untouched - oObj.setPropertyValue("HasYAxis", new Boolean(res)); + oObj.setPropertyValue("HasYAxis", Boolean.valueOf(res)); } catch (com.sun.star.lang.WrappedTargetException e) { log.println(e.getMessage()); @@ -126,7 +126,7 @@ public class _ChartAxisYSupplier extends MultiPropertyTest { "HasYAxisDescription")).booleanValue(); log.println("Start value: " + res); - oObj.setPropertyValue("HasYAxisDescription", new Boolean(!res)); + oObj.setPropertyValue("HasYAxisDescription", Boolean.valueOf(!res)); boolean setValue = ((Boolean)oObj.getPropertyValue( "HasYAxisDescription")).booleanValue(); log.println("Changed value: " + setValue); diff --git a/qadevOOo/tests/java/ifc/chart/_ChartAxisZSupplier.java b/qadevOOo/tests/java/ifc/chart/_ChartAxisZSupplier.java index 33e2e8afec10..30ac5bc92677 100644 --- a/qadevOOo/tests/java/ifc/chart/_ChartAxisZSupplier.java +++ b/qadevOOo/tests/java/ifc/chart/_ChartAxisZSupplier.java @@ -67,7 +67,7 @@ public class _ChartAxisZSupplier extends MultiPropertyTest { log.println("Set it to 3D"); oObj = UnoRuntime.queryInterface( XPropertySet.class, doc.getDiagram() ); try { - oObj.setPropertyValue("Dim3D", new Boolean(true)); + oObj.setPropertyValue("Dim3D", Boolean.TRUE); } catch(com.sun.star.lang.WrappedTargetException e) { log.println("Exception while set property value"); e.printStackTrace(log); @@ -120,7 +120,7 @@ public class _ChartAxisZSupplier extends MultiPropertyTest { tRes.tested("HasZAxis", !setVal); // leave axis untouched - oObj.setPropertyValue("HasZAxis", new Boolean(res)); + oObj.setPropertyValue("HasZAxis", Boolean.valueOf(res)); } catch (com.sun.star.lang.WrappedTargetException e) { log.println(e.getMessage()); @@ -155,7 +155,7 @@ public class _ChartAxisZSupplier extends MultiPropertyTest { "HasZAxisDescription")).booleanValue(); log.println("Start value: " + res); - oObj.setPropertyValue("HasZAxisDescription", new Boolean(!res)); + oObj.setPropertyValue("HasZAxisDescription", Boolean.valueOf(!res)); boolean setValue = ((Boolean)oObj.getPropertyValue( "HasZAxisDescription")).booleanValue(); log.println("Changed value: " + setValue); diff --git a/qadevOOo/tests/java/ifc/chart/_ChartTwoAxisXSupplier.java b/qadevOOo/tests/java/ifc/chart/_ChartTwoAxisXSupplier.java index 9cbcd9ed0d0e..fcd260994435 100644 --- a/qadevOOo/tests/java/ifc/chart/_ChartTwoAxisXSupplier.java +++ b/qadevOOo/tests/java/ifc/chart/_ChartTwoAxisXSupplier.java @@ -69,7 +69,7 @@ public class _ChartTwoAxisXSupplier extends MultiPropertyTest { log.println("Set it to 3D"); oObj = UnoRuntime.queryInterface( XPropertySet.class, doc.getDiagram() ); try { - oObj.setPropertyValue("Dim3D", new Boolean(true)); + oObj.setPropertyValue("Dim3D", Boolean.TRUE); } catch(com.sun.star.lang.WrappedTargetException e) { log.println("Exception while set property value"); e.printStackTrace(log); diff --git a/qadevOOo/tests/java/ifc/chart/_ChartTwoAxisYSupplier.java b/qadevOOo/tests/java/ifc/chart/_ChartTwoAxisYSupplier.java index 588242ad6a3d..a6b690d71daf 100644 --- a/qadevOOo/tests/java/ifc/chart/_ChartTwoAxisYSupplier.java +++ b/qadevOOo/tests/java/ifc/chart/_ChartTwoAxisYSupplier.java @@ -69,7 +69,7 @@ public class _ChartTwoAxisYSupplier extends MultiPropertyTest { log.println("Set it to 3D"); oObj = UnoRuntime.queryInterface( XPropertySet.class, doc.getDiagram() ); try { - oObj.setPropertyValue("Dim3D", new Boolean(true)); + oObj.setPropertyValue("Dim3D", Boolean.TRUE); } catch(com.sun.star.lang.WrappedTargetException e) { log.println("Exception while set property value"); e.printStackTrace(log); diff --git a/qadevOOo/tests/java/ifc/configuration/backend/_XLayerHandler.java b/qadevOOo/tests/java/ifc/configuration/backend/_XLayerHandler.java index 445a820c6bff..39ca600a0185 100644 --- a/qadevOOo/tests/java/ifc/configuration/backend/_XLayerHandler.java +++ b/qadevOOo/tests/java/ifc/configuration/backend/_XLayerHandler.java @@ -45,7 +45,7 @@ public class _XLayerHandler extends MultiMethodTest { oObj.overrideNode("Office", (short) 0, false); oObj.overrideProperty("ooSetupInstCompleted", (short) 0, new Type(String.class), false); - oObj.setPropertyValue(new Boolean(false)); + oObj.setPropertyValue(Boolean.FALSE); oObj.endProperty(); oObj.overrideNode("Factories", (short) 0, false); oObj.addOrReplaceNode("com.sun.star.chart.ChartDocument", diff --git a/qadevOOo/tests/java/ifc/configuration/backend/_XUpdateHandler.java b/qadevOOo/tests/java/ifc/configuration/backend/_XUpdateHandler.java index 4c38734682b7..f999d981ca43 100644 --- a/qadevOOo/tests/java/ifc/configuration/backend/_XUpdateHandler.java +++ b/qadevOOo/tests/java/ifc/configuration/backend/_XUpdateHandler.java @@ -42,7 +42,7 @@ public class _XUpdateHandler extends MultiMethodTest { xLayerHandler.overrideProperty("ooSetupInstCompleted", (short) 0, new Type(String.class), false); - xLayerHandler.setPropertyValue(new Boolean(false)); + xLayerHandler.setPropertyValue(Boolean.FALSE); xLayerHandler.endProperty(); xLayerHandler.overrideNode("Factories", (short) 0, false); xLayerHandler.addOrReplaceNode("com.sun.star.chart.ChartDocument", diff --git a/qadevOOo/tests/java/ifc/drawing/_DrawingDocumentDrawView.java b/qadevOOo/tests/java/ifc/drawing/_DrawingDocumentDrawView.java index d9f7f3c31361..082babb9956b 100644 --- a/qadevOOo/tests/java/ifc/drawing/_DrawingDocumentDrawView.java +++ b/qadevOOo/tests/java/ifc/drawing/_DrawingDocumentDrawView.java @@ -117,7 +117,7 @@ public class _DrawingDocumentDrawView extends MultiPropertyTest { public void _IsMasterPageMode() { testProperty("IsMasterPageMode"); try { - oObj.setPropertyValue("IsMasterPageMode", new Boolean(false)); + oObj.setPropertyValue("IsMasterPageMode", Boolean.FALSE); } catch(com.sun.star.lang.WrappedTargetException e) { e.printStackTrace(log); } catch(com.sun.star.beans.UnknownPropertyException e) { @@ -132,7 +132,7 @@ public class _DrawingDocumentDrawView extends MultiPropertyTest { public void _IsLayerMode() { testProperty("IsLayerMode"); try { - oObj.setPropertyValue("IsLayerMode", new Boolean(false)); + oObj.setPropertyValue("IsLayerMode", Boolean.FALSE); } catch(com.sun.star.lang.WrappedTargetException e) { e.printStackTrace(log); } catch(com.sun.star.beans.UnknownPropertyException e) { diff --git a/qadevOOo/tests/java/ifc/form/component/_GridControl.java b/qadevOOo/tests/java/ifc/form/component/_GridControl.java index aa146e043e55..04f3442eb933 100644 --- a/qadevOOo/tests/java/ifc/form/component/_GridControl.java +++ b/qadevOOo/tests/java/ifc/form/component/_GridControl.java @@ -58,7 +58,7 @@ public class _GridControl extends MultiPropertyTest { testProperty("Tabstop", new PropertyTester() { @Override protected Object getNewValue(String prop, Object old) { - return util.utils.isVoid(old) ? new Boolean(true) : + return util.utils.isVoid(old) ? Boolean.TRUE : super.getNewValue(prop, old) ; } }) ; diff --git a/qadevOOo/tests/java/ifc/sdb/_DataSource.java b/qadevOOo/tests/java/ifc/sdb/_DataSource.java index c190babb6e50..fd64da644b7a 100644 --- a/qadevOOo/tests/java/ifc/sdb/_DataSource.java +++ b/qadevOOo/tests/java/ifc/sdb/_DataSource.java @@ -154,7 +154,7 @@ public class _DataSource extends MultiPropertyTest { @Override public void after() { try { - oObj.setPropertyValue("IsPasswordRequired",new Boolean(false)); + oObj.setPropertyValue("IsPasswordRequired",Boolean.FALSE); } catch (Exception e) { log.println("Couldn't set 'IsPasswordRequired' to false"); } diff --git a/qadevOOo/tests/java/ifc/sheet/_XCellRangesQuery.java b/qadevOOo/tests/java/ifc/sheet/_XCellRangesQuery.java index 29705c6e84a9..36761c342f3d 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XCellRangesQuery.java +++ b/qadevOOo/tests/java/ifc/sheet/_XCellRangesQuery.java @@ -270,7 +270,7 @@ public class _XCellRangesQuery extends MultiMethodTest { XPropertySet rowProp = UnoRuntime.queryInterface( XPropertySet.class, oRows.getByIndex(0)); - rowProp.setPropertyValue("IsVisible", new Boolean(vis)); + rowProp.setPropertyValue("IsVisible", Boolean.valueOf(vis)); } catch (com.sun.star.lang.IndexOutOfBoundsException e) { log.println("couldn't get Row " + e.getLocalizedMessage()); } catch (com.sun.star.lang.WrappedTargetException e) { diff --git a/qadevOOo/tests/java/ifc/style/_CharacterProperties.java b/qadevOOo/tests/java/ifc/style/_CharacterProperties.java index 49370918ace9..da30b2cbed20 100644 --- a/qadevOOo/tests/java/ifc/style/_CharacterProperties.java +++ b/qadevOOo/tests/java/ifc/style/_CharacterProperties.java @@ -304,7 +304,7 @@ public class _CharacterProperties extends MultiPropertyTest { testProperty("RubyIsAbove") ; } else { changeProp((XPropertySet) oPara, (XPropertySet) oPort, - "RubyIsAbove",new Boolean(true)); + "RubyIsAbove",Boolean.TRUE); } } diff --git a/qadevOOo/tests/java/ifc/style/_ParagraphProperties.java b/qadevOOo/tests/java/ifc/style/_ParagraphProperties.java index 335d8968e6bf..33caa19966f3 100644 --- a/qadevOOo/tests/java/ifc/style/_ParagraphProperties.java +++ b/qadevOOo/tests/java/ifc/style/_ParagraphProperties.java @@ -188,10 +188,10 @@ public class _ParagraphProperties extends MultiPropertyTest { @Override protected Object getNewValue(String propName, Object oldValue) { if ((oldValue != null) && - (oldValue.equals(new Boolean(false)))) { - return new Boolean(true); + (oldValue.equals(Boolean.FALSE))) { + return Boolean.TRUE; } else { - return new Boolean(false); + return Boolean.FALSE; } } }; diff --git a/qadevOOo/tests/java/ifc/style/_ParagraphPropertiesAsian.java b/qadevOOo/tests/java/ifc/style/_ParagraphPropertiesAsian.java index b63fa9c2fd63..9c2faafa0529 100644 --- a/qadevOOo/tests/java/ifc/style/_ParagraphPropertiesAsian.java +++ b/qadevOOo/tests/java/ifc/style/_ParagraphPropertiesAsian.java @@ -41,10 +41,10 @@ public class _ParagraphPropertiesAsian extends MultiPropertyTest { @Override protected Object getNewValue(String propName, Object oldValue) { if ((oldValue != null) && - (oldValue.equals(new Boolean(false)))) { - return new Boolean(true); + (oldValue.equals(Boolean.FALSE))) { + return Boolean.TRUE; } else { - return new Boolean(false); + return Boolean.FALSE; } } }; diff --git a/qadevOOo/tests/java/ifc/table/_TableColumn.java b/qadevOOo/tests/java/ifc/table/_TableColumn.java index 05b39cea1b88..db95e7fea419 100644 --- a/qadevOOo/tests/java/ifc/table/_TableColumn.java +++ b/qadevOOo/tests/java/ifc/table/_TableColumn.java @@ -47,7 +47,7 @@ public class _TableColumn extends MultiPropertyTest { aRange.getCellByPosition(0,0).setFormula("Thats a pretty long text"); Object width_before = oObj.getPropertyValue("Width"); log.println("Before setting to optimal width: "+width_before); - oObj.setPropertyValue("OptimalWidth", new Boolean(true)); + oObj.setPropertyValue("OptimalWidth", Boolean.TRUE); Object width_after = oObj.getPropertyValue("Width"); log.println("After setting to optimal width: "+width_after); res = ! ValueComparer.equalValue(width_before,width_after); diff --git a/qadevOOo/tests/java/ifc/text/_NumberingLevel.java b/qadevOOo/tests/java/ifc/text/_NumberingLevel.java index ebeaf004b4f3..bc9a59442146 100644 --- a/qadevOOo/tests/java/ifc/text/_NumberingLevel.java +++ b/qadevOOo/tests/java/ifc/text/_NumberingLevel.java @@ -82,27 +82,27 @@ public class _NumberingLevel { _NumberingLevel.log = log; //key = PropertyName, value = Ooptional - NumberingLevel.put("Adjust", new Boolean(false)); - NumberingLevel.put("ParentNumbering", new Boolean(true)); - NumberingLevel.put("Prefix", new Boolean(false)); - NumberingLevel.put("Suffix", new Boolean(false)); - NumberingLevel.put("CharStyleName", new Boolean(true)); - NumberingLevel.put("BulletId", new Boolean(true)); - NumberingLevel.put("BulletChar", new Boolean(false)); - NumberingLevel.put("BulletFontName", new Boolean(false)); - NumberingLevel.put("BulletFont", new Boolean(true)); - NumberingLevel.put("GraphicURL", new Boolean(false)); - NumberingLevel.put("GraphicBitmap", new Boolean(true)); - NumberingLevel.put("GraphicSize", new Boolean(true)); - NumberingLevel.put("VertOrient", new Boolean(true)); - NumberingLevel.put("StartWith", new Boolean(true)); - NumberingLevel.put("LeftMargin", new Boolean(false)); - NumberingLevel.put("SymbolTextDistance", new Boolean(true)); - NumberingLevel.put("FirstLineOffset", new Boolean(false)); - NumberingLevel.put("NumberingType", new Boolean(false)); - NumberingLevel.put("HeadingStyleName", new Boolean(false)); - NumberingLevel.put("BulletColor", new Boolean(true)); - NumberingLevel.put("BulletRelSize", new Boolean(true)); + NumberingLevel.put("Adjust", Boolean.FALSE); + NumberingLevel.put("ParentNumbering", Boolean.TRUE); + NumberingLevel.put("Prefix", Boolean.FALSE); + NumberingLevel.put("Suffix", Boolean.FALSE); + NumberingLevel.put("CharStyleName", Boolean.TRUE); + NumberingLevel.put("BulletId", Boolean.TRUE); + NumberingLevel.put("BulletChar", Boolean.FALSE); + NumberingLevel.put("BulletFontName", Boolean.FALSE); + NumberingLevel.put("BulletFont", Boolean.TRUE); + NumberingLevel.put("GraphicURL", Boolean.FALSE); + NumberingLevel.put("GraphicBitmap", Boolean.TRUE); + NumberingLevel.put("GraphicSize", Boolean.TRUE); + NumberingLevel.put("VertOrient", Boolean.TRUE); + NumberingLevel.put("StartWith", Boolean.TRUE); + NumberingLevel.put("LeftMargin", Boolean.FALSE); + NumberingLevel.put("SymbolTextDistance", Boolean.TRUE); + NumberingLevel.put("FirstLineOffset", Boolean.FALSE); + NumberingLevel.put("NumberingType", Boolean.FALSE); + NumberingLevel.put("HeadingStyleName", Boolean.FALSE); + NumberingLevel.put("BulletColor", Boolean.TRUE); + NumberingLevel.put("BulletRelSize", Boolean.TRUE); } diff --git a/qadevOOo/tests/java/ifc/text/_XPagePrintable.java b/qadevOOo/tests/java/ifc/text/_XPagePrintable.java index 42f08e8af37a..55bf4fae025d 100644 --- a/qadevOOo/tests/java/ifc/text/_XPagePrintable.java +++ b/qadevOOo/tests/java/ifc/text/_XPagePrintable.java @@ -92,7 +92,7 @@ public class _XPagePrintable extends MultiMethodTest { boolean res = true; Boolean landscape = (Boolean) PrintSettings[8].Value; - Boolean newlandscape = new Boolean(!landscape.booleanValue()); + Boolean newlandscape = Boolean.valueOf(!landscape.booleanValue()); PrintSettings[8].Value = newlandscape; oObj.setPagePrintSettings(PrintSettings); res = (oObj.getPagePrintSettings()[8].Value.equals(newlandscape)); diff --git a/qadevOOo/tests/java/ifc/util/_XSortable.java b/qadevOOo/tests/java/ifc/util/_XSortable.java index dd987cdeff41..f6a60f740dab 100644 --- a/qadevOOo/tests/java/ifc/util/_XSortable.java +++ b/qadevOOo/tests/java/ifc/util/_XSortable.java @@ -177,11 +177,11 @@ public class _XSortable extends MultiMethodTest { } if (oPV[i].Name.equals("isSortInTable")) { - oPV[i].Value = new Boolean(true); + oPV[i].Value = Boolean.TRUE; } if (oPV[i].Name.equals("IsSortColumns")) { - oPV[i].Value = new Boolean(false); + oPV[i].Value = Boolean.FALSE; } } diff --git a/qadevOOo/tests/java/ifc/view/_XPrintJobBroadcaster.java b/qadevOOo/tests/java/ifc/view/_XPrintJobBroadcaster.java index 813cafca06ae..4eceb4ac15c7 100644 --- a/qadevOOo/tests/java/ifc/view/_XPrintJobBroadcaster.java +++ b/qadevOOo/tests/java/ifc/view/_XPrintJobBroadcaster.java @@ -96,7 +96,7 @@ public class _XPrintJobBroadcaster extends MultiMethodTest { printProps[0].State = com.sun.star.beans.PropertyState.DEFAULT_VALUE; printProps[1] = new PropertyValue(); printProps[1].Name = "Wait"; - printProps[1].Value = new Boolean(true); + printProps[1].Value = Boolean.TRUE; } /** diff --git a/qadevOOo/tests/java/ifc/view/_XPrintable.java b/qadevOOo/tests/java/ifc/view/_XPrintable.java index cc00ae30940d..21e470fef18c 100644 --- a/qadevOOo/tests/java/ifc/view/_XPrintable.java +++ b/qadevOOo/tests/java/ifc/view/_XPrintable.java @@ -152,7 +152,7 @@ public class _XPrintable extends MultiMethodTest { PrintOptions[0] = firstProp; PrintOptions[1] = new PropertyValue(); PrintOptions[1].Name = "Wait"; - PrintOptions[1].Value = new Boolean(true); + PrintOptions[1].Value = Boolean.TRUE; oObj.print(PrintOptions); } catch (com.sun.star.lang.IllegalArgumentException ex) { diff --git a/qadevOOo/tests/java/mod/_dbaccess/ODatasourceBrowser.java b/qadevOOo/tests/java/mod/_dbaccess/ODatasourceBrowser.java index 238386071c6e..bad73b7d8107 100644 --- a/qadevOOo/tests/java/mod/_dbaccess/ODatasourceBrowser.java +++ b/qadevOOo/tests/java/mod/_dbaccess/ODatasourceBrowser.java @@ -300,7 +300,7 @@ public class ODatasourceBrowser extends TestCase { tEnv.addObjRelation("SecondModel", aModel1); tEnv.addObjRelation("otherWindow", docWindow); tEnv.addObjRelation("SecondController", secondController); - tEnv.addObjRelation("HasViewData", new Boolean(false)); + tEnv.addObjRelation("HasViewData", Boolean.FALSE); // Addig relation for XDispatchProvider diff --git a/qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java b/qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java index ada48739a0ae..ed6a7ea671ee 100644 --- a/qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java +++ b/qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java @@ -129,7 +129,7 @@ public class OQueryDesign extends TestCase { Args[0] = param1; PropertyValue param2 = new PropertyValue(); param2.Name = "QueryDesignView"; - param2.Value = new Boolean(false); + param2.Value = Boolean.FALSE; Args[1] = param2; param1.Name = "ActiveConnection"; param1.Value = xConn; @@ -186,7 +186,7 @@ public class OQueryDesign extends TestCase { params[1] = param2; PropertyValue param3 = new PropertyValue(); param3.Name = "QueryDesignView"; - param3.Value = new Boolean(true); + param3.Value = Boolean.TRUE; params[2] = param3; @@ -208,7 +208,7 @@ public class OQueryDesign extends TestCase { ExceptionParams[1] = ExceptionParam2; PropertyValue ExceptionParam3 = new PropertyValue(); ExceptionParam3.Name = "QueryDesignView"; - ExceptionParam3.Value = new Integer(17);//new Boolean(true); + ExceptionParam3.Value = new Integer(17);//Boolean.TRUE; ExceptionParams[2] = ExceptionParam3; tEnv.addObjRelation("XInitialization.ExceptionArgs", ExceptionParams); diff --git a/qadevOOo/tests/java/mod/_dbaccess/ORowSet.java b/qadevOOo/tests/java/mod/_dbaccess/ORowSet.java index 41df33c42605..6e06a400e511 100644 --- a/qadevOOo/tests/java/mod/_dbaccess/ORowSet.java +++ b/qadevOOo/tests/java/mod/_dbaccess/ORowSet.java @@ -184,7 +184,7 @@ public class ORowSet extends TestCase { //DataSource for mysql db tableName = "soffice_test_table"; srcInf.URL = "jdbc:" + dbURL; - srcInf.IsPasswordRequired = new Boolean(true); + srcInf.IsPasswordRequired = Boolean.TRUE; srcInf.Password = dbPassword; srcInf.User = dbUser; PropertyValue[] propInfo = new PropertyValue[1]; diff --git a/qadevOOo/tests/java/mod/_forms/GenericModelTest.java b/qadevOOo/tests/java/mod/_forms/GenericModelTest.java index 6a0e2ad5a948..26d38a8a6719 100644 --- a/qadevOOo/tests/java/mod/_forms/GenericModelTest.java +++ b/qadevOOo/tests/java/mod/_forms/GenericModelTest.java @@ -476,7 +476,7 @@ public class GenericModelTest extends TestCase { DBTools.TST_DATE_F); //adding ObjRelation for XPersistObject - tEnv.addObjRelation("PSEUDOPERSISTENT", new Boolean(true)); + tEnv.addObjRelation("PSEUDOPERSISTENT", Boolean.TRUE); // adding relation for XFastPropertySet java.util.HashSet<String> exclude = new java.util.HashSet<String>(); diff --git a/qadevOOo/tests/java/mod/_forms/ODatabaseForm.java b/qadevOOo/tests/java/mod/_forms/ODatabaseForm.java index 954b4b8127e2..df6a42e93a70 100644 --- a/qadevOOo/tests/java/mod/_forms/ODatabaseForm.java +++ b/qadevOOo/tests/java/mod/_forms/ODatabaseForm.java @@ -254,7 +254,7 @@ public class ODatabaseForm extends TestCase { try { tableName = "soffice_test_table"; srcInf.URL = "jdbc:" + dbURL; - srcInf.IsPasswordRequired = new Boolean(true); + srcInf.IsPasswordRequired = Boolean.TRUE; srcInf.Password = dbPassword; srcInf.User = dbUser; @@ -620,7 +620,7 @@ public class ODatabaseForm extends TestCase { /***** statement parameter types and their initial values must be added here as relation. */ params.add("SAU99") ; - params.add(new Boolean(false)) ; + params.add(Boolean.FALSE) ; params.add(new Byte((byte) 123)) ; params.add(new Short((short) 234)) ; params.add(new Integer(12345)) ; @@ -644,7 +644,7 @@ public class ODatabaseForm extends TestCase { tEnv.addObjRelation("InteractionHandlerChecker", new InteractionHandlerImpl()); // Adding for XWarningSupplier - tEnv.addObjRelation("CheckWarningsSupplier", new Boolean(isMySQLDB)); + tEnv.addObjRelation("CheckWarningsSupplier", Boolean.valueOf(isMySQLDB)); // Adding relation for XDatabaseParameterBroadcaster tEnv.addObjRelation("ParameterListenerChecker", new ODatabaseForm.ParameterListenerImpl()); diff --git a/qadevOOo/tests/java/mod/_forms/ONumericControl.java b/qadevOOo/tests/java/mod/_forms/ONumericControl.java index b9027df9f091..b6c4b4363504 100644 --- a/qadevOOo/tests/java/mod/_forms/ONumericControl.java +++ b/qadevOOo/tests/java/mod/_forms/ONumericControl.java @@ -230,7 +230,7 @@ public class ONumericControl extends TestCase { textComp.addTextListener(listener); tEnv.addObjRelation("TestTextListener", listener); - tEnv.addObjRelation("XTextComponent.onlyNumbers", new Boolean(true)); + tEnv.addObjRelation("XTextComponent.onlyNumbers", Boolean.TRUE); return tEnv; } // finish method getTestEnvironment diff --git a/qadevOOo/tests/java/mod/_jdbc/JDBCDriver.java b/qadevOOo/tests/java/mod/_jdbc/JDBCDriver.java index 1bf0fed2e6e6..e5c215d268ab 100644 --- a/qadevOOo/tests/java/mod/_jdbc/JDBCDriver.java +++ b/qadevOOo/tests/java/mod/_jdbc/JDBCDriver.java @@ -98,7 +98,7 @@ public class JDBCDriver extends TestCase { info[2].Value = password; info[3] = new PropertyValue(); info[3].Name = "isPasswordRequired"; - info[3].Value = new Boolean(true); + info[3].Value = Boolean.TRUE; tEnv.addObjRelation("XDriver.INFO", info); diff --git a/qadevOOo/tests/java/mod/_lnn/Hyphenator.java b/qadevOOo/tests/java/mod/_lnn/Hyphenator.java index d64911825e85..425114f05aed 100644 --- a/qadevOOo/tests/java/mod/_lnn/Hyphenator.java +++ b/qadevOOo/tests/java/mod/_lnn/Hyphenator.java @@ -84,7 +84,7 @@ public class Hyphenator extends TestCase { Object LP = xMSF.createInstance ("com.sun.star.linguistic2.LinguProperties"); XPropertySet LProps = UnoRuntime.queryInterface(XPropertySet.class,LP); - LProps.setPropertyValue("IsGermanPreReform",new Boolean(true)); + LProps.setPropertyValue("IsGermanPreReform",Boolean.TRUE); } catch (com.sun.star.uno.Exception e) { e.printStackTrace(log); throw new StatusException("Unexpected exception", e); diff --git a/qadevOOo/tests/java/mod/_sc/ScAccessibleCell.java b/qadevOOo/tests/java/mod/_sc/ScAccessibleCell.java index a79cb07dbbef..6734ca79cc24 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAccessibleCell.java +++ b/qadevOOo/tests/java/mod/_sc/ScAccessibleCell.java @@ -134,7 +134,7 @@ public class ScAccessibleCell extends TestCase { XIndexAccess oIndexAccess = UnoRuntime.queryInterface(XIndexAccess.class, oColumns); XPropertySet column = UnoRuntime.queryInterface( XPropertySet.class,oIndexAccess.getByIndex(1)); - column.setPropertyValue("OptimalWidth", new Boolean(true)); + column.setPropertyValue("OptimalWidth", Boolean.TRUE); } catch(com.sun.star.lang.WrappedTargetException e) { log.println("Exception creating relation :"); e.printStackTrace(log); diff --git a/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewHeaderCell.java b/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewHeaderCell.java index 48599b85c1a2..4f83e467aad9 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewHeaderCell.java +++ b/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewHeaderCell.java @@ -197,7 +197,7 @@ public class ScAccessiblePreviewHeaderCell extends TestCase { } try { - xPropSet.setPropertyValue("PrintHeaders", new Boolean(true)); + xPropSet.setPropertyValue("PrintHeaders", Boolean.TRUE); } catch (com.sun.star.lang.WrappedTargetException e) { e.printStackTrace(log); throw new StatusException(Status.failed( diff --git a/qadevOOo/tests/java/mod/_sc/ScCellFieldObj.java b/qadevOOo/tests/java/mod/_sc/ScCellFieldObj.java index 1fe23fdea5f3..4258bafb1f8e 100644 --- a/qadevOOo/tests/java/mod/_sc/ScCellFieldObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScCellFieldObj.java @@ -173,7 +173,7 @@ public class ScCellFieldObj extends TestCase { TestEnvironment tEnv = new TestEnvironment(oObj) ; log.println ("Object created.") ; - tEnv.addObjRelation("TRO", new Boolean(true)); + tEnv.addObjRelation("TRO", Boolean.TRUE); tEnv.addObjRelation("CONTENT",oContent); tEnv.addObjRelation("TEXT",oText); diff --git a/qadevOOo/tests/java/mod/_sc/ScChartObj.java b/qadevOOo/tests/java/mod/_sc/ScChartObj.java index 8f74e215e3c4..001b634bb17e 100644 --- a/qadevOOo/tests/java/mod/_sc/ScChartObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScChartObj.java @@ -241,7 +241,7 @@ public class ScChartObj extends TestCase { TestEnvironment tEnv = new TestEnvironment(oChart); //adding ObjRelation 'setName' for 'XNamed' - tEnv.addObjRelation("setName", new Boolean(true)); + tEnv.addObjRelation("setName", Boolean.TRUE); return tEnv; } diff --git a/qadevOOo/tests/java/mod/_sc/ScDDELinkObj.java b/qadevOOo/tests/java/mod/_sc/ScDDELinkObj.java index 561734ca4d7d..9d607fcf666d 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDDELinkObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDDELinkObj.java @@ -226,7 +226,7 @@ public class ScDDELinkObj extends TestCase { tEnv.addObjRelation("APPLICATION", sAppl); tEnv.addObjRelation("ITEM", sItem); tEnv.addObjRelation("TOPIC", testdoc); - tEnv.addObjRelation("setName", new Boolean(true)); + tEnv.addObjRelation("setName", Boolean.TRUE); return tEnv; } diff --git a/qadevOOo/tests/java/mod/_sc/ScTableColumnObj.java b/qadevOOo/tests/java/mod/_sc/ScTableColumnObj.java index 72cc8cb38f4a..f218e24eaed1 100644 --- a/qadevOOo/tests/java/mod/_sc/ScTableColumnObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScTableColumnObj.java @@ -157,7 +157,7 @@ public class ScTableColumnObj extends TestCase { tEnv.addObjRelation("ValidRange","K1:K1"); //since TableColumnsNames are fixed XNamed::setName() should always be OK - tEnv.addObjRelation("setName",new Boolean(true)); + tEnv.addObjRelation("setName",Boolean.TRUE); return tEnv; } } diff --git a/qadevOOo/tests/java/mod/_sc/ScTableSheetObj.java b/qadevOOo/tests/java/mod/_sc/ScTableSheetObj.java index b8cca11f83c2..84846d0ddaf3 100644 --- a/qadevOOo/tests/java/mod/_sc/ScTableSheetObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScTableSheetObj.java @@ -236,7 +236,7 @@ public class ScTableSheetObj extends TestCase { TestEnvironment tEnv = new TestEnvironment(oObj); // do not execute com::sun::star::sheets::XCellSeries::fillAuto() - tEnv.addObjRelation("XCELLSERIES_FILLAUTO", new Boolean(false)); + tEnv.addObjRelation("XCELLSERIES_FILLAUTO", Boolean.FALSE); // set the address ranges of the cells (see values set above): for e.g. XSheetOutline test tEnv.addObjRelation("CellRangeAddress", diff --git a/qadevOOo/tests/java/mod/_sch/AccFloor.java b/qadevOOo/tests/java/mod/_sch/AccFloor.java index b9105df020f7..7868b3fef8e5 100644 --- a/qadevOOo/tests/java/mod/_sch/AccFloor.java +++ b/qadevOOo/tests/java/mod/_sch/AccFloor.java @@ -61,7 +61,7 @@ public class AccFloor extends TestCase { log.println("Change Diagram to 3D"); XPropertySet ChartProps = UnoRuntime.queryInterface( XPropertySet.class, xChartDoc.getDiagram() ); try { - ChartProps.setPropertyValue("Dim3D", new Boolean(true)); + ChartProps.setPropertyValue("Dim3D", Boolean.TRUE); } catch(com.sun.star.lang.WrappedTargetException e) { log.println("Couldn't change Diagram to 3D"); e.printStackTrace(log); diff --git a/qadevOOo/tests/java/mod/_sch/AccStatisticsObject.java b/qadevOOo/tests/java/mod/_sch/AccStatisticsObject.java index f0d3fa889a33..1b9c321b805b 100644 --- a/qadevOOo/tests/java/mod/_sch/AccStatisticsObject.java +++ b/qadevOOo/tests/java/mod/_sch/AccStatisticsObject.java @@ -54,7 +54,7 @@ public class AccStatisticsObject extends TestCase { xChartDoc = SOF.createChartDoc(); log.println("Display MeanValue"); XPropertySet diagProps = UnoRuntime.queryInterface(XPropertySet.class, xChartDoc.getDiagram()); - diagProps.setPropertyValue("MeanValue",new Boolean(true)); + diagProps.setPropertyValue("MeanValue",Boolean.TRUE); } catch (com.sun.star.uno.Exception e) { // Some exception occurs.FAILED e.printStackTrace( log ); diff --git a/qadevOOo/tests/java/mod/_sch/AccWall.java b/qadevOOo/tests/java/mod/_sch/AccWall.java index c620e1c470b3..4fa43d17b91f 100644 --- a/qadevOOo/tests/java/mod/_sch/AccWall.java +++ b/qadevOOo/tests/java/mod/_sch/AccWall.java @@ -61,7 +61,7 @@ public class AccWall extends TestCase { log.println("Change Diagram to 3D"); XPropertySet ChartProps = UnoRuntime.queryInterface( XPropertySet.class, xChartDoc.getDiagram() ); try { - ChartProps.setPropertyValue("Dim3D", new Boolean(true)); + ChartProps.setPropertyValue("Dim3D", Boolean.TRUE); } catch(com.sun.star.lang.WrappedTargetException e) { log.println("Couldn't change Diagram to 3D"); e.printStackTrace(log); diff --git a/qadevOOo/tests/java/mod/_sch/ChartLine.java b/qadevOOo/tests/java/mod/_sch/ChartLine.java index b12ca1347865..45efcc786dcd 100644 --- a/qadevOOo/tests/java/mod/_sch/ChartLine.java +++ b/qadevOOo/tests/java/mod/_sch/ChartLine.java @@ -104,7 +104,7 @@ public class ChartLine extends TestCase { try { log.println( "getting Line" ); XPropertySet RowProps = oDiagram.getDataRowProperties(1); - RowProps.setPropertyValue("MeanValue", new Boolean( true )); + RowProps.setPropertyValue("MeanValue", Boolean.TRUE); oObj = (XPropertySet) AnyConverter.toObject( new Type(XPropertySet.class), RowProps.getPropertyValue("DataMeanValueProperties")); diff --git a/qadevOOo/tests/java/mod/_sm/SmEditAccessible.java b/qadevOOo/tests/java/mod/_sm/SmEditAccessible.java index 917ced6eff36..9832680274f9 100644 --- a/qadevOOo/tests/java/mod/_sm/SmEditAccessible.java +++ b/qadevOOo/tests/java/mod/_sm/SmEditAccessible.java @@ -120,7 +120,7 @@ public class SmEditAccessible extends TestCase { AccessibilityTools.printAccessibleTree(log, xRoot, Param.getBool(util.PropertyName.DEBUG_IS_ACTIVE)); TestEnvironment tEnv = new TestEnvironment(oObj); - tEnv.addObjRelation("Destroy", new Boolean(true)); + tEnv.addObjRelation("Destroy", Boolean.TRUE); final XAccessibleContext con = UnoRuntime.queryInterface(XAccessibleContext.class, oObj); tEnv.addObjRelation("EventProducer", diff --git a/qadevOOo/tests/java/mod/_smplmail/SimpleSystemMail.java b/qadevOOo/tests/java/mod/_smplmail/SimpleSystemMail.java index bcf6590ea49e..19964a1bc5d5 100644 --- a/qadevOOo/tests/java/mod/_smplmail/SimpleSystemMail.java +++ b/qadevOOo/tests/java/mod/_smplmail/SimpleSystemMail.java @@ -103,7 +103,7 @@ public class SimpleSystemMail extends TestCase { TestEnvironment tEnv = new TestEnvironment( oObj ); - tEnv.addObjRelation("SystemMailExist", new Boolean(isSystemMailExist)); + tEnv.addObjRelation("SystemMailExist", Boolean.valueOf(isSystemMailExist)); return tEnv; diff --git a/qadevOOo/tests/java/mod/_stm/DataInputStream.java b/qadevOOo/tests/java/mod/_stm/DataInputStream.java index f88722d64330..8076fe210503 100644 --- a/qadevOOo/tests/java/mod/_stm/DataInputStream.java +++ b/qadevOOo/tests/java/mod/_stm/DataInputStream.java @@ -128,7 +128,7 @@ public class DataInputStream extends TestCase { // all data types for writing to an XDataInputStream ArrayList<Object> data = new ArrayList<Object>(); - data.add(new Boolean(true)) ; + data.add(Boolean.TRUE) ; data.add(new Byte((byte)123)) ; data.add(new Character((char)1234)) ; data.add(new Short((short)1234)) ; diff --git a/qadevOOo/tests/java/mod/_stm/DataOutputStream.java b/qadevOOo/tests/java/mod/_stm/DataOutputStream.java index 797fc48118f6..85f33e5a67ac 100644 --- a/qadevOOo/tests/java/mod/_stm/DataOutputStream.java +++ b/qadevOOo/tests/java/mod/_stm/DataOutputStream.java @@ -105,7 +105,7 @@ public class DataOutputStream extends TestCase { // all data types for writing to an XDataInputStream ArrayList<Object> data = new ArrayList<Object>() ; - data.add(new Boolean(true)) ; + data.add(Boolean.TRUE) ; data.add(new Byte((byte)123)) ; data.add(new Character((char)1234)) ; data.add(new Short((short)1234)) ; diff --git a/qadevOOo/tests/java/mod/_stm/MarkableOutputStream.java b/qadevOOo/tests/java/mod/_stm/MarkableOutputStream.java index f9a382ce2ecb..6b46f4f79d89 100644 --- a/qadevOOo/tests/java/mod/_stm/MarkableOutputStream.java +++ b/qadevOOo/tests/java/mod/_stm/MarkableOutputStream.java @@ -128,7 +128,7 @@ public class MarkableOutputStream extends TestCase { // all data types for writing to an XDataInputStream ArrayList<Object> data = new ArrayList<Object>() ; - data.add(new Boolean(true)) ; + data.add(Boolean.TRUE) ; data.add(new Byte((byte)123)) ; data.add(new Character((char)1234)) ; data.add(new Short((short)1234)) ; diff --git a/qadevOOo/tests/java/mod/_stm/ObjectInputStream.java b/qadevOOo/tests/java/mod/_stm/ObjectInputStream.java index 4dc4dc88d57b..003da99be90a 100644 --- a/qadevOOo/tests/java/mod/_stm/ObjectInputStream.java +++ b/qadevOOo/tests/java/mod/_stm/ObjectInputStream.java @@ -242,7 +242,7 @@ public class ObjectInputStream extends TestCase { // all data types for writing to an XDataInputStream ArrayList<Object> data = new ArrayList<Object>() ; - data.add(new Boolean(true)) ; + data.add(Boolean.TRUE) ; data.add(new Byte((byte)123)) ; data.add(new Character((char)1234)) ; data.add(new Short((short)1234)) ; diff --git a/qadevOOo/tests/java/mod/_stm/ObjectOutputStream.java b/qadevOOo/tests/java/mod/_stm/ObjectOutputStream.java index 8361b300bd60..ea937b1145d9 100644 --- a/qadevOOo/tests/java/mod/_stm/ObjectOutputStream.java +++ b/qadevOOo/tests/java/mod/_stm/ObjectOutputStream.java @@ -231,7 +231,7 @@ public class ObjectOutputStream extends TestCase { // all data types for writing to an XDataInputStream ArrayList<Object> data = new ArrayList<Object>() ; - data.add(new Boolean(true)) ; + data.add(Boolean.TRUE) ; data.add(new Byte((byte)123)) ; data.add(new Character((char)1234)) ; data.add(new Short((short)1234)) ; diff --git a/qadevOOo/tests/java/mod/_streams/uno/DataInputStream.java b/qadevOOo/tests/java/mod/_streams/uno/DataInputStream.java index 731d0dd6b096..790faf054753 100644 --- a/qadevOOo/tests/java/mod/_streams/uno/DataInputStream.java +++ b/qadevOOo/tests/java/mod/_streams/uno/DataInputStream.java @@ -125,7 +125,7 @@ public class DataInputStream extends TestCase { // all data types for writing to an XDataInputStream ArrayList<Object> data = new ArrayList<Object>() ; - data.add(new Boolean(true)) ; + data.add(Boolean.TRUE) ; data.add(new Byte((byte)123)) ; data.add(new Character((char)1234)) ; data.add(new Short((short)1234)) ; diff --git a/qadevOOo/tests/java/mod/_streams/uno/DataOutputStream.java b/qadevOOo/tests/java/mod/_streams/uno/DataOutputStream.java index bf7c0e259be5..2f48ce028e06 100644 --- a/qadevOOo/tests/java/mod/_streams/uno/DataOutputStream.java +++ b/qadevOOo/tests/java/mod/_streams/uno/DataOutputStream.java @@ -102,7 +102,7 @@ public class DataOutputStream extends TestCase { // all data types for writing to an XDataInputStream ArrayList<Object> data = new ArrayList<Object>() ; - data.add(new Boolean(true)) ; + data.add(Boolean.TRUE) ; data.add(new Byte((byte)123)) ; data.add(new Character((char)1234)) ; data.add(new Short((short)1234)) ; diff --git a/qadevOOo/tests/java/mod/_streams/uno/MarkableOutputStream.java b/qadevOOo/tests/java/mod/_streams/uno/MarkableOutputStream.java index e26dd900d9bb..34f89a4a4dd5 100644 --- a/qadevOOo/tests/java/mod/_streams/uno/MarkableOutputStream.java +++ b/qadevOOo/tests/java/mod/_streams/uno/MarkableOutputStream.java @@ -125,7 +125,7 @@ public class MarkableOutputStream extends TestCase { // all data types for writing to an XDataInputStream ArrayList<Object> data = new ArrayList<Object>() ; - data.add(new Boolean(true)) ; + data.add(Boolean.TRUE) ; data.add(new Byte((byte)123)) ; data.add(new Character((char)1234)) ; data.add(new Short((short)1234)) ; diff --git a/qadevOOo/tests/java/mod/_streams/uno/ObjectInputStream.java b/qadevOOo/tests/java/mod/_streams/uno/ObjectInputStream.java index 0ae322442b86..f6b098b04957 100644 --- a/qadevOOo/tests/java/mod/_streams/uno/ObjectInputStream.java +++ b/qadevOOo/tests/java/mod/_streams/uno/ObjectInputStream.java @@ -239,7 +239,7 @@ public class ObjectInputStream extends TestCase { // all data types for writing to an XDataInputStream ArrayList<Object> data = new ArrayList<Object>() ; - data.add(new Boolean(true)) ; + data.add(Boolean.TRUE) ; data.add(new Byte((byte)123)) ; data.add(new Character((char)1234)) ; data.add(new Short((short)1234)) ; diff --git a/qadevOOo/tests/java/mod/_streams/uno/ObjectOutputStream.java b/qadevOOo/tests/java/mod/_streams/uno/ObjectOutputStream.java index cc3a55f7444e..c6a250115bba 100644 --- a/qadevOOo/tests/java/mod/_streams/uno/ObjectOutputStream.java +++ b/qadevOOo/tests/java/mod/_streams/uno/ObjectOutputStream.java @@ -228,7 +228,7 @@ public class ObjectOutputStream extends TestCase { // all data types for writing to an XDataInputStream ArrayList<Object> data = new ArrayList<Object>() ; - data.add(new Boolean(true)) ; + data.add(Boolean.TRUE) ; data.add(new Byte((byte)123)) ; data.add(new Character((char)1234)) ; data.add(new Short((short)1234)) ; diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleIconChoiceCtrl.java b/qadevOOo/tests/java/mod/_svtools/AccessibleIconChoiceCtrl.java index 024fb6329eba..eec7e20fa3e4 100644 --- a/qadevOOo/tests/java/mod/_svtools/AccessibleIconChoiceCtrl.java +++ b/qadevOOo/tests/java/mod/_svtools/AccessibleIconChoiceCtrl.java @@ -225,9 +225,9 @@ public class AccessibleIconChoiceCtrl extends TestCase { TestEnvironment tEnv = new TestEnvironment(oObj); tEnv.addObjRelation("XAccessibleSelection.multiSelection", - new Boolean(false)); + Boolean.FALSE); tEnv.addObjRelation("XAccessibleSelection.OneAlwaysSelected", - new Boolean(true)); + Boolean.TRUE); String[] expectedStateNames = new String[] { "com.sun.star.accessibility.AccessibleStateType.ENABLED", diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleTabBarPageList.java b/qadevOOo/tests/java/mod/_svtools/AccessibleTabBarPageList.java index 05f7b207625b..38664a09ce90 100644 --- a/qadevOOo/tests/java/mod/_svtools/AccessibleTabBarPageList.java +++ b/qadevOOo/tests/java/mod/_svtools/AccessibleTabBarPageList.java @@ -153,10 +153,10 @@ public class AccessibleTabBarPageList extends TestCase { TestEnvironment tEnv = new TestEnvironment(oObj); tEnv.addObjRelation("XAccessibleSelection.multiSelection", - new Boolean(false)); + Boolean.FALSE); tEnv.addObjRelation("XAccessibleSelection.OneAlwaysSelected", - new Boolean(true)); + Boolean.TRUE); XLayerSupplier oLS = UnoRuntime.queryInterface(XLayerSupplier.class, xDoc); XInterface oLM = oLS.getLayerManager(); diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBox.java b/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBox.java index f1c5b63689e0..e4f97cbc67fe 100644 --- a/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBox.java +++ b/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBox.java @@ -213,7 +213,7 @@ public class AccessibleTreeListBox extends TestCase { }); tEnv.addObjRelation("XAccessibleSelection.multiSelection", - new Boolean(false)); + Boolean.FALSE); return tEnv; } diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBoxEntry.java b/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBoxEntry.java index 7e33393ef782..cac287433443 100644 --- a/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBoxEntry.java +++ b/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBoxEntry.java @@ -254,7 +254,7 @@ public class AccessibleTreeListBoxEntry extends TestCase { }); tEnv.addObjRelation("XAccessibleSelection.multiSelection", - new Boolean(false)); + Boolean.FALSE); tEnv.addObjRelation("XAccessibleText.Text", "Bibliography"); diff --git a/qadevOOo/tests/java/mod/_svx/AccessiblePresentationGraphicShape.java b/qadevOOo/tests/java/mod/_svx/AccessiblePresentationGraphicShape.java index 20e5423baa30..97508909dc9a 100644 --- a/qadevOOo/tests/java/mod/_svx/AccessiblePresentationGraphicShape.java +++ b/qadevOOo/tests/java/mod/_svx/AccessiblePresentationGraphicShape.java @@ -98,7 +98,7 @@ public class AccessiblePresentationGraphicShape extends TestCase { try { oShapeProps.setPropertyValue( "GraphicURL",util.utils.getFullTestURL("space-metal.jpg")); - oShapeProps.setPropertyValue("IsEmptyPresentationObject", new Boolean(false)); + oShapeProps.setPropertyValue("IsEmptyPresentationObject", Boolean.FALSE); } catch (com.sun.star.lang.WrappedTargetException e) { } catch (com.sun.star.lang.IllegalArgumentException e) { } catch (com.sun.star.beans.PropertyVetoException e) { diff --git a/qadevOOo/tests/java/mod/_svx/AccessiblePresentationOLEShape.java b/qadevOOo/tests/java/mod/_svx/AccessiblePresentationOLEShape.java index 4f8b3878c161..55565aa08118 100644 --- a/qadevOOo/tests/java/mod/_svx/AccessiblePresentationOLEShape.java +++ b/qadevOOo/tests/java/mod/_svx/AccessiblePresentationOLEShape.java @@ -94,7 +94,7 @@ public class AccessiblePresentationOLEShape extends TestCase { XPropertySet oShapeProps = UnoRuntime.queryInterface(XPropertySet.class,oShape); try { - oShapeProps.setPropertyValue("IsEmptyPresentationObject", new Boolean(false)); + oShapeProps.setPropertyValue("IsEmptyPresentationObject", Boolean.FALSE); } catch (com.sun.star.lang.WrappedTargetException e) { } catch (com.sun.star.lang.IllegalArgumentException e) { } catch (com.sun.star.beans.PropertyVetoException e) { @@ -106,7 +106,7 @@ public class AccessiblePresentationOLEShape extends TestCase { try { oShapeProps.setPropertyValue( "CLSID","12DCAE26-281F-416F-a234-c3086127382e"); - oShapeProps.setPropertyValue("IsEmptyPresentationObject", new Boolean(false)); + oShapeProps.setPropertyValue("IsEmptyPresentationObject", Boolean.FALSE); } catch (com.sun.star.lang.WrappedTargetException e) { } catch (com.sun.star.lang.IllegalArgumentException e) { } catch (com.sun.star.beans.PropertyVetoException e) { diff --git a/qadevOOo/tests/java/mod/_svx/AccessiblePresentationShape.java b/qadevOOo/tests/java/mod/_svx/AccessiblePresentationShape.java index 42c56abc0ece..88c40b885d74 100644 --- a/qadevOOo/tests/java/mod/_svx/AccessiblePresentationShape.java +++ b/qadevOOo/tests/java/mod/_svx/AccessiblePresentationShape.java @@ -99,7 +99,7 @@ public class AccessiblePresentationShape extends TestCase { try { shapeProps.setPropertyValue( - "IsEmptyPresentationObject", new Boolean(false)); + "IsEmptyPresentationObject", Boolean.FALSE); } catch (Exception e) {} new AccessibilityTools(); diff --git a/qadevOOo/tests/java/mod/_svx/GraphicExporter.java b/qadevOOo/tests/java/mod/_svx/GraphicExporter.java index d6a734bac182..b67f2ab547ac 100644 --- a/qadevOOo/tests/java/mod/_svx/GraphicExporter.java +++ b/qadevOOo/tests/java/mod/_svx/GraphicExporter.java @@ -207,7 +207,7 @@ public class GraphicExporter extends TestCase { log.println("adding ObjRelation for XFilter"); log.println("This Component doesn't really support the cancel method"); log.println("See #101725"); - tEnv.addObjRelation("NoFilter.cancel()", new Boolean(true)); + tEnv.addObjRelation("NoFilter.cancel()", Boolean.TRUE); final String hideMode = (String) tParam.get("soapi.test.hidewindows"); tEnv.addObjRelation("XFilter.Checker", diff --git a/qadevOOo/tests/java/mod/_svx/SvxGraphicObject.java b/qadevOOo/tests/java/mod/_svx/SvxGraphicObject.java index 0d9bca9525b9..92e5f3006a9e 100644 --- a/qadevOOo/tests/java/mod/_svx/SvxGraphicObject.java +++ b/qadevOOo/tests/java/mod/_svx/SvxGraphicObject.java @@ -244,7 +244,7 @@ public class SvxGraphicObject extends TestCase { log.println( " adding InstCreator object" ); tEnv.addObjRelation( "XTEXTINFO", new InstCreator( xDrawDoc, tDsc ) ); - tEnv.addObjRelation("NoShear",new Boolean(true)); + tEnv.addObjRelation("NoShear",Boolean.TRUE); return tEnv; diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleFooterView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleFooterView.java index b643744263b9..b7ce8d20e44b 100644 --- a/qadevOOo/tests/java/mod/_sw/SwAccessibleFooterView.java +++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleFooterView.java @@ -102,7 +102,7 @@ public class SwAccessibleFooterView extends TestCase { // changing/getting some properties try { log.println( "Switching on footer" ); - PropSet.setPropertyValue("FooterIsOn", new Boolean(true)); + PropSet.setPropertyValue("FooterIsOn", Boolean.TRUE); //change zoom value to 10% //footer should be in the vissible area of the document diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleHeaderView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleHeaderView.java index 6edc9808bf9c..7df2c3374bc0 100644 --- a/qadevOOo/tests/java/mod/_sw/SwAccessibleHeaderView.java +++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleHeaderView.java @@ -100,7 +100,7 @@ public class SwAccessibleHeaderView extends TestCase { // changing/getting some properties try { log.println( "Switching on header" ); - PropSet.setPropertyValue("HeaderIsOn", new Boolean(true)); + PropSet.setPropertyValue("HeaderIsOn", Boolean.TRUE); } catch ( com.sun.star.lang.WrappedTargetException e ) { e.printStackTrace(log); throw new StatusException("Couldn't set propertyValue...", e); diff --git a/qadevOOo/tests/java/mod/_sw/SwXHeadFootText.java b/qadevOOo/tests/java/mod/_sw/SwXHeadFootText.java index 866e0b3400e4..7e84f10dd40c 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXHeadFootText.java +++ b/qadevOOo/tests/java/mod/_sw/SwXHeadFootText.java @@ -148,9 +148,9 @@ public class SwXHeadFootText extends TestCase { // changing/getting some properties try { log.println( "Switching on header" ); - PropSet.setPropertyValue("HeaderIsOn", new Boolean(true)); + PropSet.setPropertyValue("HeaderIsOn", Boolean.TRUE); log.println( "Switching on footer" ); - PropSet.setPropertyValue("FooterIsOn", new Boolean(true)); + PropSet.setPropertyValue("FooterIsOn", Boolean.TRUE); log.println( "Get header text" ); oObj = UnoRuntime.queryInterface( XText.class, PropSet.getPropertyValue("HeaderText")); diff --git a/qadevOOo/tests/java/mod/_sw/SwXMailMerge.java b/qadevOOo/tests/java/mod/_sw/SwXMailMerge.java index adec0208fe73..fdcfa94b952d 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXMailMerge.java +++ b/qadevOOo/tests/java/mod/_sw/SwXMailMerge.java @@ -160,7 +160,7 @@ public class SwXMailMerge extends TestCase { oObjProps.setPropertyValue("DocumentURL", cTestDoc); oObjProps.setPropertyValue("OutputURL", cOutputURL); oObjProps.setPropertyValue("FileNamePrefix", "Author"); - oObjProps.setPropertyValue("FileNameFromColumn", new Boolean(false)); + oObjProps.setPropertyValue("FileNameFromColumn", Boolean.FALSE); oObjProps.setPropertyValue("Selection", new Object[0]); } catch (UnknownPropertyException e) { @@ -190,7 +190,7 @@ public class SwXMailMerge extends TestCase { vXJobArg0[4] = new NamedValue("DocumentURL", cTestDoc); vXJobArg0[5] = new NamedValue("OutputURL", cOutputURL); vXJobArg0[6] = new NamedValue("FileNamePrefix", "Identifier"); - vXJobArg0[7] = new NamedValue("FileNameFromColumn", new Boolean(true)); + vXJobArg0[7] = new NamedValue("FileNameFromColumn", Boolean.TRUE); //second Arguments vXJobArg1[0] = new NamedValue("DataSourceName", cDataSourceName); @@ -200,7 +200,7 @@ public class SwXMailMerge extends TestCase { new Short(MailMergeType.PRINTER)); vXJobArg1[4] = new NamedValue("DocumentURL", cTestDoc); vXJobArg1[5] = new NamedValue("FileNamePrefix", "Author"); - vXJobArg1[6] = new NamedValue("FileNameFromColumn", new Boolean(true)); + vXJobArg1[6] = new NamedValue("FileNameFromColumn", Boolean.TRUE); // third Arguments vXJobArg2[0] = new NamedValue("ActiveConnection", getLocalXConnection(Param)); @@ -212,7 +212,7 @@ public class SwXMailMerge extends TestCase { vXJobArg2[5] = new NamedValue("ResultSet", oResultSet); vXJobArg2[6] = new NamedValue("OutputURL", cOutputURL); vXJobArg2[7] = new NamedValue("FileNamePrefix", "Identifier"); - vXJobArg2[8] = new NamedValue("FileNameFromColumn", new Boolean(true)); + vXJobArg2[8] = new NamedValue("FileNameFromColumn", Boolean.TRUE); vXJobArg2[9] = new NamedValue("Selection", myBookMarks); vXJobArgs[0] = vXJobArg0; diff --git a/qadevOOo/tests/java/mod/_sw/SwXTableColumns.java b/qadevOOo/tests/java/mod/_sw/SwXTableColumns.java index a2a2a98a7b5f..2bc676bf9025 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTableColumns.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTableColumns.java @@ -114,7 +114,7 @@ public class SwXTableColumns extends TestCase { tEnv.addObjRelation("XTableColumns.XCellRange", UnoRuntime.queryInterface(XCellRange.class, oTable)); - tEnv.addObjRelation("XIndexAccess.getByIndex.mustBeNull", new Boolean(true)); + tEnv.addObjRelation("XIndexAccess.getByIndex.mustBeNull", Boolean.TRUE); return tEnv; } // finish method getTestEnvironment diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextPortion.java b/qadevOOo/tests/java/mod/_sw/SwXTextPortion.java index 87a25bfeca5c..b50cfb9439c6 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextPortion.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextPortion.java @@ -158,7 +158,7 @@ public class SwXTextPortion extends TestCase { TestEnvironment tEnv = new TestEnvironment( oObj ); log.println("adding ObjRelation TRO for TextContent"); - tEnv.addObjRelation("TRO", new Boolean(true)); + tEnv.addObjRelation("TRO", Boolean.TRUE); log.println("adding ObjectRelation 'PARA' for CharacterProperties"); tEnv.addObjRelation("PARA", paraP); diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextSection.java b/qadevOOo/tests/java/mod/_sw/SwXTextSection.java index ab0cd927b58c..bb6a5804b56a 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextSection.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextSection.java @@ -150,7 +150,7 @@ public class SwXTextSection extends TestCase { log.println( "adding InstCreator object" ); tEnv.addObjRelation( "XTEXTINFO", new InstCreator( xTextDoc, tDsc ) ); - tEnv.addObjRelation("TRO",new Boolean(true)); + tEnv.addObjRelation("TRO",Boolean.TRUE); try { TC = UnoRuntime.queryInterface(XTextColumns.class, diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextTable.java b/qadevOOo/tests/java/mod/_sw/SwXTextTable.java index 5dbdea9f32ec..25ea9652aa58 100644 --- a/qadevOOo/tests/java/mod/_sw/SwXTextTable.java +++ b/qadevOOo/tests/java/mod/_sw/SwXTextTable.java @@ -111,8 +111,8 @@ public class SwXTextTable extends TestCase { XPropertySet.class, oObj); try { - props.setPropertyValue("ChartRowAsLabel", new Boolean(true)); - props.setPropertyValue("ChartColumnAsLabel", new Boolean(true)); + props.setPropertyValue("ChartRowAsLabel", Boolean.TRUE); + props.setPropertyValue("ChartColumnAsLabel", Boolean.TRUE); } catch (Exception e) { e.printStackTrace(log); } diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleList.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleList.java index 9839db5ebeb7..1e92248952f5 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleList.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleList.java @@ -162,7 +162,7 @@ public class AccessibleList extends TestCase { TestEnvironment tEnv = new TestEnvironment(oObj); tEnv.addObjRelation("XAccessibleSelection.multiSelection", - new Boolean(false)); + Boolean.FALSE); final XAccessibleComponent acomp = UnoRuntime.queryInterface( XAccessibleComponent.class, diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenu.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenu.java index cfde728a1783..0caa8b236dbc 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenu.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenu.java @@ -149,10 +149,10 @@ public class AccessibleMenu extends TestCase { tEnv.addObjRelation("LimitedBounds", "yes"); tEnv.addObjRelation("XAccessibleSelection.OneAlwaysSelected", - new Boolean(false)); + Boolean.FALSE); tEnv.addObjRelation("XAccessibleSelection.multiSelection", - new Boolean(false)); + Boolean.FALSE); return tEnv; } diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuBar.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuBar.java index 661f2571d84f..2a595f1e8a86 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuBar.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuBar.java @@ -101,10 +101,10 @@ public class AccessibleMenuBar extends TestCase { }); tEnv.addObjRelation("XAccessibleSelection.OneAlwaysSelected", - new Boolean(false)); + Boolean.FALSE); tEnv.addObjRelation("XAccessibleSelection.multiSelection", - new Boolean(false)); + Boolean.FALSE); return tEnv; } diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuItem.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuItem.java index e7d780d83a3a..3ed873437632 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuItem.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleMenuItem.java @@ -150,7 +150,7 @@ public class AccessibleMenuItem extends TestCase { tEnv.addObjRelation("EditOnly", "Can't change or select Text in MenuBarItem"); - tEnv.addObjRelation("Destroy", new Boolean(true)); + tEnv.addObjRelation("Destroy", Boolean.TRUE); tEnv.addObjRelation("LimitedBounds", "yes"); diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessiblePopupMenu.java b/qadevOOo/tests/java/mod/_toolkit/AccessiblePopupMenu.java index bfa7ffbed1d7..6f165f85017b 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessiblePopupMenu.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessiblePopupMenu.java @@ -191,7 +191,7 @@ public class AccessiblePopupMenu extends TestCase { TestEnvironment tEnv = new TestEnvironment(oObj); tEnv.addObjRelation("XAccessibleSelection.multiSelection", - new Boolean(false)); + Boolean.FALSE); final XAccessibleSelection sel = UnoRuntime.queryInterface( XAccessibleSelection.class, diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java index b602b0d74162..08b35004b883 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java @@ -250,10 +250,10 @@ public class AccessibleTabControl extends TestCase { }); tEnv.addObjRelation("XAccessibleSelection.OneAlwaysSelected", - new Boolean(true)); + Boolean.TRUE); tEnv.addObjRelation("XAccessibleSelection.multiSelection", - new Boolean(false)); + Boolean.FALSE); return tEnv; } diff --git a/qadevOOo/tests/java/mod/_toolkit/TabControllerModel.java b/qadevOOo/tests/java/mod/_toolkit/TabControllerModel.java index ca73fa5aa1fa..b7e9e1d56d67 100644 --- a/qadevOOo/tests/java/mod/_toolkit/TabControllerModel.java +++ b/qadevOOo/tests/java/mod/_toolkit/TabControllerModel.java @@ -88,7 +88,7 @@ public class TabControllerModel extends TestCase { //Object Relation for XPersistObject - tEnv.addObjRelation("noPS", new Boolean(true)); + tEnv.addObjRelation("noPS", Boolean.TRUE); System.out.println("ImplementationName: " + utils.getImplName(oObj)); diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlFormattedField.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlFormattedField.java index 0cebbfd74aa5..94c5cfb1c6ed 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoControlFormattedField.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlFormattedField.java @@ -116,7 +116,7 @@ public class UnoControlFormattedField extends TestCase { aDevice = the_kit.createScreenCompatibleDevice(200, 200); aGraphic = aDevice.createGraphics(); - xPS.setPropertyValue("Spin", new Boolean(true)); + xPS.setPropertyValue("Spin", Boolean.TRUE); } catch (com.sun.star.uno.Exception e) { log.println("Couldn't get EditControl"); e.printStackTrace(log); diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoTreeControl.java b/qadevOOo/tests/java/mod/_toolkit/UnoTreeControl.java index 8215d7f6d119..b281fc10eb4c 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoTreeControl.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoTreeControl.java @@ -116,10 +116,10 @@ public class UnoTreeControl extends TestCase { XTreeControlModelSet.setPropertyValue( "Width", new Integer(253)); XTreeControlModelSet.setPropertyValue( "Height", new Integer(253) ); XTreeControlModelSet.setPropertyValue( "DataModel", mXTreeDataModel ); - XTreeControlModelSet.setPropertyValue( "ShowsRootHandles",new Boolean (false)); - XTreeControlModelSet.setPropertyValue( "ShowsHandles", new Boolean (false)); - XTreeControlModelSet.setPropertyValue( "RootDisplayed", new Boolean (true)); - XTreeControlModelSet.setPropertyValue( "Editable", new Boolean (true )); + XTreeControlModelSet.setPropertyValue( "ShowsRootHandles", Boolean.FALSE); + XTreeControlModelSet.setPropertyValue( "ShowsHandles", Boolean.FALSE); + XTreeControlModelSet.setPropertyValue( "RootDisplayed", Boolean.TRUE); + XTreeControlModelSet.setPropertyValue( "Editable", Boolean.TRUE); XNameContainer xDialogModelContainer = UnoRuntime.queryInterface(XNameContainer.class, xDialogModel); diff --git a/qadevOOo/tests/java/mod/_ucprmt/ProxyProvider.java b/qadevOOo/tests/java/mod/_ucprmt/ProxyProvider.java index 83e0f44c5c77..f5ab9345aa95 100644 --- a/qadevOOo/tests/java/mod/_ucprmt/ProxyProvider.java +++ b/qadevOOo/tests/java/mod/_ucprmt/ProxyProvider.java @@ -64,7 +64,7 @@ public class ProxyProvider extends TestCase { tEnv.addObjRelation("CONTENT1","vnd.sun.star.pkg:///user/work"); tEnv.addObjRelation("CONTENT1","vnd.sun.star.wfs://"); - tEnv.addObjRelation("NoCONTENT",new Boolean(true)); + tEnv.addObjRelation("NoCONTENT",Boolean.TRUE); return tEnv; } // finish method getTestEnvironment diff --git a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLSettingsExporter.java b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLSettingsExporter.java index 0c7223a869cd..29c2c3b398e1 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLSettingsExporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLSettingsExporter.java @@ -135,7 +135,7 @@ public class XMLSettingsExporter extends TestCase { XModel xDrawModel = UnoRuntime.queryInterface(XModel.class, xDrawDoc); XController xController = xDrawModel.getCurrentController(); XPropertySet xPropSet = UnoRuntime.queryInterface(XPropertySet.class, xController); - xPropSet.setPropertyValue("IsLayerMode", new Boolean("true")); + xPropSet.setPropertyValue("IsLayerMode", Boolean.TRUE); } catch (com.sun.star.uno.Exception e) { e.printStackTrace(log) ; diff --git a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLSettingsExporter.java b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLSettingsExporter.java index 5a50e3cf769a..22769601cc5f 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Impress/XMLSettingsExporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Impress/XMLSettingsExporter.java @@ -135,7 +135,7 @@ public class XMLSettingsExporter extends TestCase { NewDataValue = ! ((Boolean) xPropSet.getPropertyValue ("IsLayerMode")).booleanValue(); xPropSet.setPropertyValue("IsLayerMode", - new Boolean (NewDataValue)); + Boolean.valueOf(NewDataValue)); } catch (com.sun.star.uno.Exception e) { |