summaryrefslogtreecommitdiff
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
parent56ef5533fc1bce2134721ae64d4d6c18a3526a7a (diff)
java: use Boolean.valueOf instead of instantiating Boolean objects
Change-Id: Ie41d6b0170a035a694dd270c311a137fd1810e74
-rw-r--r--android/experimental/DocumentLoader/src/org/libreoffice/android/examples/DocumentLoader.java10
-rw-r--r--android/experimental/LibreOffice4Android/src/org/libreoffice/android/DocumentLoader.java12
-rw-r--r--android/experimental/LibreOffice4Android/src/org/libreoffice/ui/LibreOfficeUIActivity.java10
-rw-r--r--bean/com/sun/star/comp/beans/LocalOfficeWindow.java4
-rw-r--r--bean/com/sun/star/comp/beans/OOoBean.java2
-rw-r--r--bridges/source/jni_uno/java/com/sun/star/bridges/jni_uno/JNI_proxy.java2
-rw-r--r--chart2/qa/TestCaseOldAPI.java34
-rw-r--r--comphelper/qa/complex/comphelper/Map.java2
-rw-r--r--dbaccess/qa/complex/dbaccess/SingleSelectQueryComposer.java2
-rw-r--r--embeddedobj/test/Container1/EmbedContApp.java6
-rw-r--r--forms/qa/integration/forms/CellBinding.java8
-rw-r--r--forms/qa/integration/forms/ControlValidation.java6
-rw-r--r--forms/qa/integration/forms/FormControlTest.java10
-rw-r--r--forms/qa/integration/forms/ListBox.java2
-rw-r--r--forms/qa/integration/forms/ListSelection.java2
-rw-r--r--forms/qa/integration/forms/SingleControlValidation.java2
-rw-r--r--forms/qa/integration/forms/XMLFormSettings.java2
-rw-r--r--forms/qa/org/openoffice/xforms/Model.java2
-rw-r--r--framework/qa/complex/path_substitution/PathSubstitutionTest.java4
-rw-r--r--javaunohelper/com/sun/star/lib/uno/helper/PropertySet.java4
-rw-r--r--javaunohelper/com/sun/star/lib/uno/helper/PropertySetMixin.java6
-rw-r--r--javaunohelper/test/com/sun/star/lib/uno/helper/PropertySet_Test.java36
-rw-r--r--jurt/test/com/sun/star/lib/uno/protocols/urp/Marshaling_Test.java2
-rw-r--r--jurt/test/com/sun/star/uno/AnyConverter_Test.java2
-rw-r--r--nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/BaseDialog.java2
-rw-r--r--nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/controls/BaseControl.java2
-rw-r--r--nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/controls/LabeledControl.java2
-rw-r--r--odk/examples/DevelopersGuide/Charts/ChartInCalc.java4
-rw-r--r--odk/examples/DevelopersGuide/Charts/ChartInDraw.java6
-rw-r--r--odk/examples/DevelopersGuide/Charts/ListenAtCalcRangeInDraw.java4
-rw-r--r--odk/examples/DevelopersGuide/Config/ConfigExamples.java8
-rw-r--r--odk/examples/DevelopersGuide/Database/CodeSamples.java2
-rw-r--r--odk/examples/DevelopersGuide/Drawing/ChangeOrderDemo.java2
-rw-r--r--odk/examples/DevelopersGuide/Drawing/ControlAndSelectDemo.java2
-rw-r--r--odk/examples/DevelopersGuide/Drawing/CustomShowDemo.java2
-rw-r--r--odk/examples/DevelopersGuide/Drawing/DrawViewDemo.java4
-rw-r--r--odk/examples/DevelopersGuide/Drawing/DrawingDemo.java2
-rw-r--r--odk/examples/DevelopersGuide/Drawing/FillAndLineStyleDemo.java2
-rw-r--r--odk/examples/DevelopersGuide/Drawing/GluePointDemo.java2
-rw-r--r--odk/examples/DevelopersGuide/Drawing/GraphicExportDemo.java2
-rw-r--r--odk/examples/DevelopersGuide/Drawing/LayerDemo.java10
-rw-r--r--odk/examples/DevelopersGuide/Drawing/ObjectTransformationDemo.java2
-rw-r--r--odk/examples/DevelopersGuide/Drawing/PresentationDemo.java10
-rw-r--r--odk/examples/DevelopersGuide/Drawing/StyleDemo.java2
-rw-r--r--odk/examples/DevelopersGuide/Drawing/TextDemo.java2
-rw-r--r--odk/examples/DevelopersGuide/FirstSteps/FirstLoadComponent.java2
-rw-r--r--odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape.java8
-rw-r--r--odk/examples/DevelopersGuide/Forms/ControlLock.java2
-rw-r--r--odk/examples/DevelopersGuide/Forms/ControlValidation.java6
-rw-r--r--odk/examples/DevelopersGuide/Forms/DataAwareness.java6
-rw-r--r--odk/examples/DevelopersGuide/Forms/SalesFilter.java8
-rw-r--r--odk/examples/DevelopersGuide/Forms/SingleControlValidation.java2
-rw-r--r--odk/examples/DevelopersGuide/Forms/SpreadsheetValueBinding.java4
-rw-r--r--odk/examples/DevelopersGuide/GUI/MessageBox.java2
-rw-r--r--odk/examples/DevelopersGuide/GUI/SystemDialog.java2
-rw-r--r--odk/examples/DevelopersGuide/GUI/UnoDialogSample.java4
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java2
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/Linguistic/LinguisticExamples.java6
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/Number_Formats.java2
-rw-r--r--odk/examples/DevelopersGuide/Spreadsheet/ExampleDataPilotSource.java8
-rw-r--r--odk/examples/DevelopersGuide/Spreadsheet/GeneralTableSample.java2
-rw-r--r--odk/examples/DevelopersGuide/Spreadsheet/SpreadsheetSample.java16
-rw-r--r--odk/examples/DevelopersGuide/Spreadsheet/ViewSample.java6
-rw-r--r--odk/examples/DevelopersGuide/Text/TextDocuments.java10
-rw-r--r--odk/examples/DevelopersGuide/UCB/ResourceRemover.java2
-rw-r--r--odk/examples/java/ConverterServlet/ConverterServlet.java4
-rw-r--r--odk/examples/java/DocumentHandling/DocumentConverter.java4
-rw-r--r--odk/examples/java/DocumentHandling/DocumentSaver.java4
-rw-r--r--odk/examples/java/Drawing/SDraw.java2
-rw-r--r--odk/examples/java/EmbedDocument/Container1/EmbedContApp.java2
-rw-r--r--odk/examples/java/Spreadsheet/ChartTypeChange.java2
-rw-r--r--odk/examples/java/Spreadsheet/SCalc.java6
-rw-r--r--odk/examples/java/Storage/TestHelper.java6
-rw-r--r--odk/examples/java/Text/BookmarkInsertion.java2
-rw-r--r--odk/examples/java/Text/SWriter.java8
-rw-r--r--odk/examples/java/Text/StyleCreation.java2
-rw-r--r--package/qa/ofopxmlstorages/TestHelper.java4
-rw-r--r--package/qa/storages/RegressionTest_i27773.java2
-rw-r--r--package/qa/storages/TestHelper.java8
-rw-r--r--qadevOOo/runner/convwatch/GraphicalDifferenceCheck.java2
-rw-r--r--qadevOOo/runner/convwatch/OfficePrint.java2
-rw-r--r--qadevOOo/runner/graphical/OpenOfficePostscriptCreator.java2
-rw-r--r--qadevOOo/runner/util/ValueChanger.java2
-rw-r--r--qadevOOo/tests/java/ifc/awt/_UnoControlButtonModel.java6
-rw-r--r--qadevOOo/tests/java/ifc/awt/_UnoControlCheckBoxModel.java2
-rw-r--r--qadevOOo/tests/java/ifc/awt/_UnoControlComboBoxModel.java2
-rw-r--r--qadevOOo/tests/java/ifc/awt/_UnoControlCurrencyFieldModel.java2
-rw-r--r--qadevOOo/tests/java/ifc/awt/_UnoControlDateFieldModel.java6
-rw-r--r--qadevOOo/tests/java/ifc/awt/_UnoControlEditModel.java2
-rw-r--r--qadevOOo/tests/java/ifc/awt/_UnoControlFileControlModel.java2
-rw-r--r--qadevOOo/tests/java/ifc/awt/_UnoControlFormattedFieldModel.java4
-rw-r--r--qadevOOo/tests/java/ifc/awt/_UnoControlImageControlModel.java2
-rw-r--r--qadevOOo/tests/java/ifc/awt/_UnoControlListBoxModel.java2
-rw-r--r--qadevOOo/tests/java/ifc/awt/_UnoControlNumericFieldModel.java2
-rw-r--r--qadevOOo/tests/java/ifc/awt/_UnoControlPatternFieldModel.java2
-rw-r--r--qadevOOo/tests/java/ifc/awt/_UnoControlRadioButtonModel.java2
-rw-r--r--qadevOOo/tests/java/ifc/awt/_UnoControlTimeFieldModel.java2
-rw-r--r--qadevOOo/tests/java/ifc/chart/_BarDiagram.java6
-rw-r--r--qadevOOo/tests/java/ifc/chart/_Chart3DBarProperties.java4
-rw-r--r--qadevOOo/tests/java/ifc/chart/_ChartAxis.java14
-rw-r--r--qadevOOo/tests/java/ifc/chart/_ChartAxisXSupplier.java4
-rw-r--r--qadevOOo/tests/java/ifc/chart/_ChartAxisYSupplier.java4
-rw-r--r--qadevOOo/tests/java/ifc/chart/_ChartAxisZSupplier.java6
-rw-r--r--qadevOOo/tests/java/ifc/chart/_ChartTwoAxisXSupplier.java2
-rw-r--r--qadevOOo/tests/java/ifc/chart/_ChartTwoAxisYSupplier.java2
-rw-r--r--qadevOOo/tests/java/ifc/configuration/backend/_XLayerHandler.java2
-rw-r--r--qadevOOo/tests/java/ifc/configuration/backend/_XUpdateHandler.java2
-rw-r--r--qadevOOo/tests/java/ifc/drawing/_DrawingDocumentDrawView.java4
-rw-r--r--qadevOOo/tests/java/ifc/form/component/_GridControl.java2
-rw-r--r--qadevOOo/tests/java/ifc/sdb/_DataSource.java2
-rw-r--r--qadevOOo/tests/java/ifc/sheet/_XCellRangesQuery.java2
-rw-r--r--qadevOOo/tests/java/ifc/style/_CharacterProperties.java2
-rw-r--r--qadevOOo/tests/java/ifc/style/_ParagraphProperties.java6
-rw-r--r--qadevOOo/tests/java/ifc/style/_ParagraphPropertiesAsian.java6
-rw-r--r--qadevOOo/tests/java/ifc/table/_TableColumn.java2
-rw-r--r--qadevOOo/tests/java/ifc/text/_NumberingLevel.java42
-rw-r--r--qadevOOo/tests/java/ifc/text/_XPagePrintable.java2
-rw-r--r--qadevOOo/tests/java/ifc/util/_XSortable.java4
-rw-r--r--qadevOOo/tests/java/ifc/view/_XPrintJobBroadcaster.java2
-rw-r--r--qadevOOo/tests/java/ifc/view/_XPrintable.java2
-rw-r--r--qadevOOo/tests/java/mod/_dbaccess/ODatasourceBrowser.java2
-rw-r--r--qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java6
-rw-r--r--qadevOOo/tests/java/mod/_dbaccess/ORowSet.java2
-rw-r--r--qadevOOo/tests/java/mod/_forms/GenericModelTest.java2
-rw-r--r--qadevOOo/tests/java/mod/_forms/ODatabaseForm.java6
-rw-r--r--qadevOOo/tests/java/mod/_forms/ONumericControl.java2
-rw-r--r--qadevOOo/tests/java/mod/_jdbc/JDBCDriver.java2
-rw-r--r--qadevOOo/tests/java/mod/_lnn/Hyphenator.java2
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScAccessibleCell.java2
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewHeaderCell.java2
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScCellFieldObj.java2
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScChartObj.java2
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScDDELinkObj.java2
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScTableColumnObj.java2
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScTableSheetObj.java2
-rw-r--r--qadevOOo/tests/java/mod/_sch/AccFloor.java2
-rw-r--r--qadevOOo/tests/java/mod/_sch/AccStatisticsObject.java2
-rw-r--r--qadevOOo/tests/java/mod/_sch/AccWall.java2
-rw-r--r--qadevOOo/tests/java/mod/_sch/ChartLine.java2
-rw-r--r--qadevOOo/tests/java/mod/_sm/SmEditAccessible.java2
-rw-r--r--qadevOOo/tests/java/mod/_smplmail/SimpleSystemMail.java2
-rw-r--r--qadevOOo/tests/java/mod/_stm/DataInputStream.java2
-rw-r--r--qadevOOo/tests/java/mod/_stm/DataOutputStream.java2
-rw-r--r--qadevOOo/tests/java/mod/_stm/MarkableOutputStream.java2
-rw-r--r--qadevOOo/tests/java/mod/_stm/ObjectInputStream.java2
-rw-r--r--qadevOOo/tests/java/mod/_stm/ObjectOutputStream.java2
-rw-r--r--qadevOOo/tests/java/mod/_streams/uno/DataInputStream.java2
-rw-r--r--qadevOOo/tests/java/mod/_streams/uno/DataOutputStream.java2
-rw-r--r--qadevOOo/tests/java/mod/_streams/uno/MarkableOutputStream.java2
-rw-r--r--qadevOOo/tests/java/mod/_streams/uno/ObjectInputStream.java2
-rw-r--r--qadevOOo/tests/java/mod/_streams/uno/ObjectOutputStream.java2
-rw-r--r--qadevOOo/tests/java/mod/_svtools/AccessibleIconChoiceCtrl.java4
-rw-r--r--qadevOOo/tests/java/mod/_svtools/AccessibleTabBarPageList.java4
-rw-r--r--qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBox.java2
-rw-r--r--qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBoxEntry.java2
-rw-r--r--qadevOOo/tests/java/mod/_svx/AccessiblePresentationGraphicShape.java2
-rw-r--r--qadevOOo/tests/java/mod/_svx/AccessiblePresentationOLEShape.java4
-rw-r--r--qadevOOo/tests/java/mod/_svx/AccessiblePresentationShape.java2
-rw-r--r--qadevOOo/tests/java/mod/_svx/GraphicExporter.java2
-rw-r--r--qadevOOo/tests/java/mod/_svx/SvxGraphicObject.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwAccessibleFooterView.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwAccessibleHeaderView.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXHeadFootText.java4
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXMailMerge.java8
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTableColumns.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextPortion.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextSection.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextTable.java4
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/AccessibleList.java2
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/AccessibleMenu.java4
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/AccessibleMenuBar.java4
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/AccessibleMenuItem.java2
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/AccessiblePopupMenu.java2
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java4
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/TabControllerModel.java2
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlFormattedField.java2
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoTreeControl.java8
-rw-r--r--qadevOOo/tests/java/mod/_ucprmt/ProxyProvider.java2
-rw-r--r--qadevOOo/tests/java/mod/_xmloff/Draw/XMLSettingsExporter.java2
-rw-r--r--qadevOOo/tests/java/mod/_xmloff/Impress/XMLSettingsExporter.java2
-rw-r--r--sc/qa/complex/calcPreview/ViewForwarder.java2
-rw-r--r--scripting/examples/java/Highlight/HighlightText.java4
-rw-r--r--scripting/examples/java/Newsgroup/OfficeAttachment.java6
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/options/OfficeSettings.java8
-rw-r--r--scripting/workben/ifc/scripting/_XScriptSecurity.java12
-rw-r--r--scripting/workben/installer/IdeVersion.java2
-rw-r--r--scripting/workben/installer/Version.java2
-rw-r--r--sot/qa/complex/olesimplestorage/Test01.java2
-rw-r--r--sw/qa/complex/writer/LoadSaveTest.java2
-rw-r--r--sw/qa/complex/writer/TextPortionEnumerationTest.java2
-rw-r--r--swext/mediawiki/src/com/sun/star/wiki/Helper.java6
-rw-r--r--swext/mediawiki/src/com/sun/star/wiki/WikiEditSettingDialog.java14
-rw-r--r--swext/mediawiki/src/com/sun/star/wiki/WikiEditorImpl.java2
-rw-r--r--swext/mediawiki/src/com/sun/star/wiki/WikiOptionsEventHandlerImpl.java2
-rw-r--r--swext/mediawiki/src/com/sun/star/wiki/WikiPropDialog.java4
-rw-r--r--testtools/com/sun/star/comp/bridge/TestComponent.java2
-rw-r--r--toolkit/test/accessibility/AccessibleTextHandler.java2
-rw-r--r--toolkit/test/accessibility/EventQueue.java2
198 files changed, 402 insertions, 402 deletions
diff --git a/android/experimental/DocumentLoader/src/org/libreoffice/android/examples/DocumentLoader.java b/android/experimental/DocumentLoader/src/org/libreoffice/android/examples/DocumentLoader.java
index 96ae150e2aaf..a7a2214e792f 100644
--- a/android/experimental/DocumentLoader/src/org/libreoffice/android/examples/DocumentLoader.java
+++ b/android/experimental/DocumentLoader/src/org/libreoffice/android/examples/DocumentLoader.java
@@ -621,7 +621,7 @@ public class DocumentLoader
PropertyValue renderProps[] = new PropertyValue[3];
renderProps[0] = new PropertyValue();
renderProps[0].Name = "IsPrinter";
- renderProps[0].Value = new Boolean(true);
+ renderProps[0].Value = Boolean.TRUE;
renderProps[1] = new PropertyValue();
renderProps[1].Name = "RenderDevice";
renderProps[1].Value = bootstrapContext.dummySmallDevice;
@@ -821,13 +821,13 @@ public class DocumentLoader
PropertyValue loadProps[] = new PropertyValue[3];
loadProps[0] = new PropertyValue();
loadProps[0].Name = "Hidden";
- loadProps[0].Value = new Boolean(true);
+ loadProps[0].Value = Boolean.TRUE;
loadProps[1] = new PropertyValue();
loadProps[1].Name = "ReadOnly";
- loadProps[1].Value = new Boolean(true);
+ loadProps[1].Value = Boolean.TRUE;
loadProps[2] = new PropertyValue();
loadProps[2].Name = "Preview";
- loadProps[2].Value = new Boolean(true);
+ loadProps[2].Value = Boolean.TRUE;
long t0 = System.currentTimeMillis();
documentContext.doc = bootstrapContext.componentLoader.loadComponentFromURL(url, "_blank", 0, loadProps);
@@ -839,7 +839,7 @@ public class DocumentLoader
PropertyValue renderProps[] = new PropertyValue[3];
renderProps[0] = new PropertyValue();
renderProps[0].Name = "IsPrinter";
- renderProps[0].Value = new Boolean(true);
+ renderProps[0].Value = Boolean.TRUE;
renderProps[1] = new PropertyValue();
renderProps[1].Name = "RenderDevice";
renderProps[1].Value = bootstrapContext.dummySmallDevice;
diff --git a/android/experimental/LibreOffice4Android/src/org/libreoffice/android/DocumentLoader.java b/android/experimental/LibreOffice4Android/src/org/libreoffice/android/DocumentLoader.java
index d67d6e6e4da8..6c34eafef996 100644
--- a/android/experimental/LibreOffice4Android/src/org/libreoffice/android/DocumentLoader.java
+++ b/android/experimental/LibreOffice4Android/src/org/libreoffice/android/DocumentLoader.java
@@ -398,7 +398,7 @@ public class DocumentLoader
PropertyValue renderProps[] = new PropertyValue[3];
renderProps[0] = new PropertyValue();
renderProps[0].Name = "IsPrinter";
- renderProps[0].Value = new Boolean(true);
+ renderProps[0].Value = Boolean.TRUE;
renderProps[1] = new PropertyValue();
renderProps[1].Name = "RenderDevice";
renderProps[1].Value = dummySmallDevice;
@@ -487,7 +487,7 @@ public class DocumentLoader
PropertyValue renderProps[] = new PropertyValue[3];
renderProps[0] = new PropertyValue();
renderProps[0].Name = "IsPrinter";
- renderProps[0].Value = new Boolean(true);
+ renderProps[0].Value = Boolean.TRUE;
renderProps[1] = new PropertyValue();
renderProps[1].Name = "RenderDevice";
renderProps[1].Value = dummySmallDevice;
@@ -803,13 +803,13 @@ public class DocumentLoader
PropertyValue loadProps[] = new PropertyValue[3];
loadProps[0] = new PropertyValue();
loadProps[0].Name = "Hidden";
- loadProps[0].Value = new Boolean(true);
+ loadProps[0].Value = Boolean.TRUE;
loadProps[1] = new PropertyValue();
loadProps[1].Name = "ReadOnly";
- loadProps[1].Value = new Boolean(true);
+ loadProps[1].Value = Boolean.TRUE;
loadProps[2] = new PropertyValue();
loadProps[2].Name = "Preview";
- loadProps[2].Value = new Boolean(true);
+ loadProps[2].Value = Boolean.TRUE;
long t0 = System.currentTimeMillis();
doc = componentLoader.loadComponentFromURL(url, "_blank", 0, loadProps);
@@ -833,7 +833,7 @@ public class DocumentLoader
PropertyValue renderProps[] = new PropertyValue[3];
renderProps[0] = new PropertyValue();
renderProps[0].Name = "IsPrinter";
- renderProps[0].Value = new Boolean(true);
+ renderProps[0].Value = Boolean.TRUE;
renderProps[1] = new PropertyValue();
renderProps[1].Name = "RenderDevice";
renderProps[1].Value = dummySmallDevice;
diff --git a/android/experimental/LibreOffice4Android/src/org/libreoffice/ui/LibreOfficeUIActivity.java b/android/experimental/LibreOffice4Android/src/org/libreoffice/ui/LibreOfficeUIActivity.java
index 029db572d5a5..f573eb7b1849 100644
--- a/android/experimental/LibreOffice4Android/src/org/libreoffice/ui/LibreOfficeUIActivity.java
+++ b/android/experimental/LibreOffice4Android/src/org/libreoffice/ui/LibreOfficeUIActivity.java
@@ -662,7 +662,7 @@ class ListItemAdapter implements ListAdapter{
PropertyValue renderProps[] = new PropertyValue[3];
renderProps[0] = new PropertyValue();
renderProps[0].Name = "IsPrinter";
- renderProps[0].Value = new Boolean(true);
+ renderProps[0].Value = Boolean.TRUE;
renderProps[1] = new PropertyValue();
renderProps[1].Name = "RenderDevice";
renderProps[1].Value = dummySmallDevice;
@@ -781,13 +781,13 @@ class ListItemAdapter implements ListAdapter{
PropertyValue loadProps[] = new PropertyValue[3];
loadProps[0] = new PropertyValue();
loadProps[0].Name = "Hidden";
- loadProps[0].Value = new Boolean(true);
+ loadProps[0].Value = Boolean.TRUE;
loadProps[1] = new PropertyValue();
loadProps[1].Name = "ReadOnly";
- loadProps[1].Value = new Boolean(true);
+ loadProps[1].Value = Boolean.TRUE;
loadProps[2] = new PropertyValue();
loadProps[2].Name = "Preview";
- loadProps[2].Value = new Boolean(true);
+ loadProps[2].Value = Boolean.TRUE;
t0 = System.currentTimeMillis();
doc = componentLoader.loadComponentFromURL(url, "_blank", 0, loadProps);
@@ -812,7 +812,7 @@ class ListItemAdapter implements ListAdapter{
PropertyValue renderProps[] = new PropertyValue[3];
renderProps[0] = new PropertyValue();
renderProps[0].Name = "IsPrinter";
- renderProps[0].Value = new Boolean(true);
+ renderProps[0].Value = Boolean.TRUE;
renderProps[1] = new PropertyValue();
renderProps[1].Name = "RenderDevice";
renderProps[1].Value = dummySmallDevice;
diff --git a/bean/com/sun/star/comp/beans/LocalOfficeWindow.java b/bean/com/sun/star/comp/beans/LocalOfficeWindow.java
index 2cbde53431f8..e82061737c75 100644
--- a/bean/com/sun/star/comp/beans/LocalOfficeWindow.java
+++ b/bean/com/sun/star/comp/beans/LocalOfficeWindow.java
@@ -259,7 +259,7 @@ public class LocalOfficeWindow
NamedValue window = new NamedValue(
"WINDOW", new Any(new Type(Long.class), new Long(getNativeWindow())));
NamedValue xembed = new NamedValue(
- "XEMBED", new Any(new Type(Boolean.class), new Boolean(false)));
+ "XEMBED", new Any(new Type(Boolean.class), Boolean.FALSE));
if (getNativeWindowSystemType() == SystemDependent.SYSTEM_XWINDOW )
{
@@ -270,7 +270,7 @@ public class LocalOfficeWindow
{
xembed = new NamedValue(
"XEMBED",
- new Any(new Type(Boolean.class), new Boolean(true)));
+ new Any(new Type(Boolean.class), Boolean.TRUE));
}
}
return new Any(
diff --git a/bean/com/sun/star/comp/beans/OOoBean.java b/bean/com/sun/star/comp/beans/OOoBean.java
index b6504fa733bd..1f3612ffa166 100644
--- a/bean/com/sun/star/comp/beans/OOoBean.java
+++ b/bean/com/sun/star/comp/beans/OOoBean.java
@@ -837,7 +837,7 @@ xLayoutManager.showElement("private:resource/menubar/menubar");
}
// notify change
- firePropertyChange( aProperty, new Boolean(bOldValue), new Boolean(bNewValue) );
+ firePropertyChange( aProperty, Boolean.valueOf(bOldValue), Boolean.valueOf(bNewValue) );
}
}
diff --git a/bridges/source/jni_uno/java/com/sun/star/bridges/jni_uno/JNI_proxy.java b/bridges/source/jni_uno/java/com/sun/star/bridges/jni_uno/JNI_proxy.java
index 74f7c4a880dd..8f8727256d82 100644
--- a/bridges/source/jni_uno/java/com/sun/star/bridges/jni_uno/JNI_proxy.java
+++ b/bridges/source/jni_uno/java/com/sun/star/bridges/jni_uno/JNI_proxy.java
@@ -210,7 +210,7 @@ public final class JNI_proxy implements java.lang.reflect.InvocationHandler
}
private Boolean isSame(Object obj) {
- return new Boolean(obj != null
+ return Boolean.valueOf(obj != null
&& m_oid.equals(UnoRuntime.generateOid(obj)));
}
}
diff --git a/chart2/qa/TestCaseOldAPI.java b/chart2/qa/TestCaseOldAPI.java
index 1c61e339c3b2..53b6ac30edc6 100644
--- a/chart2/qa/TestCaseOldAPI.java
+++ b/chart2/qa/TestCaseOldAPI.java
@@ -148,7 +148,7 @@ public class TestCaseOldAPI extends ComplexTestCase {
XPropertySet xDocProp = UnoRuntime.queryInterface(
XPropertySet.class, mxOldDoc );
assure( "Chart Document is no XPropertySet", xDocProp != null );
- xDocProp.setPropertyValue( "HasMainTitle", new Boolean( true ));
+ xDocProp.setPropertyValue( "HasMainTitle", Boolean.TRUE);
assure( "Property HasMainTitle", AnyConverter.toBoolean(
xDocProp.getPropertyValue( "HasMainTitle" )));
@@ -198,7 +198,7 @@ public class TestCaseOldAPI extends ComplexTestCase {
XPropertySet xDocProp = UnoRuntime.queryInterface(
XPropertySet.class, mxOldDoc );
assure( "Chart Document is no XPropertySet", xDocProp != null );
- xDocProp.setPropertyValue( "HasSubTitle", new Boolean( true ));
+ xDocProp.setPropertyValue( "HasSubTitle", Boolean.TRUE);
assure( "Property HasSubTitle", AnyConverter.toBoolean(
xDocProp.getPropertyValue( "HasSubTitle" )));
@@ -267,14 +267,14 @@ public class TestCaseOldAPI extends ComplexTestCase {
// y-axis
boolean bFirstYAxisText = false;
- xProp.setPropertyValue( "HasYAxisDescription", new Boolean( bFirstYAxisText ));
+ xProp.setPropertyValue( "HasYAxisDescription", Boolean.valueOf( bFirstYAxisText ));
boolean bNewFirstYAxisText = AnyConverter.toBoolean(
xProp.getPropertyValue( "HasYAxisDescription" ));
assure( "Removing description of first y-axis", bNewFirstYAxisText == bFirstYAxisText );
// second y-axis
boolean bSecondaryYAxis = true;
- xProp.setPropertyValue( "HasSecondaryYAxis", new Boolean( bSecondaryYAxis ));
+ xProp.setPropertyValue( "HasSecondaryYAxis", Boolean.valueOf( bSecondaryYAxis ));
boolean bNewSecYAxisValue = AnyConverter.toBoolean(
xProp.getPropertyValue( "HasSecondaryYAxis" ));
assure( "Adding a second y-axis does not work", bNewSecYAxisValue == bSecondaryYAxis );
@@ -347,7 +347,7 @@ public class TestCaseOldAPI extends ComplexTestCase {
fMax1 = AnyConverter.toDouble( oMax );
log.println( "Maximum retrieved: " + fMax1 );
//todo: the view has to be built before there is an explicit value
- xProp.setPropertyValue( "AutoMax", new Boolean( false ));
+ xProp.setPropertyValue( "AutoMax", Boolean.FALSE);
oMax = xProp.getPropertyValue( "Max" );
assure( "No Maximum set", AnyConverter.isDouble( oMax ));
fMax2 = AnyConverter.toDouble( oMax );
@@ -365,7 +365,7 @@ public class TestCaseOldAPI extends ComplexTestCase {
AnyConverter.toDouble( xProp.getPropertyValue( "Max" )),
nNewMax ));
- xProp.setPropertyValue( "AutoMin", new Boolean( true ));
+ xProp.setPropertyValue( "AutoMin", Boolean.TRUE);
assure( "AutoMin is off", AnyConverter.toBoolean( xProp.getPropertyValue( "AutoMin" )) );
xProp.setPropertyValue( "Origin", new Double( nNewOrigin ));
@@ -373,16 +373,16 @@ public class TestCaseOldAPI extends ComplexTestCase {
approxEqual(
AnyConverter.toDouble( xProp.getPropertyValue( "Origin" )),
nNewOrigin ));
- xProp.setPropertyValue( "AutoOrigin", new Boolean( true ));
+ xProp.setPropertyValue( "AutoOrigin", Boolean.TRUE);
assure( "AutoOrigin is off", AnyConverter.toBoolean( xProp.getPropertyValue( "AutoOrigin" )) );
Object oOrigin = xProp.getPropertyValue( "Origin" );
assure( "No Origin set", AnyConverter.isDouble( oOrigin ));
log.println( "Origin retrieved: " + AnyConverter.toDouble( oOrigin ));
- xProp.setPropertyValue( "Logarithmic", new Boolean( true ));
+ xProp.setPropertyValue( "Logarithmic", Boolean.TRUE);
assure( "Scaling is not logarithmic",
AnyConverter.toBoolean( xProp.getPropertyValue( "Logarithmic" )) );
- xProp.setPropertyValue( "Logarithmic", new Boolean( false ));
+ xProp.setPropertyValue( "Logarithmic", Boolean.FALSE);
assure( "Scaling is not logarithmic",
! AnyConverter.toBoolean( xProp.getPropertyValue( "Logarithmic" )) );
@@ -413,7 +413,7 @@ public class TestCaseOldAPI extends ComplexTestCase {
assure( "Property StepHelp",
AnyConverter.toDouble( xProp.getPropertyValue( "StepHelp" )) == fStepHelp );
- xProp.setPropertyValue( "DisplayLabels", new Boolean( false ));
+ xProp.setPropertyValue( "DisplayLabels", Boolean.FALSE);
assure( "Property DisplayLabels", ! AnyConverter.toBoolean(
xProp.getPropertyValue( "DisplayLabels" )));
}
@@ -529,17 +529,17 @@ public class TestCaseOldAPI extends ComplexTestCase {
XPropertySet.class, xDia );
assure( "Diagram is no XPropertySet", xDiaProp != null );
- xDiaProp.setPropertyValue( "Stacked", new Boolean( true ));
+ xDiaProp.setPropertyValue( "Stacked", Boolean.TRUE);
assure( "StackMode could not be set correctly",
AnyConverter.toBoolean(
xDiaProp.getPropertyValue( "Stacked" )));
- xDiaProp.setPropertyValue( "Dim3D", new Boolean( false ));
+ xDiaProp.setPropertyValue( "Dim3D", Boolean.FALSE);
assure( "Dim3D could not be set correctly",
! AnyConverter.toBoolean(
xDiaProp.getPropertyValue( "Dim3D" )));
- xDiaProp.setPropertyValue( "Vertical", new Boolean( true ));
+ xDiaProp.setPropertyValue( "Vertical", Boolean.TRUE);
assure( "Vertical could not be set correctly",
AnyConverter.toBoolean(
xDiaProp.getPropertyValue( "Vertical" )));
@@ -646,7 +646,7 @@ public class TestCaseOldAPI extends ComplexTestCase {
xHatchTable.insertByName( aHatchName, aHatch );
xProp.setPropertyValue( "FillHatchName", aHatchName );
xProp.setPropertyValue( "FillStyle", FillStyle.HATCH );
- xProp.setPropertyValue( "FillBackground", new Boolean( true ));
+ xProp.setPropertyValue( "FillBackground", Boolean.TRUE);
String aNewHatchName = AnyConverter.toString( xProp.getPropertyValue( "FillHatchName" ));
assure( "HatchName", aNewHatchName.equals( aHatchName ));
Hatch aNewHatch = (Hatch) AnyConverter.toObject(
@@ -677,7 +677,7 @@ public class TestCaseOldAPI extends ComplexTestCase {
XPropertySet xProp = xDia.getDataRowProperties( 0 );
assure( "No DataRowProperties for first series", xProp != null );
- xProp.setPropertyValue( "MeanValue", new Boolean( true ));
+ xProp.setPropertyValue( "MeanValue", Boolean.TRUE);
assure( "No MeanValue", AnyConverter.toBoolean( xProp.getPropertyValue( "MeanValue" )) );
}
catch( Exception ex )
@@ -764,10 +764,10 @@ public class TestCaseOldAPI extends ComplexTestCase {
XPropertySet.class, xDia );
assure( "Diagram is no XPropertySet", xDiaProp != null );
- xDiaProp.setPropertyValue( "Volume", new Boolean( true ));
+ xDiaProp.setPropertyValue( "Volume", Boolean.TRUE);
assure( "Has Volume", AnyConverter.toBoolean( xDiaProp.getPropertyValue( "Volume" )));
- xDiaProp.setPropertyValue( "UpDown", new Boolean( true ));
+ xDiaProp.setPropertyValue( "UpDown", Boolean.TRUE);
assure( "Has UpDown", AnyConverter.toBoolean( xDiaProp.getPropertyValue( "UpDown" )));
// MinMaxLine
diff --git a/comphelper/qa/complex/comphelper/Map.java b/comphelper/qa/complex/comphelper/Map.java
index 062179223823..6d622a7dfb1e 100644
--- a/comphelper/qa/complex/comphelper/Map.java
+++ b/comphelper/qa/complex/comphelper/Map.java
@@ -234,7 +234,7 @@ public class Map /* extends complexlib.ComplexTestCase */
Object someValue = null;
switch ( _pos )
{
- case 0: someValue = new Boolean( false ); break;
+ case 0: someValue = Boolean.FALSE; break;
case 1: someValue = new Short( (short)0 ); break;
case 2: someValue = new Integer( 0 ); break;
case 3: someValue = new Long( 0 ); break;
diff --git a/dbaccess/qa/complex/dbaccess/SingleSelectQueryComposer.java b/dbaccess/qa/complex/dbaccess/SingleSelectQueryComposer.java
index fc9a5a60bef0..7cb054b38dff 100644
--- a/dbaccess/qa/complex/dbaccess/SingleSelectQueryComposer.java
+++ b/dbaccess/qa/complex/dbaccess/SingleSelectQueryComposer.java
@@ -278,7 +278,7 @@ public class SingleSelectQueryComposer extends CRMBasedTestCase
final Object initArgs[] =
{
- new NamedValue("AutomaticAddition", Boolean.valueOf(true))
+ new NamedValue("AutomaticAddition", Boolean.TRUE)
};
final String serviceName = "com.sun.star.beans.PropertyBag";
final XPropertyContainer filter = UnoRuntime.queryInterface(XPropertyContainer.class, getMSF().createInstanceWithArguments(serviceName, initArgs));
diff --git a/embeddedobj/test/Container1/EmbedContApp.java b/embeddedobj/test/Container1/EmbedContApp.java
index 6eb9267f1e55..54f824c4957c 100644
--- a/embeddedobj/test/Container1/EmbedContApp.java
+++ b/embeddedobj/test/Container1/EmbedContApp.java
@@ -1314,7 +1314,7 @@ public class EmbedContApp extends Applet
aMedDescr[0].Name = "URL";
aMedDescr[0].Value = (Object) aLinkURL;
aMedDescr[1].Name = "ReadOnly";
- aMedDescr[1].Value = (Object) new Boolean( false );
+ aMedDescr[1].Value = (Object) Boolean.FALSE;
Object oEmbObj = xLinkCreator.createInstanceLink( m_xStorage, "EmbedSub", aMedDescr, new PropertyValue[0] );
xEmbObj = (XEmbeddedObject)UnoRuntime.queryInterface( XEmbeddedObject.class, oEmbObj );
}
@@ -1348,7 +1348,7 @@ public class EmbedContApp extends Applet
aMedDescr[0].Name = "URL";
aMedDescr[0].Value = (Object) aFileURI;
aMedDescr[1].Name = "ReadOnly";
- aMedDescr[1].Value = (Object) new Boolean( false );
+ aMedDescr[1].Value = (Object) Boolean.FALSE;
Object oEmbObj = xEmbedCreator.createInstanceInitFromMediaDescriptor( m_xStorage,
"EmbedSub",
aMedDescr,
@@ -1460,7 +1460,7 @@ public class EmbedContApp extends Applet
PropertyValue aProps[] = { new PropertyValue() };
aProps[0].Name = "StoreVisualReplacement";
- aProps[0].Value = new Boolean( m_bStoreVisRepl );
+ aProps[0].Value = Boolean.valueOf( m_bStoreVisRepl );
xPersist.storeAsEntry( xTargetStorage, "EmbedSub", new PropertyValue[0], aProps );
xPersist.saveCompleted( true );
diff --git a/forms/qa/integration/forms/CellBinding.java b/forms/qa/integration/forms/CellBinding.java
index 784355b89173..e2dd6e86a400 100644
--- a/forms/qa/integration/forms/CellBinding.java
+++ b/forms/qa/integration/forms/CellBinding.java
@@ -215,7 +215,7 @@ public class CellBinding extends complexlib.ComplexTestCase
{
XPropertySet checkBox = m_formLayer.createControlAndShape( "DatabaseCheckBox", 30, 59, 40, 4 );
checkBox.setPropertyValue( "Label", "check box" );
- checkBox.setPropertyValue( "TriState", new Boolean( true ) );
+ checkBox.setPropertyValue( "TriState", Boolean.TRUE );
short col = (short)0;
short row = (short)13;
@@ -245,7 +245,7 @@ public class CellBinding extends complexlib.ComplexTestCase
XPropertySet checkBox = m_formLayer.createControlAndShape( "DatabaseCheckBox", 30, 68, 40, 4 );
checkBox.setPropertyValue( "Label", "check box with ref value" );
- checkBox.setPropertyValue( "TriState", new Boolean( true ) );
+ checkBox.setPropertyValue( "TriState", Boolean.TRUE );
checkBox.setPropertyValue( "RefValue", refValue );
short col = (short)0;
@@ -276,7 +276,7 @@ public class CellBinding extends complexlib.ComplexTestCase
public void checkListBoxBinding( ) throws com.sun.star.uno.Exception, java.lang.Exception
{
XPropertySet listBox = m_formLayer.createControlAndShape( "DatabaseListBox", 30, 80, 40, 6 );
- listBox.setPropertyValue( "Dropdown", new Boolean( true ) );
+ listBox.setPropertyValue( "Dropdown", Boolean.TRUE );
listBox.setPropertyValue( "StringItemList", new String[] { "Apples", "Oranges", "Peaches" } );
short col = (short)0;
@@ -317,7 +317,7 @@ public class CellBinding extends complexlib.ComplexTestCase
public void checkListBoxIndexBinding() throws com.sun.star.uno.Exception, java.lang.Exception
{
XPropertySet listBox = m_formLayer.createControlAndShape( "DatabaseListBox", 30, 94, 40, 6 );
- listBox.setPropertyValue( "Dropdown", new Boolean( true ) );
+ listBox.setPropertyValue( "Dropdown", Boolean.TRUE );
listBox.setPropertyValue( "StringItemList", new String[] { "Pears", "Bananas", "Strawberries" } );
short col = (short)0;
diff --git a/forms/qa/integration/forms/ControlValidation.java b/forms/qa/integration/forms/ControlValidation.java
index 6946307578ba..c4994c0bbc60 100644
--- a/forms/qa/integration/forms/ControlValidation.java
+++ b/forms/qa/integration/forms/ControlValidation.java
@@ -119,21 +119,21 @@ public class ControlValidation extends complexlib.ComplexTestCase implements com
validation = new SingleControlValidation( m_document, 5, 55, "DatabaseDateField", new DateValidator() );
validation.setExplanatoryText( "Please enter a date in the current month" );
- validation.getInputField().setPropertyValue( "Dropdown", new Boolean( true ) );
+ validation.getInputField().setPropertyValue( "Dropdown", Boolean.TRUE );
validation = new SingleControlValidation( m_document, 90, 55, "DatabaseTimeField", new TimeValidator() );
validation.setExplanatoryText( "Please enter a time. Valid values are all full hours." );
validation = new SingleControlValidation( m_document, 5, 110, "DatabaseCheckBox", new BooleanValidator( false ) );
validation.setExplanatoryText( "Please check (well, or uncheck) the box. Don't leave it in indetermined state." );
- validation.getInputField().setPropertyValue( "TriState", new Boolean( true ) );
+ validation.getInputField().setPropertyValue( "TriState", Boolean.TRUE );
validation = new SingleControlValidation( m_document, 90, 110, "DatabaseRadioButton", new BooleanValidator( true ), 3, 0 );
validation.setExplanatoryText( "Please check any but the first button" );
validation = new SingleControlValidation( m_document, 5, 165, "DatabaseListBox", new ListSelectionValidator( ), 1, 24 );
validation.setExplanatoryText( "Please select not more than two entries." );
- validation.getInputField().setPropertyValue( "MultiSelection", new Boolean( true ) );
+ validation.getInputField().setPropertyValue( "MultiSelection", Boolean.TRUE );
validation.getInputField().setPropertyValue( "StringItemList", new String[] { "first", "second", "third", "forth", "fivth" } );
// switch to alive mode
diff --git a/forms/qa/integration/forms/FormControlTest.java b/forms/qa/integration/forms/FormControlTest.java
index b6932e316a7b..bf741e0a8de4 100644
--- a/forms/qa/integration/forms/FormControlTest.java
+++ b/forms/qa/integration/forms/FormControlTest.java
@@ -487,7 +487,7 @@ public class FormControlTest extends complexlib.ComplexTestCase implements XSQLE
XPropertySet dataSourceSettings = UnoRuntime.queryInterface( XPropertySet.class,
m_dataSourceProps.getPropertyValue( "Settings" ) );
- dataSourceSettings.setPropertyValue( "FormsCheckRequiredFields", new Boolean( false ) );
+ dataSourceSettings.setPropertyValue( "FormsCheckRequiredFields", Boolean.FALSE );
return m_dataSource != null;
}
@@ -527,13 +527,13 @@ public class FormControlTest extends complexlib.ComplexTestCase implements XSQLE
m_formLayer.insertControlLine( "DatabaseTextField", "dummy", "", 150 );
xIDField.setPropertyValue( "DecimalAccuracy", new Short( (short)0 ) );
- xImageField.setPropertyValue( "ScaleImage", new Boolean( true) );
- xImageField.setPropertyValue( "Tabstop", new Boolean( true ) );
- xCheckBox.setPropertyValue( "TriState", new Boolean( true ) );
+ xImageField.setPropertyValue( "ScaleImage", Boolean.TRUE );
+ xImageField.setPropertyValue( "Tabstop", Boolean.TRUE );
+ xCheckBox.setPropertyValue( "TriState", Boolean.TRUE );
xCheckBox.setPropertyValue( "DefaultState", new Short( (short)2 ) );
xTimeField.setPropertyValue( "TimeFormat", new Short( (short)1 ) );
xTimeField.setPropertyValue( "TimeMax", new Integer( 23595999 ) );
- xReqField.setPropertyValue( "ConvertEmptyToNull", new Boolean( false ) );
+ xReqField.setPropertyValue( "ConvertEmptyToNull", Boolean.FALSE );
// the logical form
m_masterForm = (XPropertySet)dbfTools.getParent( xIDField, XPropertySet.class );
diff --git a/forms/qa/integration/forms/ListBox.java b/forms/qa/integration/forms/ListBox.java
index 8d3bcc7d5d0d..60f115df6221 100644
--- a/forms/qa/integration/forms/ListBox.java
+++ b/forms/qa/integration/forms/ListBox.java
@@ -273,7 +273,7 @@ public class ListBox extends TestCase
final String columnFKName = fieldTypes[i] + "_fk";
final String columnPKName = fieldTypes[i] + "_pk";
XPropertySet listBoxModel = m_formLayer.insertControlLine( "DatabaseListBox", columnFKName, null, 10, 20 + 10*i, 6 );
- listBoxModel.setPropertyValue( "Dropdown", new Boolean( true ) );
+ listBoxModel.setPropertyValue( "Dropdown", Boolean.TRUE );
listBoxModel.setPropertyValue( "ListSourceType", ListSourceType.SQL );
listBoxModel.setPropertyValue( "ListSource", new String[] { "SELECT \"content\", \"" + columnPKName +
"\" FROM \"" + tableName + "\"" } );
diff --git a/forms/qa/integration/forms/ListSelection.java b/forms/qa/integration/forms/ListSelection.java
index 17a63bde458e..ee7d7ca4606a 100644
--- a/forms/qa/integration/forms/ListSelection.java
+++ b/forms/qa/integration/forms/ListSelection.java
@@ -247,7 +247,7 @@ public class ListSelection extends integration.forms.TestCase
// and a list box
XPropertySet listBox = m_formLayer.createControlAndShape( "ListBox", 50, 10, 40, 6 );
- listBox.setPropertyValue( "Dropdown", new Boolean( true ) );
+ listBox.setPropertyValue( "Dropdown", Boolean.TRUE );
listBox.setPropertyValue( "StringItemList", newSheetNames );
listBox.setPropertyValue( "Name", "ListBox" );
diff --git a/forms/qa/integration/forms/SingleControlValidation.java b/forms/qa/integration/forms/SingleControlValidation.java
index c0e1508bf013..160d23e867c9 100644
--- a/forms/qa/integration/forms/SingleControlValidation.java
+++ b/forms/qa/integration/forms/SingleControlValidation.java
@@ -78,7 +78,7 @@ public class SingleControlValidation implements XFormComponentValidityListener
try
{
m_inputLabel = m_formLayer.createControlAndShape( "FixedText", columnPos, rowPos, 70, 12, null );
- m_inputLabel.setPropertyValue( "MultiLine", new Boolean( true ) );
+ m_inputLabel.setPropertyValue( "MultiLine", Boolean.TRUE );
com.sun.star.awt.FontDescriptor font = (com.sun.star.awt.FontDescriptor)m_inputLabel.getPropertyValue( "FontDescriptor" );
font.Weight = com.sun.star.awt.FontWeight.BOLD;
diff --git a/forms/qa/integration/forms/XMLFormSettings.java b/forms/qa/integration/forms/XMLFormSettings.java
index 31ab48e0a790..c23e648f3d5c 100644
--- a/forms/qa/integration/forms/XMLFormSettings.java
+++ b/forms/qa/integration/forms/XMLFormSettings.java
@@ -153,7 +153,7 @@ public class XMLFormSettings extends complexlib.ComplexTestCase
XPropertySet dateControl = m_formLayer.createControlAndShape(
"DatabaseDateField", 40, 26, 25, 6 );
- dateControl.setPropertyValue( "Dropdown", new Boolean( true ) );
+ dateControl.setPropertyValue( "Dropdown", Boolean.TRUE );
impl_bind( dateControl, m_dateBinding );
m_document.getCurrentView( ).toggleFormDesignMode( );
diff --git a/forms/qa/org/openoffice/xforms/Model.java b/forms/qa/org/openoffice/xforms/Model.java
index c8e5c880042a..a573fe5bf974 100644
--- a/forms/qa/org/openoffice/xforms/Model.java
+++ b/forms/qa/org/openoffice/xforms/Model.java
@@ -75,7 +75,7 @@ public class Model
{
try
{
- m_modelProps.setPropertyValue("ExternalData", new Boolean(!_internalData));
+ m_modelProps.setPropertyValue("ExternalData", Boolean.valueOf(!_internalData));
}
catch (Exception ex)
{
diff --git a/framework/qa/complex/path_substitution/PathSubstitutionTest.java b/framework/qa/complex/path_substitution/PathSubstitutionTest.java
index 2c55aeae2cd4..9c8db83bda22 100644
--- a/framework/qa/complex/path_substitution/PathSubstitutionTest.java
+++ b/framework/qa/complex/path_substitution/PathSubstitutionTest.java
@@ -235,8 +235,8 @@ public class PathSubstitutionTest
boolean canResubst)
{
varName.add(var);
- this.substAtBegin.add(new Boolean(onlySubstAtBegin));
- this.resubst.add(new Boolean(canResubst));
+ this.substAtBegin.add(Boolean.valueOf(onlySubstAtBegin));
+ this.resubst.add(Boolean.valueOf(canResubst));
}
public void putValue(int i, String val)
diff --git a/javaunohelper/com/sun/star/lib/uno/helper/PropertySet.java b/javaunohelper/com/sun/star/lib/uno/helper/PropertySet.java
index 514d2a5ea028..86d4107072de 100644
--- a/javaunohelper/com/sun/star/lib/uno/helper/PropertySet.java
+++ b/javaunohelper/com/sun/star/lib/uno/helper/PropertySet.java
@@ -731,7 +731,7 @@ XMultiPropertySet
retVal= obj;
}
else if(cl.equals(boolean.class))
- retVal= new Boolean(AnyConverter.toBoolean(obj));
+ retVal= Boolean.valueOf(AnyConverter.toBoolean(obj));
else if (cl.equals(char.class))
retVal= new Character(AnyConverter.toChar(obj));
else if (cl.equals(byte.class))
@@ -753,7 +753,7 @@ XMultiPropertySet
else if (cl.equals(Type.class))
retVal= AnyConverter.toType(obj);
else if (cl.equals(Boolean.class))
- retVal= new Boolean(AnyConverter.toBoolean(obj));
+ retVal= Boolean.valueOf(AnyConverter.toBoolean(obj));
else if (cl.equals(Character.class))
retVal= new Character(AnyConverter.toChar(obj));
else if (cl.equals(Byte.class))
diff --git a/javaunohelper/com/sun/star/lib/uno/helper/PropertySetMixin.java b/javaunohelper/com/sun/star/lib/uno/helper/PropertySetMixin.java
index ca03a7cbf9a2..e66167fda900 100644
--- a/javaunohelper/com/sun/star/lib/uno/helper/PropertySetMixin.java
+++ b/javaunohelper/com/sun/star/lib/uno/helper/PropertySetMixin.java
@@ -894,7 +894,7 @@ public final class PropertySetMixin {
isDefaulted, wrapOptional));
UnoRuntime.queryInterface(
XIdlField2.class, type.getField("IsAmbiguous")).set(
- strct, new Boolean(isAmbiguous));
+ strct, Boolean.valueOf(isAmbiguous));
} catch (com.sun.star.lang.IllegalArgumentException e) {
throw new RuntimeException(
"unexpected com.sun.star.lang.IllegalArgumentException: "
@@ -921,7 +921,7 @@ public final class PropertySetMixin {
false, false, wrapOptional));
UnoRuntime.queryInterface(
XIdlField2.class, type.getField("IsDefaulted")).set(
- strct, new Boolean(isDefaulted));
+ strct, Boolean.valueOf(isDefaulted));
} catch (com.sun.star.lang.IllegalArgumentException e) {
throw new RuntimeException(
"unexpected com.sun.star.lang.IllegalArgumentException: "
@@ -941,7 +941,7 @@ public final class PropertySetMixin {
try {
UnoRuntime.queryInterface(
XIdlField2.class, type.getField("IsPresent")).set(
- strct, new Boolean(present));
+ strct, Boolean.valueOf(present));
if (present) {
XIdlField2 field = UnoRuntime.queryInterface(
XIdlField2.class, type.getField("Value"));
diff --git a/javaunohelper/test/com/sun/star/lib/uno/helper/PropertySet_Test.java b/javaunohelper/test/com/sun/star/lib/uno/helper/PropertySet_Test.java
index 7736438d1534..460b55d38b5c 100644
--- a/javaunohelper/test/com/sun/star/lib/uno/helper/PropertySet_Test.java
+++ b/javaunohelper/test/com/sun/star/lib/uno/helper/PropertySet_Test.java
@@ -97,7 +97,7 @@ public class PropertySet_Test
cl.resetPropertyMembers();
Object value;
Object ret;
- value= new Boolean(true);
+ value= Boolean.TRUE;
cl.setPropertyValue("PropBoolA", value);
ret= cl.getPropertyValue("PropBoolA");
r[i++]= ((Boolean) ret).equals( value);
@@ -155,7 +155,7 @@ public class PropertySet_Test
r[i++]= ((Type) ret).equals(value);
// test protected,package,private members
- value= new Boolean(true);
+ value= Boolean.TRUE;
cl.setPropertyValue("PropBoolB", value);
ret= cl.getPropertyValue("PropBoolB");
r[i++]= ((Boolean) ret).equals(value);
@@ -172,7 +172,7 @@ public class PropertySet_Test
}
cl.resetPropertyMembers();
- value= new Boolean(true);
+ value= Boolean.TRUE;
cl.setPropertyValue("PropObjectA", value);
ret= cl.getPropertyValue("PropObjectA");
r[i++]= ((Boolean) ret).equals(value);
@@ -229,7 +229,7 @@ public class PropertySet_Test
r[i++]= ((Byte) ret).byteValue() == 1;
cl.resetPropertyMembers();
- value= new Boolean(true);
+ value= Boolean.TRUE;
cl.setPropertyValue("PropAnyA", value);
ret= cl.getPropertyValue("PropAnyA");
r[i++]= ret instanceof Any && util.anyEquals(value, ret);
@@ -283,7 +283,7 @@ public class PropertySet_Test
r[i++]= ret instanceof Any && util.anyEquals(value, ret);
cl.resetPropertyMembers();
- value= new Any(new Type(boolean.class), new Boolean(true));
+ value= new Any(new Type(boolean.class), Boolean.TRUE);
cl.setPropertyValue("PropBoolA", value);
ret= cl.getPropertyValue("PropBoolA");
r[i++]= ret instanceof Boolean && util.anyEquals(value, ret);
@@ -338,7 +338,7 @@ public class PropertySet_Test
cl.resetPropertyMembers();
- value= new Any(new Type(boolean.class), new Boolean(true));
+ value= new Any(new Type(boolean.class), Boolean.TRUE);
cl.setPropertyValue("PropAnyA", value);
ret= cl.getPropertyValue("PropAnyA");
r[i++]= ret instanceof Any && util.anyEquals(value, ret);
@@ -394,7 +394,7 @@ public class PropertySet_Test
cl.resetPropertyMembers();
- value= new Boolean(true);
+ value= Boolean.TRUE;
cl.setPropertyValue("PropBoolClass", value);
ret= cl.getPropertyValue("PropBoolClass");
r[i++]= ((Boolean) ret).equals( value);
@@ -430,7 +430,7 @@ public class PropertySet_Test
cl.resetPropertyMembers();
cl.resetPropertyMembers();
- value= new Any(new Type(boolean.class), new Boolean(true));
+ value= new Any(new Type(boolean.class), Boolean.TRUE);
cl.setPropertyValue("PropBoolClass", value);
ret= cl.getPropertyValue("PropBoolClass");
r[i++]= ret instanceof Boolean && util.anyEquals(value, ret);
@@ -469,7 +469,7 @@ public class PropertySet_Test
// PropertyAttribute.READONLY
cl.propBoolA.Attributes= PropertyAttribute.READONLY;
try{
- cl.setPropertyValue("PropBoolA", new Boolean(true));
+ cl.setPropertyValue("PropBoolA", Boolean.TRUE);
i++;
}catch (com.sun.star.beans.PropertyVetoException e)
{
@@ -510,10 +510,10 @@ public class PropertySet_Test
Object objAny= cl.getPropertyValue("PropBoolClass");
r[i++]= util.isVoidAny( objAny);
- cl.boolClassProp= new Boolean(true);
+ cl.boolClassProp= Boolean.TRUE;
cl.setPropertyValue("PropBoolClass", null);
r[i++]= cl.boolClassProp == null;
- cl.boolClassProp= new Boolean(false);
+ cl.boolClassProp= Boolean.FALSE;
cl.setPropertyValue("PropBoolClass", new Any(new Type(boolean.class),null));
r[i++]= cl.boolClassProp == null;
@@ -1199,11 +1199,11 @@ class TestClass extends PropertySet
Object[] outOldVal= new Object[1];
Object[] outNewVal= new Object[1];
- Object value= new Boolean(true);
+ Object value= Boolean.TRUE;
try
{
r[i++]= convertPropertyValue(propBoolA, outNewVal, outOldVal, value);
- r[i++]= outNewVal[0] instanceof Boolean && outNewVal[0].equals(value) && outOldVal[0].equals(new Boolean(false));
+ r[i++]= outNewVal[0] instanceof Boolean && outNewVal[0].equals(value) && outOldVal[0].equals(Boolean.FALSE);
value= new Character('A');
r[i++]= convertPropertyValue(propCharA, outNewVal, outOldVal, value);
r[i++]= outNewVal[0] instanceof Character && outNewVal[0].equals(value) && outOldVal[0].equals(new Character((char)0));
@@ -1274,7 +1274,7 @@ class TestClass extends PropertySet
value= new Any( new Type(Integer.class),new Integer(111));
r[i++]= convertPropertyValue(propIntA, outNewVal, outOldVal, value);
r[i++]= outNewVal[0] instanceof Integer && ((Integer)outNewVal[0]).equals( ((Any)value).getObject());
- value= new Any(new Type(Boolean.class), new Boolean(true));
+ value= new Any(new Type(Boolean.class), Boolean.TRUE);
r[i++]= convertPropertyValue(propBoolA, outNewVal, outOldVal, value);
r[i++]= outNewVal[0] instanceof Boolean && ((Boolean)outNewVal[0]).equals(((Any) value).getObject());
//Character, Byte, Short, Long
@@ -1300,7 +1300,7 @@ class TestClass extends PropertySet
// test private, protected, package fields
- value= new Boolean(true);
+ value= Boolean.TRUE;
r[i++]= convertPropertyValue(propBoolB, outNewVal, outOldVal, value);
r[i++]= ((Boolean)value).booleanValue() == ((Boolean) outNewVal[0]).booleanValue();
r[i++]= convertPropertyValue(propBoolC, outNewVal, outOldVal, value);
@@ -1315,7 +1315,7 @@ class TestClass extends PropertySet
}
// Properties member of type Byte,Short etc.
- value= new Boolean(true);
+ value= Boolean.TRUE;
r[i++]= convertPropertyValue(propBoolClass, outNewVal, outOldVal, value);
r[i++]= outNewVal[0] instanceof Boolean && outNewVal[0].equals(value);
value= new Character('A');
@@ -1356,7 +1356,7 @@ class TestClass extends PropertySet
int i= 0;
resetPropertyMembers();
try {
- Object value= new Boolean(true);
+ Object value= Boolean.TRUE;
setPropertyValueNoBroadcast(propBoolA, value);
r[i++]= boolPropA == ((Boolean) value).booleanValue();
value= new Character('A');
@@ -1406,7 +1406,7 @@ class TestClass extends PropertySet
value = com.sun.star.beans.PropertyState.AMBIGUOUS_VALUE;
setPropertyValueNoBroadcast(propEnum, value);
r[i++]= enumPropertyState == value;
- value= new Boolean(true);
+ value= Boolean.TRUE;
setPropertyValueNoBroadcast(propBoolB, value);
r[i++]= boolPropB == ((Boolean) value).booleanValue();
setPropertyValueNoBroadcast(propBoolC, value);
diff --git a/jurt/test/com/sun/star/lib/uno/protocols/urp/Marshaling_Test.java b/jurt/test/com/sun/star/lib/uno/protocols/urp/Marshaling_Test.java
index a8290af77324..390c775a7a34 100644
--- a/jurt/test/com/sun/star/lib/uno/protocols/urp/Marshaling_Test.java
+++ b/jurt/test/com/sun/star/lib/uno/protocols/urp/Marshaling_Test.java
@@ -43,7 +43,7 @@ public final class Marshaling_Test {
Object data[] = new Object[] {
new com.sun.star.uno.RuntimeException("testRuntimeException"),
new com.sun.star.uno.Exception("testException"),
- new Boolean(true),
+ Boolean.TRUE,
new Byte((byte)47),
new Character('k'),
new Double(0.12345),
diff --git a/jurt/test/com/sun/star/uno/AnyConverter_Test.java b/jurt/test/com/sun/star/uno/AnyConverter_Test.java
index b9eee47ccc8f..c4c93261d3f8 100644
--- a/jurt/test/com/sun/star/uno/AnyConverter_Test.java
+++ b/jurt/test/com/sun/star/uno/AnyConverter_Test.java
@@ -37,7 +37,7 @@ public final class AnyConverter_Test {
Any anyVoid;
Any anyXTypeProvider;
- Boolean aBool= new Boolean(true);
+ Boolean aBool= Boolean.TRUE;
Character aChar= new Character('A');
Byte aByte= new Byte((byte) 111);
Short aShort= new Short((short) 11111);
diff --git a/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/BaseDialog.java b/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/BaseDialog.java
index 6c76260a62d3..6cbde1ed1688 100644
--- a/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/BaseDialog.java
+++ b/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/BaseDialog.java
@@ -147,7 +147,7 @@ public abstract class BaseDialog extends BaseControl {
public void setCloseable(boolean closeable) {
- setProperty("Closeable", new Boolean(closeable));
+ setProperty("Closeable", Boolean.valueOf(closeable));
}
public void repaint() {
diff --git a/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/controls/BaseControl.java b/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/controls/BaseControl.java
index 23ba098c37f3..6277ba0125c9 100644
--- a/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/controls/BaseControl.java
+++ b/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/controls/BaseControl.java
@@ -132,7 +132,7 @@ public abstract class BaseControl {
}
public void setEnabled(boolean enabled) {
- setProperty("Enabled", new Boolean(enabled));
+ setProperty("Enabled", Boolean.valueOf(enabled));
}
public void setVisible(boolean visible) {
diff --git a/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/controls/LabeledControl.java b/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/controls/LabeledControl.java
index ba39aa81bd6d..a1c8c767422c 100644
--- a/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/controls/LabeledControl.java
+++ b/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/dialogs/controls/LabeledControl.java
@@ -40,7 +40,7 @@ public abstract class LabeledControl extends BaseControl {
}
public void setMultiLine(boolean multiLine) {
- setProperty("MultiLine", new Boolean(multiLine));
+ setProperty("MultiLine", Boolean.valueOf(multiLine));
}
}
diff --git a/odk/examples/DevelopersGuide/Charts/ChartInCalc.java b/odk/examples/DevelopersGuide/Charts/ChartInCalc.java
index 617ae104e207..ee493144f98a 100644
--- a/odk/examples/DevelopersGuide/Charts/ChartInCalc.java
+++ b/odk/examples/DevelopersGuide/Charts/ChartInCalc.java
@@ -172,7 +172,7 @@ public class ChartInCalc
if( aDiaProp != null )
{
// change chart type
- aDiaProp.setPropertyValue( "Lines", new Boolean( true ));
+ aDiaProp.setPropertyValue( "Lines", Boolean.TRUE);
// change attributes for all series
// set line width to 0.5mm
@@ -308,7 +308,7 @@ public class ChartInCalc
// change main title
XPropertySet aDocProp = UnoRuntime.queryInterface(
XPropertySet.class, maChartDocument );
- aDocProp.setPropertyValue( "HasMainTitle", new Boolean( true ));
+ aDocProp.setPropertyValue( "HasMainTitle", Boolean.TRUE);
XShape aTitle = maChartDocument.getTitle();
XPropertySet aTitleProp = UnoRuntime.queryInterface( XPropertySet.class, aTitle );
diff --git a/odk/examples/DevelopersGuide/Charts/ChartInDraw.java b/odk/examples/DevelopersGuide/Charts/ChartInDraw.java
index cf9822c9bdb8..ee9e05d49d79 100644
--- a/odk/examples/DevelopersGuide/Charts/ChartInDraw.java
+++ b/odk/examples/DevelopersGuide/Charts/ChartInDraw.java
@@ -170,7 +170,7 @@ public class ChartInDraw
// change main title
XPropertySet aDocProp = UnoRuntime.queryInterface(
XPropertySet.class, maChartDocument );
- aDocProp.setPropertyValue( "HasMainTitle", new Boolean( true ));
+ aDocProp.setPropertyValue( "HasMainTitle", Boolean.TRUE);
XShape aTitle = maChartDocument.getTitle();
XPropertySet aTitleProp = UnoRuntime.queryInterface( XPropertySet.class, aTitle );
@@ -203,7 +203,7 @@ public class ChartInDraw
com.sun.star.lang.IllegalArgumentException, WrappedTargetException
{
XPropertySet aDiaProp = UnoRuntime.queryInterface( XPropertySet.class, maDiagram );
- Boolean aTrue = new Boolean( true );
+ Boolean aTrue = Boolean.TRUE;
aDiaProp.setPropertyValue( "Dim3D", aTrue );
aDiaProp.setPropertyValue( "Deep", aTrue );
@@ -278,7 +278,7 @@ public class ChartInDraw
aDirection.DirectionZ = 0.5;
aDiaProp.setPropertyValue( "D3DSceneLightDirection1", aDirection );
- aDiaProp.setPropertyValue( "D3DSceneLightOn1", new Boolean( true ));
+ aDiaProp.setPropertyValue( "D3DSceneLightOn1", Boolean.TRUE);
}
diff --git a/odk/examples/DevelopersGuide/Charts/ListenAtCalcRangeInDraw.java b/odk/examples/DevelopersGuide/Charts/ListenAtCalcRangeInDraw.java
index 95b476125c55..60ac0b0d5b26 100644
--- a/odk/examples/DevelopersGuide/Charts/ListenAtCalcRangeInDraw.java
+++ b/odk/examples/DevelopersGuide/Charts/ListenAtCalcRangeInDraw.java
@@ -106,7 +106,7 @@ public class ListenAtCalcRangeInDraw implements XChartDataChangeEventListener
{
UnoRuntime.queryInterface(
XPropertySet.class, maChartDocument ).setPropertyValue(
- "HasSubTitle", new Boolean( true ));
+ "HasSubTitle", Boolean.TRUE);
// start listening for death of spreadsheet
UnoRuntime.queryInterface(
@@ -165,7 +165,7 @@ public class ListenAtCalcRangeInDraw implements XChartDataChangeEventListener
{
XPropertySet aDocProp = UnoRuntime.queryInterface(
XPropertySet.class, maChartDocument );
- aDocProp.setPropertyValue( "HasMainTitle", new Boolean( true ));
+ aDocProp.setPropertyValue( "HasMainTitle", Boolean.TRUE);
UnoRuntime.queryInterface(
XPropertySet.class, maChartDocument.getSubTitle()).setPropertyValue(
diff --git a/odk/examples/DevelopersGuide/Config/ConfigExamples.java b/odk/examples/DevelopersGuide/Config/ConfigExamples.java
index 6c070476e00b..687fb4c8cd0e 100644
--- a/odk/examples/DevelopersGuide/Config/ConfigExamples.java
+++ b/odk/examples/DevelopersGuide/Config/ConfigExamples.java
@@ -725,7 +725,7 @@ public class ConfigExamples
Boolean bOldValue = (Boolean)xHPS.getHierarchicalPropertyValue(sSetting);
- Boolean bNewValue = new Boolean( ! bOldValue.booleanValue() );
+ Boolean bNewValue = Boolean.valueOf( ! bOldValue.booleanValue() );
xHPS.setHierarchicalPropertyValue(sSetting,bNewValue);
}
@@ -767,7 +767,7 @@ public class ConfigExamples
boolean bNew = ! bOld;
System.out.println("Replacing boolean value: " + aItemNames [i]);
- aReplace.replaceByName( aItemNames [i], new Boolean( bNew ) );
+ aReplace.replaceByName( aItemNames [i], Boolean.valueOf( bNew ) );
}
}
@@ -866,7 +866,7 @@ public class ConfigExamples
String sSampleDataSourceURL = "sdbc:flat:$(userurl)/database/SampleTextDatabase";
com.sun.star.beans.NamedValue [] aSettings = new com.sun.star.beans.NamedValue [2];
- aSettings[0] = new com.sun.star.beans.NamedValue("HeaderLine",new Boolean(true));
+ aSettings[0] = new com.sun.star.beans.NamedValue("HeaderLine",Boolean.TRUE);
aSettings[1] = new com.sun.star.beans.NamedValue("FieldDelimiter",";");
String [] aTableFilter = new String[2];
@@ -897,7 +897,7 @@ public class ConfigExamples
xDataSourceProperties.setPropertyValue("URL", sDataSourceURL );
xDataSourceProperties.setPropertyValue("User", sUser );
- xDataSourceProperties.setPropertyValue("IsPasswordRequired", new Boolean( bNeedsPassword ) );
+ xDataSourceProperties.setPropertyValue("IsPasswordRequired", Boolean.valueOf( bNeedsPassword ) );
xDataSourceProperties.setPropertyValue("LoginTimeout", new Integer( nTimeout ) );
if ( aTableFilter != null )
diff --git a/odk/examples/DevelopersGuide/Database/CodeSamples.java b/odk/examples/DevelopersGuide/Database/CodeSamples.java
index f41f2ff11b71..4d8c765f8fae 100644
--- a/odk/examples/DevelopersGuide/Database/CodeSamples.java
+++ b/odk/examples/DevelopersGuide/Database/CodeSamples.java
@@ -277,7 +277,7 @@ public class CodeSamples
XPropertySet xProp = UnoRuntime.queryInterface(
XPropertySet.class,xSingleFac.createInstance());
xProp.setPropertyValue("Command","SELECT * FROM biblio");
- xProp.setPropertyValue("EscapeProcessing",new Boolean(true));
+ xProp.setPropertyValue("EscapeProcessing",Boolean.TRUE);
XNameContainer xCont = UnoRuntime.queryInterface(XNameContainer.class, xQDefs);
try
diff --git a/odk/examples/DevelopersGuide/Drawing/ChangeOrderDemo.java b/odk/examples/DevelopersGuide/Drawing/ChangeOrderDemo.java
index 0518e327bba3..1def8ad4a131 100644
--- a/odk/examples/DevelopersGuide/Drawing/ChangeOrderDemo.java
+++ b/odk/examples/DevelopersGuide/Drawing/ChangeOrderDemo.java
@@ -70,7 +70,7 @@ public class ChangeOrderDemo
PropertyValue[] pPropValues = new PropertyValue[ 1 ];
pPropValues[ 0 ] = new PropertyValue();
pPropValues[ 0 ].Name = "Silent";
- pPropValues[ 0 ].Value = new Boolean( true );
+ pPropValues[ 0 ].Value = Boolean.TRUE;
xDrawDoc = Helper.createDocument( xOfficeContext,
"private:factory/sdraw", "_blank", 0, pPropValues );
diff --git a/odk/examples/DevelopersGuide/Drawing/ControlAndSelectDemo.java b/odk/examples/DevelopersGuide/Drawing/ControlAndSelectDemo.java
index 654c3b2feae1..3e265ef166bf 100644
--- a/odk/examples/DevelopersGuide/Drawing/ControlAndSelectDemo.java
+++ b/odk/examples/DevelopersGuide/Drawing/ControlAndSelectDemo.java
@@ -82,7 +82,7 @@ public class ControlAndSelectDemo
PropertyValue[] pPropValues = new PropertyValue[ 1 ];
pPropValues[ 0 ] = new PropertyValue();
pPropValues[ 0 ].Name = "Silent";
- pPropValues[ 0 ].Value = new Boolean( true );
+ pPropValues[ 0 ].Value = Boolean.TRUE;
xComponent = Helper.createDocument( xOfficeContext,
"private:factory/sdraw", "_blank", 0, pPropValues );
diff --git a/odk/examples/DevelopersGuide/Drawing/CustomShowDemo.java b/odk/examples/DevelopersGuide/Drawing/CustomShowDemo.java
index 322868efdd8d..fe72a16bcf3a 100644
--- a/odk/examples/DevelopersGuide/Drawing/CustomShowDemo.java
+++ b/odk/examples/DevelopersGuide/Drawing/CustomShowDemo.java
@@ -86,7 +86,7 @@ public class CustomShowDemo
PropertyValue[] pPropValues = new PropertyValue[ 1 ];
pPropValues[ 0 ] = new PropertyValue();
pPropValues[ 0 ].Name = "Silent";
- pPropValues[ 0 ].Value = new Boolean( true );
+ pPropValues[ 0 ].Value = Boolean.TRUE;
xDrawDoc = Helper.createDocument( xOfficeContext,
"private:factory/simpress", "_blank", 0, pPropValues );
diff --git a/odk/examples/DevelopersGuide/Drawing/DrawViewDemo.java b/odk/examples/DevelopersGuide/Drawing/DrawViewDemo.java
index efea885c8693..2377a711f9bb 100644
--- a/odk/examples/DevelopersGuide/Drawing/DrawViewDemo.java
+++ b/odk/examples/DevelopersGuide/Drawing/DrawViewDemo.java
@@ -78,7 +78,7 @@ public class DrawViewDemo
PropertyValue[] pPropValues = new PropertyValue[ 1 ];
pPropValues[ 0 ] = new PropertyValue();
pPropValues[ 0 ].Name = "Silent";
- pPropValues[ 0 ].Value = new Boolean( true );
+ pPropValues[ 0 ].Value = Boolean.TRUE;
java.io.File sourceFile = new java.io.File(args[0]);
StringBuffer sUrl = new StringBuffer("file:///");
@@ -125,7 +125,7 @@ public class DrawViewDemo
System.out.println( aPropSeq[ i ].Name );
}
System.out.println("*** change into masterpage mode");
- xPropSet.setPropertyValue( "IsMasterPageMode", new Boolean( true ) );
+ xPropSet.setPropertyValue( "IsMasterPageMode", Boolean.TRUE );
}
catch( Exception ex )
diff --git a/odk/examples/DevelopersGuide/Drawing/DrawingDemo.java b/odk/examples/DevelopersGuide/Drawing/DrawingDemo.java
index 742e5b4a4f07..926a34a3eba1 100644
--- a/odk/examples/DevelopersGuide/Drawing/DrawingDemo.java
+++ b/odk/examples/DevelopersGuide/Drawing/DrawingDemo.java
@@ -99,7 +99,7 @@ public class DrawingDemo
PropertyValue[] pPropValues = new PropertyValue[ 1 ];
pPropValues[ 0 ] = new PropertyValue();
pPropValues[ 0 ].Name = "Silent";
- pPropValues[ 0 ].Value = new Boolean( true );
+ pPropValues[ 0 ].Value = Boolean.TRUE;
xDrawDoc = Helper.createDocument( xOfficeContext,
sURL, "_blank", 0, pPropValues );
diff --git a/odk/examples/DevelopersGuide/Drawing/FillAndLineStyleDemo.java b/odk/examples/DevelopersGuide/Drawing/FillAndLineStyleDemo.java
index 472ae81c6340..f7c50a4bedbc 100644
--- a/odk/examples/DevelopersGuide/Drawing/FillAndLineStyleDemo.java
+++ b/odk/examples/DevelopersGuide/Drawing/FillAndLineStyleDemo.java
@@ -72,7 +72,7 @@ public class FillAndLineStyleDemo
PropertyValue[] pPropValues = new PropertyValue[ 1 ];
pPropValues[ 0 ] = new PropertyValue();
pPropValues[ 0 ].Name = "Silent";
- pPropValues[ 0 ].Value = new Boolean( true );
+ pPropValues[ 0 ].Value = Boolean.TRUE;
xDrawDoc = Helper.createDocument( xOfficeContext,
"private:factory/sdraw", "_blank", 0, pPropValues );
diff --git a/odk/examples/DevelopersGuide/Drawing/GluePointDemo.java b/odk/examples/DevelopersGuide/Drawing/GluePointDemo.java
index 5f1a32e06493..fc34da6fdfcf 100644
--- a/odk/examples/DevelopersGuide/Drawing/GluePointDemo.java
+++ b/odk/examples/DevelopersGuide/Drawing/GluePointDemo.java
@@ -77,7 +77,7 @@ public class GluePointDemo
PropertyValue[] pPropValues = new PropertyValue[ 1 ];
pPropValues[ 0 ] = new PropertyValue();
pPropValues[ 0 ].Name = "Silent";
- pPropValues[ 0 ].Value = new Boolean( true );
+ pPropValues[ 0 ].Value = Boolean.TRUE;
xDrawDoc = Helper.createDocument( xOfficeContext,
"private:factory/sdraw", "_blank", 0, pPropValues );
diff --git a/odk/examples/DevelopersGuide/Drawing/GraphicExportDemo.java b/odk/examples/DevelopersGuide/Drawing/GraphicExportDemo.java
index dc93c75b28c2..844cd0b67794 100644
--- a/odk/examples/DevelopersGuide/Drawing/GraphicExportDemo.java
+++ b/odk/examples/DevelopersGuide/Drawing/GraphicExportDemo.java
@@ -71,7 +71,7 @@ public class GraphicExportDemo
PropertyValue[] pPropValues = new PropertyValue[ 1 ];
pPropValues[ 0 ] = new PropertyValue();
pPropValues[ 0 ].Name = "Silent";
- pPropValues[ 0 ].Value = new Boolean( true );
+ pPropValues[ 0 ].Value = Boolean.TRUE;
java.io.File sourceFile = new java.io.File(args[0]);
StringBuffer sUrl = new StringBuffer("file:///");
diff --git a/odk/examples/DevelopersGuide/Drawing/LayerDemo.java b/odk/examples/DevelopersGuide/Drawing/LayerDemo.java
index cbf66354ba14..b22d301150a3 100644
--- a/odk/examples/DevelopersGuide/Drawing/LayerDemo.java
+++ b/odk/examples/DevelopersGuide/Drawing/LayerDemo.java
@@ -76,7 +76,7 @@ public class LayerDemo
PropertyValue[] pPropValues = new PropertyValue[ 1 ];
pPropValues[ 0 ] = new PropertyValue();
pPropValues[ 0 ].Name = "Silent";
- pPropValues[ 0 ].Value = new Boolean( true );
+ pPropValues[ 0 ].Value = Boolean.TRUE;
xDrawDoc = Helper.createDocument( xOfficeContext,
"private:factory/sdraw", "_blank", 0, pPropValues );
@@ -122,8 +122,8 @@ public class LayerDemo
xLayerPropSet = UnoRuntime.queryInterface(
XPropertySet.class, xNotVisibleAndEditable );
xLayerPropSet.setPropertyValue( "Name", "NotVisibleAndEditable" );
- xLayerPropSet.setPropertyValue( "IsVisible", new Boolean( false ) );
- xLayerPropSet.setPropertyValue( "IsLocked", new Boolean( true ) );
+ xLayerPropSet.setPropertyValue( "IsVisible", Boolean.FALSE );
+ xLayerPropSet.setPropertyValue( "IsLocked", Boolean.TRUE );
// create a second layer
XLayer xNotEditable = xLayerManager.insertNewByIndex(
@@ -132,8 +132,8 @@ public class LayerDemo
xLayerPropSet = UnoRuntime.queryInterface(
XPropertySet.class, xNotEditable );
xLayerPropSet.setPropertyValue( "Name", "NotEditable" );
- xLayerPropSet.setPropertyValue( "IsVisible", new Boolean( true ) );
- xLayerPropSet.setPropertyValue( "IsLocked", new Boolean( true ) );
+ xLayerPropSet.setPropertyValue( "IsVisible", Boolean.TRUE );
+ xLayerPropSet.setPropertyValue( "IsLocked", Boolean.TRUE );
// attach the layer to the rectangles
xLayerManager.attachShapeToLayer( xRect1, xNotVisibleAndEditable );
diff --git a/odk/examples/DevelopersGuide/Drawing/ObjectTransformationDemo.java b/odk/examples/DevelopersGuide/Drawing/ObjectTransformationDemo.java
index f45326a185b9..de81472f462f 100644
--- a/odk/examples/DevelopersGuide/Drawing/ObjectTransformationDemo.java
+++ b/odk/examples/DevelopersGuide/Drawing/ObjectTransformationDemo.java
@@ -71,7 +71,7 @@ public class ObjectTransformationDemo
PropertyValue[] pPropValues = new PropertyValue[ 1 ];
pPropValues[ 0 ] = new PropertyValue();
pPropValues[ 0 ].Name = "Silent";
- pPropValues[ 0 ].Value = new Boolean( true );
+ pPropValues[ 0 ].Value = Boolean.TRUE;
xDrawDoc = Helper.createDocument( xOfficeContext,
"private:factory/simpress", "_blank", 0, pPropValues );
diff --git a/odk/examples/DevelopersGuide/Drawing/PresentationDemo.java b/odk/examples/DevelopersGuide/Drawing/PresentationDemo.java
index 61e62d2cfadf..bfa352016488 100644
--- a/odk/examples/DevelopersGuide/Drawing/PresentationDemo.java
+++ b/odk/examples/DevelopersGuide/Drawing/PresentationDemo.java
@@ -82,7 +82,7 @@ public class PresentationDemo
PropertyValue[] pPropValues = new PropertyValue[ 1 ];
pPropValues[ 0 ] = new PropertyValue();
pPropValues[ 0 ].Name = "Silent";
- pPropValues[ 0 ].Value = new Boolean( true );
+ pPropValues[ 0 ].Value = Boolean.TRUE;
xDrawDoc = Helper.createDocument( xOfficeContext,
"private:factory/simpress", "_blank", 0, pPropValues );
@@ -116,8 +116,8 @@ public class PresentationDemo
/* the following three properties provokes that the shape is dimmed
to red
after the animation has been finished */
- xShapePropSet.setPropertyValue( "DimHide", new Boolean( false ) );
- xShapePropSet.setPropertyValue( "DimPrevious", new Boolean( true ) );
+ xShapePropSet.setPropertyValue( "DimHide", Boolean.FALSE );
+ xShapePropSet.setPropertyValue( "DimPrevious", Boolean.TRUE );
xShapePropSet.setPropertyValue( "DimColor", new Integer( 0xff0000 ) );
@@ -187,8 +187,8 @@ public class PresentationDemo
XPresentationSupplier xPresSupplier = UnoRuntime.queryInterface( XPresentationSupplier.class, xDrawDoc );
XPresentation xPresentation = xPresSupplier.getPresentation();
XPropertySet xPresPropSet = UnoRuntime.queryInterface( XPropertySet.class, xPresentation );
- xPresPropSet.setPropertyValue( "IsEndless", new Boolean( true ) );
- xPresPropSet.setPropertyValue( "IsAlwaysOnTop", new Boolean( true ) );
+ xPresPropSet.setPropertyValue( "IsEndless", Boolean.TRUE );
+ xPresPropSet.setPropertyValue( "IsAlwaysOnTop", Boolean.TRUE );
xPresPropSet.setPropertyValue( "Pause", new Integer( 0 ) );
xPresentation.start();
}
diff --git a/odk/examples/DevelopersGuide/Drawing/StyleDemo.java b/odk/examples/DevelopersGuide/Drawing/StyleDemo.java
index b371f63d70fb..945b7a78c6f6 100644
--- a/odk/examples/DevelopersGuide/Drawing/StyleDemo.java
+++ b/odk/examples/DevelopersGuide/Drawing/StyleDemo.java
@@ -75,7 +75,7 @@ public class StyleDemo
PropertyValue[] pPropValues = new PropertyValue[ 1 ];
pPropValues[ 0 ] = new PropertyValue();
pPropValues[ 0 ].Name = "Silent";
- pPropValues[ 0 ].Value = new Boolean( true );
+ pPropValues[ 0 ].Value = Boolean.TRUE;
xComponent = Helper.createDocument( xOfficeContext,
"private:factory/simpress", "_blank", 0, pPropValues );
diff --git a/odk/examples/DevelopersGuide/Drawing/TextDemo.java b/odk/examples/DevelopersGuide/Drawing/TextDemo.java
index 82b9abfc338d..3dd22e4bd0ed 100644
--- a/odk/examples/DevelopersGuide/Drawing/TextDemo.java
+++ b/odk/examples/DevelopersGuide/Drawing/TextDemo.java
@@ -75,7 +75,7 @@ public class TextDemo
PropertyValue[] pPropValues = new PropertyValue[ 1 ];
pPropValues[ 0 ] = new PropertyValue();
pPropValues[ 0 ].Name = "Silent";
- pPropValues[ 0 ].Value = new Boolean( true );
+ pPropValues[ 0 ].Value = Boolean.TRUE;
xDrawDoc = Helper.createDocument( xOfficeContext,
"private:factory/sdraw", "_blank", 0, pPropValues );
diff --git a/odk/examples/DevelopersGuide/FirstSteps/FirstLoadComponent.java b/odk/examples/DevelopersGuide/FirstSteps/FirstLoadComponent.java
index ac8d6430874b..c98124d6ca09 100644
--- a/odk/examples/DevelopersGuide/FirstSteps/FirstLoadComponent.java
+++ b/odk/examples/DevelopersGuide/FirstSteps/FirstLoadComponent.java
@@ -123,7 +123,7 @@ public class FirstLoadComponent {
// instantiate PropertyValue struct and set its member fields
PropertyValue asTemplate = new PropertyValue();
asTemplate.Name = "AsTemplate";
- asTemplate.Value = new Boolean(true);
+ asTemplate.Value = Boolean.TRUE;
// assign PropertyValue struct to array of references for PropertyValue
// structs
diff --git a/odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape.java b/odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape.java
index 301db58a2c6f..9d27e66a5d42 100644
--- a/odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape.java
+++ b/odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape.java
@@ -134,7 +134,7 @@ public class HelloTextTableShape {
XPropertySet xShapeProps = UnoRuntime.queryInterface(
XPropertySet.class, writerShape);
// wrap text inside shape
- xShapeProps.setPropertyValue("TextContourFrame", new Boolean(true));
+ xShapeProps.setPropertyValue("TextContourFrame", Boolean.TRUE);
XText xShapeText = UnoRuntime.queryInterface(XText.class, writerShape);
@@ -217,7 +217,7 @@ public class HelloTextTableShape {
XCell xCell = xSpreadsheetCells.getCellByPosition(0,1);
XPropertySet xCellProps = UnoRuntime.queryInterface(
XPropertySet.class, xCell);
- xCellProps.setPropertyValue("IsTextWrapped", new Boolean(true));
+ xCellProps.setPropertyValue("IsTextWrapped", Boolean.TRUE);
XText xCellText = UnoRuntime.queryInterface(XText.class, xCell);
@@ -244,7 +244,7 @@ public class HelloTextTableShape {
XPropertySet xShapeProps = UnoRuntime.queryInterface(
XPropertySet.class, calcShape);
// wrap text inside shape
- xShapeProps.setPropertyValue("TextContourFrame", new Boolean(true));
+ xShapeProps.setPropertyValue("TextContourFrame", Boolean.TRUE);
XText xShapeText = UnoRuntime.queryInterface(XText.class, calcShape);
@@ -291,7 +291,7 @@ public class HelloTextTableShape {
XPropertySet.class, drawShape);
// wrap text inside shape
- xShapeProps.setPropertyValue("TextContourFrame", new Boolean(true));
+ xShapeProps.setPropertyValue("TextContourFrame", Boolean.TRUE);
manipulateText(xShapeText);
manipulateShape(xDrawShape);
diff --git a/odk/examples/DevelopersGuide/Forms/ControlLock.java b/odk/examples/DevelopersGuide/Forms/ControlLock.java
index 2663cd52f00f..d518a5140a14 100644
--- a/odk/examples/DevelopersGuide/Forms/ControlLock.java
+++ b/odk/examples/DevelopersGuide/Forms/ControlLock.java
@@ -55,7 +55,7 @@ class LockControlModels extends ComponentTreeTraversal
public LockControlModels( String sDataField, boolean bLockIt )
{
m_sDataField = sDataField;
- m_aLockIt = new Boolean( bLockIt );
+ m_aLockIt = Boolean.valueOf( bLockIt );
m_nLevel = 0;
}
diff --git a/odk/examples/DevelopersGuide/Forms/ControlValidation.java b/odk/examples/DevelopersGuide/Forms/ControlValidation.java
index 0ef0702eba20..a7a6d8347386 100644
--- a/odk/examples/DevelopersGuide/Forms/ControlValidation.java
+++ b/odk/examples/DevelopersGuide/Forms/ControlValidation.java
@@ -46,21 +46,21 @@ public class ControlValidation extends DocumentBasedExample
validation = new SingleControlValidation( m_document, 5, 55, "DatabaseDateField", new DateValidator() );
validation.setExplanatoryText( "Please enter a date in the current month" );
- validation.getInputField().setPropertyValue( "Dropdown", new Boolean( true ) );
+ validation.getInputField().setPropertyValue( "Dropdown", Boolean.TRUE );
validation = new SingleControlValidation( m_document, 90, 55, "DatabaseTimeField", new TimeValidator() );
validation.setExplanatoryText( "Please enter a time. Valid values are all full hours." );
validation = new SingleControlValidation( m_document, 5, 110, "DatabaseCheckBox", new BooleanValidator( false ) );
validation.setExplanatoryText( "Please check (well, or uncheck) the box. Don't leave it in indetermined state." );
- validation.getInputField().setPropertyValue( "TriState", new Boolean( true ) );
+ validation.getInputField().setPropertyValue( "TriState", Boolean.TRUE );
validation = new SingleControlValidation( m_document, 90, 110, "DatabaseRadioButton", new BooleanValidator( true ), 3, 0 );
validation.setExplanatoryText( "Please check any but the first button" );
validation = new SingleControlValidation( m_document, 5, 165, "DatabaseListBox", new ListSelectionValidator( ), 1, 24 );
validation.setExplanatoryText( "Please select not more than two entries." );
- validation.getInputField().setPropertyValue( "MultiSelection", new Boolean( true ) );
+ validation.getInputField().setPropertyValue( "MultiSelection", Boolean.TRUE );
validation.getInputField().setPropertyValue( "StringItemList", new String[] { "first", "second", "third", "forth", "fivth" } );
// switch to alive mode
diff --git a/odk/examples/DevelopersGuide/Forms/DataAwareness.java b/odk/examples/DevelopersGuide/Forms/DataAwareness.java
index edde8d98b434..6c5cc5154709 100644
--- a/odk/examples/DevelopersGuide/Forms/DataAwareness.java
+++ b/odk/examples/DevelopersGuide/Forms/DataAwareness.java
@@ -618,9 +618,9 @@ public class DataAwareness extends DocumentBasedExample implements XPropertyChan
xButton.setPropertyValue( "HelpText", sName );
// don't want buttons to be accessible by the "tab" key - this would be uncomfortable when traveling
// with records with "tab"
- xButton.setPropertyValue( "Tabstop", new Boolean( false ) );
+ xButton.setPropertyValue( "Tabstop", Boolean.FALSE );
// similar, they should not steal the focus when clicked
- xButton.setPropertyValue( "FocusOnClick", new Boolean( false ) );
+ xButton.setPropertyValue( "FocusOnClick", Boolean.FALSE );
m_aOperator.addButton( xButton, _formFeature );
@@ -804,7 +804,7 @@ public class DataAwareness extends DocumentBasedExample implements XPropertyChan
xManualFilter.setPropertyValue( "Name", "ManualFilter" );
XPropertySet xApplyFilter = m_formLayer.createControlAndShape( "CommandButton", 139, 125, 25, 6, xSalesFilterForm );
xApplyFilter.setPropertyValue( "Name", "ApplyFilter" );
- xApplyFilter.setPropertyValue( "DefaultButton", new Boolean( true ) );
+ xApplyFilter.setPropertyValue( "DefaultButton", Boolean.TRUE );
new SalesFilter( m_document, xSalesFormProps, xFilterSelection,
xManualFilter, xApplyFilter );
diff --git a/odk/examples/DevelopersGuide/Forms/SalesFilter.java b/odk/examples/DevelopersGuide/Forms/SalesFilter.java
index aad8b13b106b..2506f16a3666 100644
--- a/odk/examples/DevelopersGuide/Forms/SalesFilter.java
+++ b/odk/examples/DevelopersGuide/Forms/SalesFilter.java
@@ -83,7 +83,7 @@ class SalesFilter implements XActionListener, XPropertyChangeListener, XResetLis
{
// init control models
- m_xFilterList.setPropertyValue( "Dropdown", new Boolean( true ) );
+ m_xFilterList.setPropertyValue( "Dropdown", Boolean.TRUE );
m_xFilterList.setPropertyValue( "LineCount", new Short( (short)11 ) );
m_xFilterList.setPropertyValue( "StringItemList", new String[] { "ever (means no filter)", "this morning", "1 week ago", "1 month ago", "1 year ago", "<other>" } );
m_xFilterList.setPropertyValue( "DefaultSelection", new Short[] { new Short( (short)0 ) } );
@@ -239,7 +239,7 @@ class SalesFilter implements XActionListener, XPropertyChangeListener, XResetLis
{
try
{
- m_xApplyFilter.setPropertyValue( "Enabled", new Boolean( m_bSettingsDirty ) );
+ m_xApplyFilter.setPropertyValue( "Enabled", Boolean.valueOf( m_bSettingsDirty ) );
}
catch ( com.sun.star.uno.Exception e )
{
@@ -306,7 +306,7 @@ class SalesFilter implements XActionListener, XPropertyChangeListener, XResetLis
// custom filter?
boolean bCustomFilter = isManualFilter( m_nPreviousFilterIndex );
- m_xManualFilter.setPropertyValue( "Enabled", new Boolean( bCustomFilter ) );
+ m_xManualFilter.setPropertyValue( "Enabled", Boolean.valueOf( bCustomFilter ) );
if ( bCustomFilter )
m_aDocument.getCurrentView().grabControlFocus( m_xManualFilter );
@@ -430,7 +430,7 @@ class SalesFilter implements XActionListener, XPropertyChangeListener, XResetLis
sCompleteFilter += sOdbcDate;
}
m_xSalesForm.setPropertyValue( "Filter", sCompleteFilter );
- m_xSalesForm.setPropertyValue( "ApplyFilter", new Boolean( true ) );
+ m_xSalesForm.setPropertyValue( "ApplyFilter", Boolean.TRUE );
// and reload the form
XLoadable xLoad = UnoRuntime.queryInterface(
diff --git a/odk/examples/DevelopersGuide/Forms/SingleControlValidation.java b/odk/examples/DevelopersGuide/Forms/SingleControlValidation.java
index 910b46fcf951..c22054b46f37 100644
--- a/odk/examples/DevelopersGuide/Forms/SingleControlValidation.java
+++ b/odk/examples/DevelopersGuide/Forms/SingleControlValidation.java
@@ -74,7 +74,7 @@ public class SingleControlValidation implements XFormComponentValidityListener
try
{
m_inputLabel = m_formLayer.createControlAndShape( "FixedText", columnPos, rowPos, 70, 12, null );
- m_inputLabel.setPropertyValue( "MultiLine", new Boolean( true ) );
+ m_inputLabel.setPropertyValue( "MultiLine", Boolean.TRUE );
com.sun.star.awt.FontDescriptor font = (com.sun.star.awt.FontDescriptor)m_inputLabel.getPropertyValue( "FontDescriptor" );
font.Weight = com.sun.star.awt.FontWeight.BOLD;
diff --git a/odk/examples/DevelopersGuide/Forms/SpreadsheetValueBinding.java b/odk/examples/DevelopersGuide/Forms/SpreadsheetValueBinding.java
index 8baca5dca0d5..1eab64cd08ae 100644
--- a/odk/examples/DevelopersGuide/Forms/SpreadsheetValueBinding.java
+++ b/odk/examples/DevelopersGuide/Forms/SpreadsheetValueBinding.java
@@ -55,7 +55,7 @@ public class SpreadsheetValueBinding extends DocumentBasedExample
numericControl.setPropertyValue( "ValueMax", new Short( (short)5 ) );
numericControl.setPropertyValue( "Value", new Short( (short)1 ) );
numericControl.setPropertyValue( "DecimalAccuracy", new Short( (short)0 ) );
- numericControl.setPropertyValue( "Spin", new Boolean( true ) );
+ numericControl.setPropertyValue( "Spin", Boolean.TRUE );
// bind the control model to cell B2
implBind( numericControl, document.createCellBinding( sheet, exchangeColumn, exchangeRow ) );
@@ -64,7 +64,7 @@ public class SpreadsheetValueBinding extends DocumentBasedExample
// insert a list box
XPropertySet listBox = m_formLayer.insertControlLine( "ListBox",
"select an entry", "", 2, 40, 20 );
- listBox.setPropertyValue( "Dropdown", new Boolean( false ) );
+ listBox.setPropertyValue( "Dropdown", Boolean.FALSE );
// a list binding for cell range C1-C5
final short listSourceSheet = (short)1;
diff --git a/odk/examples/DevelopersGuide/GUI/MessageBox.java b/odk/examples/DevelopersGuide/GUI/MessageBox.java
index 055659a04204..7cc1159518d1 100644
--- a/odk/examples/DevelopersGuide/GUI/MessageBox.java
+++ b/odk/examples/DevelopersGuide/GUI/MessageBox.java
@@ -152,7 +152,7 @@ public class MessageBox {
com.sun.star.beans.PropertyValue[] args = new com.sun.star.beans.PropertyValue [1];
args[0] = new com.sun.star.beans.PropertyValue();
args[0].Name = "Hidden";
- args[0].Value = new Boolean(true);
+ args[0].Value = Boolean.TRUE;
String strDoc = "private:factory/swriter";
xComp = xCLoader.loadComponentFromURL(strDoc, "_blank", 0, args);
diff --git a/odk/examples/DevelopersGuide/GUI/SystemDialog.java b/odk/examples/DevelopersGuide/GUI/SystemDialog.java
index 453d9b99cd72..1fb63c61890d 100644
--- a/odk/examples/DevelopersGuide/GUI/SystemDialog.java
+++ b/odk/examples/DevelopersGuide/GUI/SystemDialog.java
@@ -104,7 +104,7 @@ public class SystemDialog {
// add a control to the dialog to add the extension automatically to the filename...
XFilePickerControlAccess xFilePickerControlAccess = UnoRuntime.queryInterface(XFilePickerControlAccess.class, xFilePicker);
- xFilePickerControlAccess.setValue(com.sun.star.ui.dialogs.ExtendedFilePickerElementIds.CHECKBOX_AUTOEXTENSION, (short) 0, new Boolean(true));
+ xFilePickerControlAccess.setValue(com.sun.star.ui.dialogs.ExtendedFilePickerElementIds.CHECKBOX_AUTOEXTENSION, (short) 0, Boolean.TRUE);
xComponent = UnoRuntime.queryInterface(XComponent.class, xFilePicker);
diff --git a/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java b/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java
index 3c52f56fd10e..750b4a5d4a59 100644
--- a/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java
+++ b/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java
@@ -1266,7 +1266,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
}
// Alternatively we could have done it also this way:
// bdoEnable = (nState == 1);
- xModelPropertySet.setPropertyValue("Enabled", new Boolean(bdoEnable));
+ xModelPropertySet.setPropertyValue("Enabled", Boolean.valueOf(bdoEnable));
}catch (com.sun.star.uno.Exception ex){
/* perform individual exception handling here.
* Possible exception types are:
@@ -1352,7 +1352,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
XPropertySet xRMItemPSet = UnoRuntime.queryInterface(XPropertySet.class, oRoadmapItem);
xRMItemPSet.setPropertyValue("Label", _sLabel);
// sometimes steps are supposed to be set disabled depending on the program logic...
- xRMItemPSet.setPropertyValue("Enabled", new Boolean(_bEnabled));
+ xRMItemPSet.setPropertyValue("Enabled", Boolean.valueOf(_bEnabled));
// in this context the "ID" is meant to refer to a step of the dialog
xRMItemPSet.setPropertyValue("ID", new Integer(_ID));
m_xRMIndexCont.insertByIndex(Index, oRoadmapItem);
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java
index e02af229a601..0ce02128ca79 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java
@@ -229,7 +229,7 @@ public class CustomizeView extends JPanel
com.sun.star.beans.PropertyValue[] lProperties = new com.sun.star.beans.PropertyValue[1];
lProperties[0] = new com.sun.star.beans.PropertyValue();
lProperties[0].Name = m_sProp;
- lProperties[0].Value = new Boolean(bState);
+ lProperties[0].Value = Boolean.valueOf(bState);
// execute (dispatch) it into the frame
if (m_xFrame==null)
diff --git a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/LinguisticExamples.java b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/LinguisticExamples.java
index c7099bb19ef4..887d8f35ffa3 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/LinguisticExamples.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/LinguisticExamples.java
@@ -174,7 +174,7 @@ public class LinguisticExamples
PropertyValue[] aProps = new PropertyValue[1];
aProps[0] = new PropertyValue();
aProps[0].Name = "IsGermanPreReform";
- aProps[0].Value = new Boolean( true );
+ aProps[0].Value = Boolean.TRUE;
GetSpell();
@@ -292,7 +292,7 @@ public class LinguisticExamples
// set a spellchecker and hyphenator property value to a defined state
try {
- aLinguProps.setPropertyValue("IsGermanPreReform", new Boolean(true));
+ aLinguProps.setPropertyValue("IsGermanPreReform", Boolean.TRUE);
} catch (Exception e) {
}
@@ -305,7 +305,7 @@ public class LinguisticExamples
// event that eventually results in the listeners
// 'processLinguServiceEvent' function being called
try {
- aLinguProps.setPropertyValue("IsGermanPreReform", new Boolean(false));
+ aLinguProps.setPropertyValue("IsGermanPreReform", Boolean.FALSE);
} catch (Exception e) {
}
diff --git a/odk/examples/DevelopersGuide/OfficeDev/Number_Formats.java b/odk/examples/DevelopersGuide/OfficeDev/Number_Formats.java
index 31643329ad5a..0f7e25851a4d 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/Number_Formats.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/Number_Formats.java
@@ -175,7 +175,7 @@ public class Number_Formats
UnoRuntime.queryInterface(com.sun.star.beans.XPropertySet.class,
xIndexAccess.getByIndex(1));
- xColPropSet.setPropertyValue( "OptimalWidth", new Boolean(true) );
+ xColPropSet.setPropertyValue( "OptimalWidth", Boolean.TRUE );
}
diff --git a/odk/examples/DevelopersGuide/Spreadsheet/ExampleDataPilotSource.java b/odk/examples/DevelopersGuide/Spreadsheet/ExampleDataPilotSource.java
index 41b0929b5403..e72861db0233 100644
--- a/odk/examples/DevelopersGuide/Spreadsheet/ExampleDataPilotSource.java
+++ b/odk/examples/DevelopersGuide/Spreadsheet/ExampleDataPilotSource.java
@@ -143,7 +143,7 @@ class ExampleMember implements com.sun.star.container.XNamed,
if ( aPropertyName.equals( "IsVisible" ) ||
aPropertyName.equals( "ShowDetails" ) )
{
- return new Boolean( true ); // always true
+ return Boolean.TRUE; // always true
}
else
throw new com.sun.star.beans.UnknownPropertyException();
@@ -352,7 +352,7 @@ class ExampleLevel implements
if ( aPropertyName.equals( "SubTotals" ) )
return new com.sun.star.sheet.GeneralFunction[0];
else if ( aPropertyName.equals( "ShowEmpty" ) )
- return new Boolean( true );
+ return Boolean.TRUE;
else
throw new com.sun.star.beans.UnknownPropertyException();
}
@@ -648,7 +648,7 @@ class ExampleDimension implements
if ( aPropertyName.equals( "Original" ) )
return null;
else if ( aPropertyName.equals( "IsDataLayoutDimension" ) )
- return new Boolean( nDimension == ExampleSettings.nDataDimension );
+ return Boolean.valueOf( nDimension == ExampleSettings.nDataDimension );
else if ( aPropertyName.equals( "Orientation" ) )
return eOrientation;
else if ( aPropertyName.equals( "Position" ) )
@@ -903,7 +903,7 @@ public class ExampleDataPilotSource
if ( aPropertyName.equals( "ColumnGrand" ) ||
aPropertyName.equals( "RowGrand" ) )
{
- return new Boolean( false ); // always false
+ return Boolean.FALSE; // always false
}
else
throw new com.sun.star.beans.UnknownPropertyException();
diff --git a/odk/examples/DevelopersGuide/Spreadsheet/GeneralTableSample.java b/odk/examples/DevelopersGuide/Spreadsheet/GeneralTableSample.java
index b018c55be9ef..f25a9cfded8f 100644
--- a/odk/examples/DevelopersGuide/Spreadsheet/GeneralTableSample.java
+++ b/odk/examples/DevelopersGuide/Spreadsheet/GeneralTableSample.java
@@ -167,7 +167,7 @@ public class GeneralTableSample extends SpreadsheetDocHelper
aColumnObj = xColumnsName.getByName( "D" );
xPropSet = UnoRuntime.queryInterface( com.sun.star.beans.XPropertySet.class, aColumnObj );
- xPropSet.setPropertyValue( "IsVisible", new Boolean( false ) );
+ xPropSet.setPropertyValue( "IsVisible", Boolean.FALSE );
// Get row 7 by index (interface XIndexAccess)
Object aRowObj = xRows.getByIndex( 6 );
diff --git a/odk/examples/DevelopersGuide/Spreadsheet/SpreadsheetSample.java b/odk/examples/DevelopersGuide/Spreadsheet/SpreadsheetSample.java
index 7f4652a2545d..4438f880440e 100644
--- a/odk/examples/DevelopersGuide/Spreadsheet/SpreadsheetSample.java
+++ b/odk/examples/DevelopersGuide/Spreadsheet/SpreadsheetSample.java
@@ -266,7 +266,7 @@ public class SpreadsheetSample extends SpreadsheetDocHelper
// from styles.ParagraphProperties
xPropSet.setPropertyValue( "ParaLeftMargin", new Integer( 500 ) );
// from table.CellProperties
- xPropSet.setPropertyValue( "IsCellBackgroundTransparent", new Boolean( false ) );
+ xPropSet.setPropertyValue( "IsCellBackgroundTransparent", Boolean.FALSE );
xPropSet.setPropertyValue( "CellBackColor", new Integer( 0x99CCFF ) );
@@ -317,7 +317,7 @@ public class SpreadsheetSample extends SpreadsheetDocHelper
// from com.sun.star.styles.ParagraphProperties
xPropSet.setPropertyValue( "ParaLeftMargin", new Integer( 500 ) );
// from com.sun.star.table.CellProperties
- xPropSet.setPropertyValue( "IsCellBackgroundTransparent", new Boolean( false ) );
+ xPropSet.setPropertyValue( "IsCellBackgroundTransparent", Boolean.FALSE );
xPropSet.setPropertyValue( "CellBackColor", new Integer( 0x99CCFF ) );
@@ -327,7 +327,7 @@ public class SpreadsheetSample extends SpreadsheetDocHelper
xReplaceDesc.setSearchString( "cell" );
xReplaceDesc.setReplaceString( "text" );
// property SearchWords searches for whole cells!
- xReplaceDesc.setPropertyValue( "SearchWords", new Boolean( false ) );
+ xReplaceDesc.setPropertyValue( "SearchWords", Boolean.FALSE );
int nCount = xReplace.replaceAll( xReplaceDesc );
System.out.println( "Search text replaced " + nCount + " times." );
@@ -648,7 +648,7 @@ public class SpreadsheetSample extends SpreadsheetDocHelper
// modify properties of the new style
xPropSet = UnoRuntime.queryInterface( com.sun.star.beans.XPropertySet.class, aCellStyle );
xPropSet.setPropertyValue( "CellBackColor", new Integer( 0x888888 ) );
- xPropSet.setPropertyValue( "IsCellBackgroundTransparent", new Boolean( false ) );
+ xPropSet.setPropertyValue( "IsCellBackgroundTransparent", Boolean.FALSE );
@@ -848,7 +848,7 @@ public class SpreadsheetSample extends SpreadsheetDocHelper
com.sun.star.beans.XPropertySet xValidPropSet = UnoRuntime.queryInterface(com.sun.star.beans.XPropertySet.class,
xCellPropSet.getPropertyValue( "Validation" ));
xValidPropSet.setPropertyValue( "Type", com.sun.star.sheet.ValidationType.DECIMAL );
- xValidPropSet.setPropertyValue( "ShowErrorMessage", new Boolean( true ) );
+ xValidPropSet.setPropertyValue( "ShowErrorMessage", Boolean.TRUE );
xValidPropSet.setPropertyValue( "ErrorMessage", "This is an invalid value!" );
xValidPropSet.setPropertyValue( "ErrorAlertStyle", com.sun.star.sheet.ValidationAlertStyle.STOP );
// condition
@@ -1117,7 +1117,7 @@ public class SpreadsheetSample extends SpreadsheetDocHelper
aFilterFields[0].NumericValue = 1998;
xFilterDesc.setFilterFields( aFilterFields );
com.sun.star.beans.XPropertySet xFilterProp = UnoRuntime.queryInterface( com.sun.star.beans.XPropertySet.class, xFilterDesc );
- xFilterProp.setPropertyValue( "ContainsHeader", new Boolean( true ) );
+ xFilterProp.setPropertyValue( "ContainsHeader", Boolean.TRUE );
xFilter.filter( xFilterDesc );
@@ -1150,7 +1150,7 @@ public class SpreadsheetSample extends SpreadsheetDocHelper
aSortDesc[0].Value = aSortFields;
aSortDesc[1] = new com.sun.star.beans.PropertyValue();
aSortDesc[1].Name = "ContainsHeader";
- aSortDesc[1].Value = new Boolean( true );
+ aSortDesc[1].Value = Boolean.TRUE;
com.sun.star.util.XSortable xSort = UnoRuntime.queryInterface( com.sun.star.util.XSortable.class, xRange );
xSort.sort( aSortDesc );
@@ -1207,7 +1207,7 @@ public class SpreadsheetSample extends SpreadsheetDocHelper
com.sun.star.sheet.XCellRangeReferrer xRef = UnoRuntime.queryInterface( com.sun.star.sheet.XCellRangeReferrer.class, aRangeObj );
com.sun.star.table.XCellRange xResultRange = xRef.getReferredCells();
com.sun.star.beans.XPropertySet xResultProp = UnoRuntime.queryInterface( com.sun.star.beans.XPropertySet.class, xResultRange );
- xResultProp.setPropertyValue( "IsCellBackgroundTransparent", new Boolean( false ) );
+ xResultProp.setPropertyValue( "IsCellBackgroundTransparent", Boolean.FALSE );
xResultProp.setPropertyValue( "CellBackColor", new Integer( 0xFFFFCC ) );
}
}
diff --git a/odk/examples/DevelopersGuide/Spreadsheet/ViewSample.java b/odk/examples/DevelopersGuide/Spreadsheet/ViewSample.java
index d522b09cde5a..c313fa193d18 100644
--- a/odk/examples/DevelopersGuide/Spreadsheet/ViewSample.java
+++ b/odk/examples/DevelopersGuide/Spreadsheet/ViewSample.java
@@ -89,13 +89,13 @@ public class ViewSample extends SpreadsheetDocHelper
com.sun.star.sheet.XCellRangeReferrer xRefer = UnoRuntime.queryInterface( com.sun.star.sheet.XCellRangeReferrer.class, aPane );
com.sun.star.table.XCellRange xRange = xRefer.getReferredCells();
com.sun.star.beans.XPropertySet xRangeProp = UnoRuntime.queryInterface( com.sun.star.beans.XPropertySet.class, xRange );
- xRangeProp.setPropertyValue( "IsCellBackgroundTransparent", new Boolean( false ) );
+ xRangeProp.setPropertyValue( "IsCellBackgroundTransparent", Boolean.FALSE );
xRangeProp.setPropertyValue( "CellBackColor", new Integer( 0xFFFFCC ) );
// --- View settings ---
// change the view to display green grid lines
com.sun.star.beans.XPropertySet xProp = UnoRuntime.queryInterface( com.sun.star.beans.XPropertySet.class, xController );
- xProp.setPropertyValue( "ShowGrid", new Boolean(true) );
+ xProp.setPropertyValue( "ShowGrid", Boolean.TRUE );
xProp.setPropertyValue( "GridColor", new Integer(0x00CC00) );
// --- Range selection ---
@@ -109,7 +109,7 @@ public class ViewSample extends SpreadsheetDocHelper
aArguments[0].Value = "Please select a cell range (e.g. C4:E6)";
aArguments[1] = new com.sun.star.beans.PropertyValue();
aArguments[1].Name = "CloseOnMouseRelease";
- aArguments[1].Value = new Boolean(true);
+ aArguments[1].Value = Boolean.TRUE;
xRngSel.startRangeSelection( aArguments );
synchronized (aListener)
{
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));
diff --git a/odk/examples/DevelopersGuide/UCB/ResourceRemover.java b/odk/examples/DevelopersGuide/UCB/ResourceRemover.java
index 0efa68a00d8e..b55bbae7fe4e 100644
--- a/odk/examples/DevelopersGuide/UCB/ResourceRemover.java
+++ b/odk/examples/DevelopersGuide/UCB/ResourceRemover.java
@@ -81,7 +81,7 @@ public class ResourceRemover {
// Destroy a resource physically...
- Boolean deletePhysically = new Boolean( true );
+ Boolean deletePhysically = Boolean.TRUE;
// Execute command "delete".
m_helper.executeCommand( m_content, "delete", deletePhysically );
diff --git a/odk/examples/java/ConverterServlet/ConverterServlet.java b/odk/examples/java/ConverterServlet/ConverterServlet.java
index be1b5cbc4ea2..379d75814dba 100644
--- a/odk/examples/java/ConverterServlet/ConverterServlet.java
+++ b/odk/examples/java/ConverterServlet/ConverterServlet.java
@@ -265,7 +265,7 @@ public class ConverterServlet extends HttpServlet {
// Setting the flag for hidding the open document
propertyvalue[ 0 ] = new PropertyValue();
propertyvalue[ 0 ].Name = "Hidden";
- propertyvalue[ 0 ].Value = new Boolean(true);
+ propertyvalue[ 0 ].Value = Boolean.TRUE;
// Loading the wanted document
Object objectDocumentToStore =
@@ -282,7 +282,7 @@ public class ConverterServlet extends HttpServlet {
// Setting the flag for overwriting
propertyvalue[ 0 ] = new PropertyValue();
propertyvalue[ 0 ].Name = "Overwrite";
- propertyvalue[ 0 ].Value = new Boolean(true);
+ propertyvalue[ 0 ].Value = Boolean.TRUE;
// Setting the filter name
propertyvalue[ 1 ] = new PropertyValue();
propertyvalue[ 1 ].Name = "FilterName";
diff --git a/odk/examples/java/DocumentHandling/DocumentConverter.java b/odk/examples/java/DocumentHandling/DocumentConverter.java
index aeb6f022d2ca..35002fb5de1b 100644
--- a/odk/examples/java/DocumentHandling/DocumentConverter.java
+++ b/odk/examples/java/DocumentHandling/DocumentConverter.java
@@ -103,7 +103,7 @@ public class DocumentConverter {
new com.sun.star.beans.PropertyValue[1];
propertyValues[0] = new com.sun.star.beans.PropertyValue();
propertyValues[0].Name = "Hidden";
- propertyValues[0].Value = new Boolean(true);
+ propertyValues[0].Value = Boolean.TRUE;
Object oDocToStore =
DocumentConverter.xCompLoader.loadComponentFromURL(
@@ -120,7 +120,7 @@ public class DocumentConverter {
// Setting the flag for overwriting
propertyValues[0] = new com.sun.star.beans.PropertyValue();
propertyValues[0].Name = "Overwrite";
- propertyValues[0].Value = new Boolean(true);
+ propertyValues[0].Value = Boolean.TRUE;
// Setting the filter name
propertyValues[1] = new com.sun.star.beans.PropertyValue();
propertyValues[1].Name = "FilterName";
diff --git a/odk/examples/java/DocumentHandling/DocumentSaver.java b/odk/examples/java/DocumentHandling/DocumentSaver.java
index 052b344a3d2e..42a99e91b5c9 100644
--- a/odk/examples/java/DocumentHandling/DocumentSaver.java
+++ b/odk/examples/java/DocumentHandling/DocumentSaver.java
@@ -86,7 +86,7 @@ public class DocumentSaver {
new com.sun.star.beans.PropertyValue[1];
propertyValue[0] = new com.sun.star.beans.PropertyValue();
propertyValue[0].Name = "Hidden";
- propertyValue[0].Value = new Boolean(true);
+ propertyValue[0].Value = Boolean.TRUE;
Object oDocToStore = xCompLoader.loadComponentFromURL(
sLoadUrl.toString(), "_blank", 0, propertyValue );
@@ -97,7 +97,7 @@ public class DocumentSaver {
propertyValue = new com.sun.star.beans.PropertyValue[ 2 ];
propertyValue[0] = new com.sun.star.beans.PropertyValue();
propertyValue[0].Name = "Overwrite";
- propertyValue[0].Value = new Boolean(true);
+ propertyValue[0].Value = Boolean.TRUE;
propertyValue[1] = new com.sun.star.beans.PropertyValue();
propertyValue[1].Name = "FilterName";
propertyValue[1].Value = "StarOffice XML (Writer)";
diff --git a/odk/examples/java/Drawing/SDraw.java b/odk/examples/java/Drawing/SDraw.java
index a70a9288e01f..54404e244de6 100644
--- a/odk/examples/java/Drawing/SDraw.java
+++ b/odk/examples/java/Drawing/SDraw.java
@@ -238,7 +238,7 @@ public class SDraw {
try {
xSPS.setPropertyValue("FillColor", new Integer(getCol(r,g,b)));
- xSPS.setPropertyValue("Shadow", new Boolean(true));
+ xSPS.setPropertyValue("Shadow", Boolean.TRUE);
} catch (Exception e) {
System.err.println("Can't change colors " + e);
e.printStackTrace(System.err);
diff --git a/odk/examples/java/EmbedDocument/Container1/EmbedContApp.java b/odk/examples/java/EmbedDocument/Container1/EmbedContApp.java
index fad4b844466a..d419063b6879 100644
--- a/odk/examples/java/EmbedDocument/Container1/EmbedContApp.java
+++ b/odk/examples/java/EmbedDocument/Container1/EmbedContApp.java
@@ -795,7 +795,7 @@ public class EmbedContApp extends Applet implements MouseListener, XEmbeddedClie
aMedDescr[0].Name = "URL";
aMedDescr[0].Value = (Object) aFileURI;
aMedDescr[1].Name = "ReadOnly";
- aMedDescr[1].Value = (Object) new Boolean( false );
+ aMedDescr[1].Value = (Object) Boolean.FALSE;
Object oEmbObj = xEmbedFactory.createInstanceInitFromMediaDescriptor( m_xStorage,
"EmbedSub",
aMedDescr );
diff --git a/odk/examples/java/Spreadsheet/ChartTypeChange.java b/odk/examples/java/Spreadsheet/ChartTypeChange.java
index 20fbfadb971b..271433890617 100644
--- a/odk/examples/java/Spreadsheet/ChartTypeChange.java
+++ b/odk/examples/java/Spreadsheet/ChartTypeChange.java
@@ -162,7 +162,7 @@ public class ChartTypeChange {
XPropertySet xPropSet = UnoRuntime.queryInterface(
XPropertySet.class, xDiagram );
- xPropSet.setPropertyValue( "Dim3D", new Boolean( booleanIs3D ) );
+ xPropSet.setPropertyValue( "Dim3D", Boolean.valueOf( booleanIs3D ) );
xChartDoc.setDiagram(xDiagram);
}
diff --git a/odk/examples/java/Spreadsheet/SCalc.java b/odk/examples/java/Spreadsheet/SCalc.java
index 8f4e1d98982c..a303fafabc65 100644
--- a/odk/examples/java/Spreadsheet/SCalc.java
+++ b/odk/examples/java/Spreadsheet/SCalc.java
@@ -138,7 +138,7 @@ public class SCalc {
oStyleFamilyNameContainer.insertByName("My Style", oInt1);
XPropertySet oCPS1 = UnoRuntime.queryInterface(
XPropertySet.class, oInt1 );
- oCPS1.setPropertyValue("IsCellBackgroundTransparent", new Boolean(false));
+ oCPS1.setPropertyValue("IsCellBackgroundTransparent", Boolean.FALSE);
oCPS1.setPropertyValue("CellBackColor",new Integer(6710932));
oCPS1.setPropertyValue("CharColor",new Integer(16777215));
XInterface oInt2 = (XInterface) oDocMSF.createInstance(
@@ -146,7 +146,7 @@ public class SCalc {
oStyleFamilyNameContainer.insertByName("My Style2", oInt2);
XPropertySet oCPS2 = UnoRuntime.queryInterface(
XPropertySet.class, oInt2 );
- oCPS2.setPropertyValue("IsCellBackgroundTransparent", new Boolean(false));
+ oCPS2.setPropertyValue("IsCellBackgroundTransparent", Boolean.FALSE);
oCPS2.setPropertyValue("CellBackColor",new Integer(13421823));
} catch (Exception e) {
e.printStackTrace(System.err);
@@ -309,7 +309,7 @@ public class SCalc {
System.out.println("Change Diagramm to 3D");
XPropertySet oCPS = UnoRuntime.queryInterface(
XPropertySet.class, oDiag );
- oCPS.setPropertyValue("Dim3D", new Boolean(true));
+ oCPS.setPropertyValue("Dim3D", Boolean.TRUE);
System.out.println("Change the title");
Thread.sleep(200);
XPropertySet oTPS = UnoRuntime.queryInterface(
diff --git a/odk/examples/java/Storage/TestHelper.java b/odk/examples/java/Storage/TestHelper.java
index 9fa2faff086d..3d95f7952203 100644
--- a/odk/examples/java/Storage/TestHelper.java
+++ b/odk/examples/java/Storage/TestHelper.java
@@ -80,7 +80,7 @@ public class TestHelper {
try
{
xPropSet.setPropertyValue( "MediaType", sMediaType );
- xPropSet.setPropertyValue( "Compressed", new Boolean( bCompressed ) );
+ xPropSet.setPropertyValue( "Compressed", Boolean.valueOf( bCompressed ) );
}
catch( Exception e )
{
@@ -208,7 +208,7 @@ public class TestHelper {
// set properties to the stream
try
{
- xPropSet.setPropertyValue( "Encrypted", new Boolean( bEncrypted ) );
+ xPropSet.setPropertyValue( "Encrypted", Boolean.valueOf( bEncrypted ) );
}
catch( Exception e )
{
@@ -711,7 +711,7 @@ public class TestHelper {
{
try
{
- xTempFileProps.setPropertyValue( "RemoveFile", new Boolean( false ) );
+ xTempFileProps.setPropertyValue( "RemoveFile", Boolean.FALSE );
sResult = AnyConverter.toString( xTempFileProps.getPropertyValue( "Uri" ) );
}
catch( Exception e )
diff --git a/odk/examples/java/Text/BookmarkInsertion.java b/odk/examples/java/Text/BookmarkInsertion.java
index bb5a44e3413c..3358e23ebcbb 100644
--- a/odk/examples/java/Text/BookmarkInsertion.java
+++ b/odk/examples/java/Text/BookmarkInsertion.java
@@ -160,7 +160,7 @@ public class BookmarkInsertion {
com.sun.star.beans.XPropertySet.class, xSearchDescriptor);
xPropertySet.setPropertyValue("SearchRegularExpression",
- new Boolean( true ) );
+ Boolean.TRUE );
xSearchInterface = (com.sun.star.uno.XInterface)
xSearchable.findFirst(xSearchDescriptor);
diff --git a/odk/examples/java/Text/SWriter.java b/odk/examples/java/Text/SWriter.java
index d96c583ce6b5..393edc1c01d5 100644
--- a/odk/examples/java/Text/SWriter.java
+++ b/odk/examples/java/Text/SWriter.java
@@ -155,9 +155,9 @@ public class SWriter {
// Change the BackColor
try {
- xTTPS.setPropertyValue("BackTransparent", new Boolean(false));
+ xTTPS.setPropertyValue("BackTransparent", Boolean.FALSE);
xTTPS.setPropertyValue("BackColor",new Integer(13421823));
- xTTRowPS.setPropertyValue("BackTransparent", new Boolean(false));
+ xTTRowPS.setPropertyValue("BackTransparent", Boolean.FALSE);
xTTRowPS.setPropertyValue("BackColor",new Integer(6710932));
} catch (Exception e) {
@@ -206,7 +206,7 @@ public class SWriter {
// Change the CharColor and add a Shadow
try {
xTCPS.setPropertyValue("CharColor",new Integer(255));
- xTCPS.setPropertyValue("CharShadowed", new Boolean(true));
+ xTCPS.setPropertyValue("CharShadowed", Boolean.TRUE);
} catch (Exception e) {
System.err.println("Couldn't change the color " + e);
e.printStackTrace(System.err);
@@ -316,7 +316,7 @@ public class SWriter {
// Change the CharColor and add a Shadow
try {
xTCPS.setPropertyValue("CharColor",new Integer(65536));
- xTCPS.setPropertyValue("CharShadowed", new Boolean(false));
+ xTCPS.setPropertyValue("CharShadowed", Boolean.FALSE);
} catch (Exception e) {
System.err.println("Couldn't change the color " + e);
e.printStackTrace(System.err);
diff --git a/odk/examples/java/Text/StyleCreation.java b/odk/examples/java/Text/StyleCreation.java
index a5ae0cc790f0..04207407c41d 100644
--- a/odk/examples/java/Text/StyleCreation.java
+++ b/odk/examples/java/Text/StyleCreation.java
@@ -99,7 +99,7 @@ public class StyleCreation {
new Float( com.sun.star.awt.FontWeight.BOLD ) );
System.out.println( "set the font attribute 'Bold'" );
- xPropertySet.setPropertyValue("CharAutoKerning", new Boolean( true ) );
+ xPropertySet.setPropertyValue("CharAutoKerning", Boolean.TRUE );
System.out.println( "set the paragraph attribute 'AutoKerning'" );
xPropertySet.setPropertyValue("ParaAdjust",
new Integer( com.sun.star.style.ParagraphAdjust.CENTER_value ) );
diff --git a/package/qa/ofopxmlstorages/TestHelper.java b/package/qa/ofopxmlstorages/TestHelper.java
index 7fbf01203c3f..16ded7037459 100644
--- a/package/qa/ofopxmlstorages/TestHelper.java
+++ b/package/qa/ofopxmlstorages/TestHelper.java
@@ -88,7 +88,7 @@ public class TestHelper {
try
{
xPropSet.setPropertyValue( "MediaType", sMediaType );
- xPropSet.setPropertyValue( "Compressed", new Boolean( bCompressed ) );
+ xPropSet.setPropertyValue( "Compressed", Boolean.valueOf( bCompressed ) );
}
catch( Exception e )
{
@@ -736,7 +736,7 @@ public class TestHelper {
{
try
{
- xTempFileProps.setPropertyValue( "RemoveFile", new Boolean( false ) );
+ xTempFileProps.setPropertyValue( "RemoveFile", Boolean.FALSE );
sResult = AnyConverter.toString( xTempFileProps.getPropertyValue( "Uri" ) );
}
catch( Exception e )
diff --git a/package/qa/storages/RegressionTest_i27773.java b/package/qa/storages/RegressionTest_i27773.java
index 481e10948d5d..7f0855f5f86e 100644
--- a/package/qa/storages/RegressionTest_i27773.java
+++ b/package/qa/storages/RegressionTest_i27773.java
@@ -72,7 +72,7 @@ public class RegressionTest_i27773 implements StorageTest {
{
String sTempURL = AnyConverter.toString( xPropSet.getPropertyValue( "Uri" ) );
// m_aTestHelper.Message( "URL: " + sTempURL );
- xPropSet.setPropertyValue( "RemoveFile", new Boolean( false ) );
+ xPropSet.setPropertyValue( "RemoveFile", Boolean.FALSE );
}
catch ( Exception e )
{
diff --git a/package/qa/storages/TestHelper.java b/package/qa/storages/TestHelper.java
index 74e944b9ee7f..2f430dd81b1f 100644
--- a/package/qa/storages/TestHelper.java
+++ b/package/qa/storages/TestHelper.java
@@ -87,7 +87,7 @@ public class TestHelper {
try
{
xPropSet.setPropertyValue( "MediaType", sMediaType );
- xPropSet.setPropertyValue( "Compressed", new Boolean( bCompressed ) );
+ xPropSet.setPropertyValue( "Compressed", Boolean.valueOf( bCompressed ) );
}
catch( Exception e )
{
@@ -313,7 +313,7 @@ public class TestHelper {
// set properties to the stream
try
{
- xPropSet.setPropertyValue( "UseCommonStoragePasswordEncryption", new Boolean( bEncrypted ) );
+ xPropSet.setPropertyValue( "UseCommonStoragePasswordEncryption", Boolean.valueOf( bEncrypted ) );
}
catch( Exception e )
{
@@ -503,7 +503,7 @@ public class TestHelper {
// set properties to the stream
try
{
- xPropSet.setPropertyValue( "UseCommonStoragePasswordEncryption", new Boolean( bEncrypted ) );
+ xPropSet.setPropertyValue( "UseCommonStoragePasswordEncryption", Boolean.valueOf( bEncrypted ) );
}
catch( Exception e )
{
@@ -1265,7 +1265,7 @@ public class TestHelper {
{
try
{
- xTempFileProps.setPropertyValue( "RemoveFile", new Boolean( false ) );
+ xTempFileProps.setPropertyValue( "RemoveFile", Boolean.FALSE );
sResult = AnyConverter.toString( xTempFileProps.getPropertyValue( "Uri" ) );
}
catch( Exception e )
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) {
diff --git a/sc/qa/complex/calcPreview/ViewForwarder.java b/sc/qa/complex/calcPreview/ViewForwarder.java
index 157f84afa204..08291afaba11 100644
--- a/sc/qa/complex/calcPreview/ViewForwarder.java
+++ b/sc/qa/complex/calcPreview/ViewForwarder.java
@@ -820,7 +820,7 @@ public class ViewForwarder {
}
try {
- xPropSet.setPropertyValue("PrintHeaders", new Boolean(true));
+ xPropSet.setPropertyValue("PrintHeaders", Boolean.TRUE);
} catch(com.sun.star.lang.WrappedTargetException e) {
fail(e.getMessage());
return;
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");
diff --git a/scripting/examples/java/Newsgroup/OfficeAttachment.java b/scripting/examples/java/Newsgroup/OfficeAttachment.java
index 41ccfd3dd591..8e36d1fb47f1 100644
--- a/scripting/examples/java/Newsgroup/OfficeAttachment.java
+++ b/scripting/examples/java/Newsgroup/OfficeAttachment.java
@@ -105,7 +105,7 @@ public class OfficeAttachment
PropertyValue[] propertyvalue_html = new PropertyValue[2];
propertyvalue_html[0] = new PropertyValue();
propertyvalue_html[0].Name = new String("Overwrite");
- propertyvalue_html[0].Value = new Boolean(true);
+ propertyvalue_html[0].Value = Boolean.TRUE;
propertyvalue_html[1] = new PropertyValue();
propertyvalue_html[1].Name = ("FilterName");
propertyvalue_html[1].Value = new String("swriter: HTML (StarWriter)");
@@ -131,10 +131,10 @@ public class OfficeAttachment
PropertyValue[] propertyvalue_sxw = new PropertyValue[2];
propertyvalue_sxw[0] = new PropertyValue();
propertyvalue_sxw[0].Name = new String("Overwrite");
- propertyvalue_sxw[0].Value = new Boolean(true);
+ propertyvalue_sxw[0].Value = Boolean.TRUE;
propertyvalue_sxw[1] = new PropertyValue();
propertyvalue_sxw[1].Name = new String("Overwrite");
- propertyvalue_sxw[1].Value = new Boolean(true);
+ propertyvalue_sxw[1].Value = Boolean.TRUE;
storedDoc.storeAsURL( filenameURL + ".sxw", propertyvalue_sxw);
File homedir = new File( templocationSystem );
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/options/OfficeSettings.java b/scripting/java/org/openoffice/netbeans/modules/office/options/OfficeSettings.java
index 1b0283e96678..a56cdfa97779 100644
--- a/scripting/java/org/openoffice/netbeans/modules/office/options/OfficeSettings.java
+++ b/scripting/java/org/openoffice/netbeans/modules/office/options/OfficeSettings.java
@@ -91,7 +91,7 @@ public class OfficeSettings extends SystemOption {
}
public void setWarnBeforeDocDeploy(boolean value) {
- putProperty(WARN_BEFORE_DOC_DEPLOY, new Boolean(value), true);
+ putProperty(WARN_BEFORE_DOC_DEPLOY, Boolean.valueOf(value), true);
}
public boolean getWarnBeforeParcelDelete() {
@@ -99,7 +99,7 @@ public class OfficeSettings extends SystemOption {
}
public void setWarnBeforeParcelDelete(boolean value) {
- putProperty(WARN_BEFORE_PARCEL_DELETE, new Boolean(value), true);
+ putProperty(WARN_BEFORE_PARCEL_DELETE, Boolean.valueOf(value), true);
}
public boolean getWarnAfterDirDeploy() {
@@ -107,7 +107,7 @@ public class OfficeSettings extends SystemOption {
}
public void setWarnAfterDirDeploy(boolean value) {
- putProperty(WARN_AFTER_DIR_DEPLOY, new Boolean(value), true);
+ putProperty(WARN_AFTER_DIR_DEPLOY, Boolean.valueOf(value), true);
}
public boolean getWarnBeforeMount() {
@@ -115,6 +115,6 @@ public class OfficeSettings extends SystemOption {
}
public void setWarnBeforeMount(boolean value) {
- putProperty(WARN_BEFORE_MOUNT, new Boolean(value), true);
+ putProperty(WARN_BEFORE_MOUNT, Boolean.valueOf(value), true);
}
}
diff --git a/scripting/workben/ifc/scripting/_XScriptSecurity.java b/scripting/workben/ifc/scripting/_XScriptSecurity.java
index bbaf7dd02ea0..4f6abe8edbf8 100644
--- a/scripting/workben/ifc/scripting/_XScriptSecurity.java
+++ b/scripting/workben/ifc/scripting/_XScriptSecurity.java
@@ -212,7 +212,7 @@ public class _XScriptSecurity extends MultiMethodTest {
// we don't want to cache the write
PropertyValue aModeArg = new PropertyValue();
aModeArg.Name="lazywrite";
- aModeArg.Value=new Boolean(false);
+ aModeArg.Value=Boolean.FALSE;
Object[] aArgs = new Object[2];
aArgs[0]=aPathArg;
@@ -253,7 +253,7 @@ public class _XScriptSecurity extends MultiMethodTest {
// we don't want to cache the write
PropertyValue aModeArg = new PropertyValue();
aModeArg.Name="lazywrite";
- aModeArg.Value=new Boolean(false);
+ aModeArg.Value=Boolean.FALSE;
Object[] aArgs = new Object[2];
aArgs[0]=aPathArg;
@@ -283,11 +283,11 @@ public class _XScriptSecurity extends MultiMethodTest {
Boolean bConfirm = null;
if( ( confirm != null ) && ( confirm.equals("true") ) )
{
- bConfirm = new Boolean( true );
+ bConfirm = Boolean.TRUE;
}
else
{
- bConfirm = new Boolean( false );
+ bConfirm = Boolean.FALSE;
}
log.println("setting Confirmation");
xNameReplace.replaceByName( "Confirmation", bConfirm );
@@ -295,11 +295,11 @@ public class _XScriptSecurity extends MultiMethodTest {
Boolean bWarning = null;
if( ( warning != null ) && ( warning.equals("true") ) )
{
- bWarning = new Boolean( true );
+ bWarning = Boolean.TRUE;
}
else
{
- bWarning = new Boolean( false );
+ bWarning = Boolean.FALSE;
}
log.println("setting Warning");
xNameReplace.replaceByName( "Warning", bWarning );
diff --git a/scripting/workben/installer/IdeVersion.java b/scripting/workben/installer/IdeVersion.java
index 72635e25c721..65b18f61338f 100644
--- a/scripting/workben/installer/IdeVersion.java
+++ b/scripting/workben/installer/IdeVersion.java
@@ -253,7 +253,7 @@ class MyTableModelIDE extends AbstractTableModel {
if ((path = properties.getProperty(key)) != null) {
ArrayList<Object> row = new ArrayList<Object>();
- row.add(0, new Boolean(false));
+ row.add(0, Boolean.FALSE);
row.add(1, key);
if (key.length() > ((String)longValues[1]).length()) {
diff --git a/scripting/workben/installer/Version.java b/scripting/workben/installer/Version.java
index 38da3f21befb..37bc7dde043c 100644
--- a/scripting/workben/installer/Version.java
+++ b/scripting/workben/installer/Version.java
@@ -267,7 +267,7 @@ class MyTableModel extends AbstractTableModel {
if ( pkgChk.exists() )
{
ArrayList<Object> row = new ArrayList<Object>();
- row.add(0, new Boolean(false));
+ row.add(0, Boolean.FALSE);
row.add(1, key);
if (key.length() > ((String)longValues[1]).length()) {
diff --git a/sot/qa/complex/olesimplestorage/Test01.java b/sot/qa/complex/olesimplestorage/Test01.java
index 68f5fd4a6258..c4359d7c1415 100644
--- a/sot/qa/complex/olesimplestorage/Test01.java
+++ b/sot/qa/complex/olesimplestorage/Test01.java
@@ -51,7 +51,7 @@ public class Test01 implements OLESimpleStorageTest
//create OLESimpleStorage based on it
Object pArgs[] = new Object[2];
pArgs[0] = xTempFile;
- pArgs[1] = new Boolean( true );
+ pArgs[1] = Boolean.TRUE;
Object oOLESimpleStorage = m_xMSF.createInstanceWithArguments ( "com.sun.star.embed.OLESimpleStorage", pArgs );
XOLESimpleStorage xOLESimpleStorage = UnoRuntime.queryInterface(XOLESimpleStorage.class, oOLESimpleStorage);
m_aTestHelper.Message ( "OLESimpleStorage based on XStream created." );
diff --git a/sw/qa/complex/writer/LoadSaveTest.java b/sw/qa/complex/writer/LoadSaveTest.java
index 95565f283b62..323eb8f4e8d5 100644
--- a/sw/qa/complex/writer/LoadSaveTest.java
+++ b/sw/qa/complex/writer/LoadSaveTest.java
@@ -112,7 +112,7 @@ public class LoadSaveTest
PropertyValue[] loadProps = new PropertyValue[1];
loadProps[0] = new PropertyValue();
loadProps[0].Name = "ReadOnly";
- loadProps[0].Value = new Boolean(true);
+ loadProps[0].Value = Boolean.TRUE;
String sourceFile = m_fileURL + m_SourceDir + fileName;
diff --git a/sw/qa/complex/writer/TextPortionEnumerationTest.java b/sw/qa/complex/writer/TextPortionEnumerationTest.java
index 973b976cc55e..dc6cf15ed8d2 100644
--- a/sw/qa/complex/writer/TextPortionEnumerationTest.java
+++ b/sw/qa/complex/writer/TextPortionEnumerationTest.java
@@ -3797,7 +3797,7 @@ public class TextPortionEnumerationTest
PropertyValue[] loadProps = new PropertyValue[1];
loadProps[0] = new PropertyValue();
loadProps[0].Name = "Hidden";
- loadProps[0].Value = new Boolean(true);
+ loadProps[0].Value = Boolean.TRUE;
xComp = util.DesktopTools.loadDoc(m_xMSF, file, loadProps);
diff --git a/swext/mediawiki/src/com/sun/star/wiki/Helper.java b/swext/mediawiki/src/com/sun/star/wiki/Helper.java
index f2ab089ac017..50f1ece057e3 100644
--- a/swext/mediawiki/src/com/sun/star/wiki/Helper.java
+++ b/swext/mediawiki/src/com/sun/star/wiki/Helper.java
@@ -220,7 +220,7 @@ public class Helper
try
{
XNameAccess xAccess = Helper.GetConfigNameAccess( xContext, "org.openoffice.Office.Custom.WikiExtension/Settings" );
- m_bShowInBrowser = new Boolean( AnyConverter.toBoolean( xAccess.getByName( "PreselectShowBrowser" ) ) );
+ m_bShowInBrowser = Boolean.valueOf( AnyConverter.toBoolean( xAccess.getByName( "PreselectShowBrowser" ) ) );
}
catch( com.sun.star.uno.Exception e )
{
@@ -235,10 +235,10 @@ public class Helper
{
try
{
- m_bShowInBrowser = new Boolean( bValue );
+ m_bShowInBrowser = Boolean.valueOf( bValue );
XPropertySet xProps = Helper.GetConfigProps( xContext, "org.openoffice.Office.Custom.WikiExtension/Settings" );
- xProps.setPropertyValue( "PreselectShowBrowser", new Boolean( bValue ) );
+ xProps.setPropertyValue( "PreselectShowBrowser", Boolean.valueOf( bValue ) );
XChangesBatch xBatch = UnoRuntime.queryInterface( XChangesBatch.class, xProps );
if ( xBatch != null )
xBatch.commitChanges();
diff --git a/swext/mediawiki/src/com/sun/star/wiki/WikiEditSettingDialog.java b/swext/mediawiki/src/com/sun/star/wiki/WikiEditSettingDialog.java
index be60ba30d8d8..fd3093df40a3 100644
--- a/swext/mediawiki/src/com/sun/star/wiki/WikiEditSettingDialog.java
+++ b/swext/mediawiki/src/com/sun/star/wiki/WikiEditSettingDialog.java
@@ -130,15 +130,15 @@ public class WikiEditSettingDialog extends WikiDialog
try
{
- GetPropSet( "UsernameField" ).setPropertyValue( "Enabled", new Boolean( bEnable ) );
- GetPropSet( "PasswordField" ).setPropertyValue( "Enabled", new Boolean( bEnable ) );
- GetPropSet( "OkButton" ).setPropertyValue( "Enabled", new Boolean( bEnable ) );
- GetPropSet( "HelpButton" ).setPropertyValue( "Enabled", new Boolean( bEnable ) );
+ GetPropSet( "UsernameField" ).setPropertyValue( "Enabled", Boolean.valueOf( bEnable ) );
+ GetPropSet( "PasswordField" ).setPropertyValue( "Enabled", Boolean.valueOf( bEnable ) );
+ GetPropSet( "OkButton" ).setPropertyValue( "Enabled", Boolean.valueOf( bEnable ) );
+ GetPropSet( "HelpButton" ).setPropertyValue( "Enabled", Boolean.valueOf( bEnable ) );
if ( bEnable )
{
- GetPropSet( "UrlField" ).setPropertyValue( "Enabled", new Boolean( m_bAllowURLChange ) );
- GetPropSet( "SaveBox" ).setPropertyValue( "Enabled", new Boolean( Helper.PasswordStoringIsAllowed( m_xContext ) ) );
+ GetPropSet( "UrlField" ).setPropertyValue( "Enabled", Boolean.valueOf( m_bAllowURLChange ) );
+ GetPropSet( "SaveBox" ).setPropertyValue( "Enabled", Boolean.valueOf( Helper.PasswordStoringIsAllowed( m_xContext ) ) );
if ( m_bAllowURLChange )
SetFocusTo( "UrlField" );
else
@@ -181,7 +181,7 @@ public class WikiEditSettingDialog extends WikiDialog
try
{
xSaveCheck.setPropertyValue( "State", new Short( bInitSaveCheckBox ? (short)1 : (short)0 ) );
- xSaveCheck.setPropertyValue( "Enabled", new Boolean( Helper.PasswordStoringIsAllowed( xContext ) ) );
+ xSaveCheck.setPropertyValue( "Enabled", Boolean.valueOf( Helper.PasswordStoringIsAllowed( xContext ) ) );
}
catch( Exception e )
{
diff --git a/swext/mediawiki/src/com/sun/star/wiki/WikiEditorImpl.java b/swext/mediawiki/src/com/sun/star/wiki/WikiEditorImpl.java
index 344dff27f4ef..22b344eea765 100644
--- a/swext/mediawiki/src/com/sun/star/wiki/WikiEditorImpl.java
+++ b/swext/mediawiki/src/com/sun/star/wiki/WikiEditorImpl.java
@@ -289,7 +289,7 @@ public final class WikiEditorImpl extends WeakBase
lProperties[0].Value = m_aFilterName;
lProperties[1] = new PropertyValue();
lProperties[1].Name = "Overwrite";
- lProperties[1].Value = new Boolean( true );
+ lProperties[1].Value = Boolean.TRUE;
sTemp2Url = Helper.CreateTempFile( m_xContext );
diff --git a/swext/mediawiki/src/com/sun/star/wiki/WikiOptionsEventHandlerImpl.java b/swext/mediawiki/src/com/sun/star/wiki/WikiOptionsEventHandlerImpl.java
index b44e0d9d7c44..c88633b70b74 100644
--- a/swext/mediawiki/src/com/sun/star/wiki/WikiOptionsEventHandlerImpl.java
+++ b/swext/mediawiki/src/com/sun/star/wiki/WikiOptionsEventHandlerImpl.java
@@ -102,7 +102,7 @@ public final class WikiOptionsEventHandlerImpl extends WeakBase
short [] pSel = (short []) xListProps.getPropertyValue( "SelectedItems" );
XPropertySet xEditProps = GetPropSet( "EditButton" );
XPropertySet xRemoveProps = GetPropSet( "RemoveButton" );
- Boolean bState = new Boolean( pSel.length != 0 );
+ Boolean bState = Boolean.valueOf( pSel.length != 0 );
xEditProps.setPropertyValue( "Enabled", bState );
xRemoveProps.setPropertyValue( "Enabled", bState );
diff --git a/swext/mediawiki/src/com/sun/star/wiki/WikiPropDialog.java b/swext/mediawiki/src/com/sun/star/wiki/WikiPropDialog.java
index 650348737ab1..1d6abff6948f 100644
--- a/swext/mediawiki/src/com/sun/star/wiki/WikiPropDialog.java
+++ b/swext/mediawiki/src/com/sun/star/wiki/WikiPropDialog.java
@@ -219,7 +219,7 @@ public class WikiPropDialog extends WikiDialog{
"AddButton" };
for ( int nInd = 0; nInd < pControls.length; nInd++ )
- GetPropSet( pControls[nInd] ).setPropertyValue( "Enabled", new Boolean( bEnable ) );
+ GetPropSet( pControls[nInd] ).setPropertyValue( "Enabled", Boolean.valueOf( bEnable ) );
if ( bEnable )
{
@@ -228,7 +228,7 @@ public class WikiPropDialog extends WikiDialog{
}
else
{
- GetPropSet( "SendButton" ).setPropertyValue( "Enabled", new Boolean( bEnable ) );
+ GetPropSet( "SendButton" ).setPropertyValue( "Enabled", Boolean.valueOf( bEnable ) );
SetFocusTo( "CancelButton" );
}
}
diff --git a/testtools/com/sun/star/comp/bridge/TestComponent.java b/testtools/com/sun/star/comp/bridge/TestComponent.java
index 65a10c008d11..ba50d56c1de9 100644
--- a/testtools/com/sun/star/comp/bridge/TestComponent.java
+++ b/testtools/com/sun/star/comp/bridge/TestComponent.java
@@ -1222,7 +1222,7 @@ public class TestComponent {
context,
new TestPolyStruct(Type.LONG),
new TestPolyStruct(new Any(Type.BOOLEAN, Boolean.TRUE)),
- new TestPolyStruct(new Boolean(true)),
+ new TestPolyStruct(Boolean.TRUE),
new TestPolyStruct(new Byte(Byte.MIN_VALUE)),
new TestPolyStruct(new Short(Short.MIN_VALUE)),
new TestPolyStruct(new Integer(Integer.MIN_VALUE)),
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();