summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/mod')
-rw-r--r--qadevOOo/tests/java/mod/_acceptor/Acceptor.java2
-rw-r--r--qadevOOo/tests/java/mod/_acceptor/uno/Acceptor.java2
-rw-r--r--qadevOOo/tests/java/mod/_brdgfctr/BridgeFactory.java2
-rw-r--r--qadevOOo/tests/java/mod/_bridgefac/uno/BridgeFactory.java2
-rw-r--r--qadevOOo/tests/java/mod/_connector/uno/Connector.java2
-rw-r--r--qadevOOo/tests/java/mod/_connectr/Connector.java2
-rw-r--r--qadevOOo/tests/java/mod/_dbaccess/ODatasourceBrowser.java2
-rw-r--r--qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java2
-rw-r--r--qadevOOo/tests/java/mod/_dbaccess/ORowSet.java4
-rw-r--r--qadevOOo/tests/java/mod/_dbaccess/OSingleSelectQueryComposer.java2
-rw-r--r--qadevOOo/tests/java/mod/_dbaccess/SbaXGridControl.java2
-rw-r--r--qadevOOo/tests/java/mod/_forms/ODatabaseForm.java8
-rw-r--r--qadevOOo/tests/java/mod/_forms/ODateModel.java2
-rw-r--r--qadevOOo/tests/java/mod/_forms/OTimeModel.java2
-rw-r--r--qadevOOo/tests/java/mod/_fwk/UIConfigurationManager.java2
-rw-r--r--qadevOOo/tests/java/mod/_pcr/ObjectInspectorModel.java4
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScAccessibleCsvRuler.java2
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupItemObj.java2
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupObj.java2
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupsObj.java2
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScDataPilotFieldObj.java2
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScDataPilotItemObj.java2
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScDataPilotItemsObj.java2
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScDataPilotTableObj.java2
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotItemsEnumeration.java2
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScStyleFamilyObj.java2
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScUniqueCellFormatsEnumeration.java4
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScUniqueCellFormatsObj.java2
-rw-r--r--qadevOOo/tests/java/mod/_sch/ChXDiagram.java4
-rw-r--r--qadevOOo/tests/java/mod/_sd/SdXCustomPresentationAccess.java2
-rw-r--r--qadevOOo/tests/java/mod/_sd/SdXImpressDocument.java2
-rw-r--r--qadevOOo/tests/java/mod/_sd/SdXShape.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/AccessibleBrowseBox.java2
-rw-r--r--qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxHeaderBar.java2
-rw-r--r--qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxHeaderCell.java2
-rw-r--r--qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTable.java2
-rw-r--r--qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTableCell.java2
-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/AccessiblePageShape.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/SwAccessiblePageView.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXMailMerge.java18
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXStyleFamily.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextFrameText.java2
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextGraphicObject.java8
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextGraphicObjects.java8
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextTable.java4
-rw-r--r--qadevOOo/tests/java/mod/_sw/SwXTextTables.java4
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoControlDialogModel.java24
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/UnoTreeControl.java16
-rw-r--r--qadevOOo/tests/java/mod/_uuresolver/UnoUrlResolver.java2
-rw-r--r--qadevOOo/tests/java/mod/_uuresolver/uno/UnoUrlResolver.java2
64 files changed, 105 insertions, 105 deletions
diff --git a/qadevOOo/tests/java/mod/_acceptor/Acceptor.java b/qadevOOo/tests/java/mod/_acceptor/Acceptor.java
index 1889fb60ade4..67c479485abd 100644
--- a/qadevOOo/tests/java/mod/_acceptor/Acceptor.java
+++ b/qadevOOo/tests/java/mod/_acceptor/Acceptor.java
@@ -101,7 +101,7 @@ public class Acceptor extends TestCase {
"socket,host=" + sOfficeHost + ",port=" + curPort) ;
// adding port number for freeing it.
- tEnv.addObjRelation("Acceptor.Port", new Integer(curPort)) ;
+ tEnv.addObjRelation("Acceptor.Port", Integer.valueOf(curPort)) ;
return tEnv ;
}
diff --git a/qadevOOo/tests/java/mod/_acceptor/uno/Acceptor.java b/qadevOOo/tests/java/mod/_acceptor/uno/Acceptor.java
index 209771546eb5..a8239a9fd4bd 100644
--- a/qadevOOo/tests/java/mod/_acceptor/uno/Acceptor.java
+++ b/qadevOOo/tests/java/mod/_acceptor/uno/Acceptor.java
@@ -96,7 +96,7 @@ public class Acceptor extends TestCase {
"socket,host=" + sOfficeHost + ",port=" + curPort) ;
// adding port number for freeing it.
- tEnv.addObjRelation("Acceptor.Port", new Integer(curPort)) ;
+ tEnv.addObjRelation("Acceptor.Port", Integer.valueOf(curPort)) ;
return tEnv ;
}
diff --git a/qadevOOo/tests/java/mod/_brdgfctr/BridgeFactory.java b/qadevOOo/tests/java/mod/_brdgfctr/BridgeFactory.java
index 41e8ce122612..00100fb90364 100644
--- a/qadevOOo/tests/java/mod/_brdgfctr/BridgeFactory.java
+++ b/qadevOOo/tests/java/mod/_brdgfctr/BridgeFactory.java
@@ -94,7 +94,7 @@ public class BridgeFactory extends TestCase {
"socket,host=" + sOfficeHost + ",port=" + curPort) ;
// adding port number for freeing it.
- tEnv.addObjRelation("Connector.Port", new Integer(curPort)) ;
+ tEnv.addObjRelation("Connector.Port", Integer.valueOf(curPort)) ;
return tEnv ;
}
diff --git a/qadevOOo/tests/java/mod/_bridgefac/uno/BridgeFactory.java b/qadevOOo/tests/java/mod/_bridgefac/uno/BridgeFactory.java
index 1392b6345ab8..295ced13fa76 100644
--- a/qadevOOo/tests/java/mod/_bridgefac/uno/BridgeFactory.java
+++ b/qadevOOo/tests/java/mod/_bridgefac/uno/BridgeFactory.java
@@ -92,7 +92,7 @@ public class BridgeFactory extends TestCase {
"socket,host=" + sOfficeHost + ",port=" + curPort) ;
// adding port number for freeing it.
- tEnv.addObjRelation("Connector.Port", new Integer(curPort)) ;
+ tEnv.addObjRelation("Connector.Port", Integer.valueOf(curPort)) ;
return tEnv ;
}
diff --git a/qadevOOo/tests/java/mod/_connector/uno/Connector.java b/qadevOOo/tests/java/mod/_connector/uno/Connector.java
index 341d4ebee8fc..b7920b1d3a47 100644
--- a/qadevOOo/tests/java/mod/_connector/uno/Connector.java
+++ b/qadevOOo/tests/java/mod/_connector/uno/Connector.java
@@ -97,7 +97,7 @@ public class Connector extends TestCase {
"socket,host=" + sOfficeHost + ",port=" + curPort) ;
// adding port number for freeing it.
- tEnv.addObjRelation("Connector.Port", new Integer(curPort)) ;
+ tEnv.addObjRelation("Connector.Port", Integer.valueOf(curPort)) ;
return tEnv ;
}
diff --git a/qadevOOo/tests/java/mod/_connectr/Connector.java b/qadevOOo/tests/java/mod/_connectr/Connector.java
index 2b5a35ba2eef..b4bd3caf366c 100644
--- a/qadevOOo/tests/java/mod/_connectr/Connector.java
+++ b/qadevOOo/tests/java/mod/_connectr/Connector.java
@@ -100,7 +100,7 @@ public class Connector extends TestCase {
"socket,host=" + sOfficeHost + ",port=" + curPort) ;
// adding port number for freeing it.
- tEnv.addObjRelation("Connector.Port", new Integer(curPort)) ;
+ tEnv.addObjRelation("Connector.Port", Integer.valueOf(curPort)) ;
return tEnv ;
}
diff --git a/qadevOOo/tests/java/mod/_dbaccess/ODatasourceBrowser.java b/qadevOOo/tests/java/mod/_dbaccess/ODatasourceBrowser.java
index bad73b7d8107..128995024f04 100644
--- a/qadevOOo/tests/java/mod/_dbaccess/ODatasourceBrowser.java
+++ b/qadevOOo/tests/java/mod/_dbaccess/ODatasourceBrowser.java
@@ -245,7 +245,7 @@ public class ODatasourceBrowser extends TestCase {
PropertyValue param2 = new PropertyValue();
param2.Name = "CommandType";
- param2.Value = new Integer(com.sun.star.sdb.CommandType.TABLE);
+ param2.Value = Integer.valueOf(com.sun.star.sdb.CommandType.TABLE);
params[1] = param2;
PropertyValue param3 = new PropertyValue();
diff --git a/qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java b/qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java
index ed6a7ea671ee..86eeeadcb357 100644
--- a/qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java
+++ b/qadevOOo/tests/java/mod/_dbaccess/OQueryDesign.java
@@ -208,7 +208,7 @@ public class OQueryDesign extends TestCase {
ExceptionParams[1] = ExceptionParam2;
PropertyValue ExceptionParam3 = new PropertyValue();
ExceptionParam3.Name = "QueryDesignView";
- ExceptionParam3.Value = new Integer(17);//Boolean.TRUE;
+ ExceptionParam3.Value = Integer.valueOf(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 6e06a400e511..be7877107b28 100644
--- a/qadevOOo/tests/java/mod/_dbaccess/ORowSet.java
+++ b/qadevOOo/tests/java/mod/_dbaccess/ORowSet.java
@@ -301,7 +301,7 @@ public class ORowSet extends TestCase {
rowSetProps.setPropertyValue("DataSourceName", dbSourceName);
rowSetProps.setPropertyValue("Command", tableName);
rowSetProps.setPropertyValue("CommandType",
- new Integer(CommandType.TABLE));
+ Integer.valueOf(CommandType.TABLE));
final XRowSet rowSet = UnoRuntime.queryInterface( XRowSet.class, m_rowSet);
rowSet.execute();
@@ -407,7 +407,7 @@ public class ORowSet extends TestCase {
: "SELECT \"_TEXT\" FROM \"" + tableName + "\" WHERE ( ( \"_TEXT\" = :param1 ) )";
rowSetProps.setPropertyValue( "DataSourceName", dbSourceName );
rowSetProps.setPropertyValue( "Command", sqlCommand );
- rowSetProps.setPropertyValue( "CommandType", new Integer(CommandType.COMMAND) );
+ rowSetProps.setPropertyValue( "CommandType", Integer.valueOf(CommandType.COMMAND) );
}
catch(Exception e)
{
diff --git a/qadevOOo/tests/java/mod/_dbaccess/OSingleSelectQueryComposer.java b/qadevOOo/tests/java/mod/_dbaccess/OSingleSelectQueryComposer.java
index e8287d43a289..1e3e3f4130b2 100644
--- a/qadevOOo/tests/java/mod/_dbaccess/OSingleSelectQueryComposer.java
+++ b/qadevOOo/tests/java/mod/_dbaccess/OSingleSelectQueryComposer.java
@@ -209,7 +209,7 @@ public class OSingleSelectQueryComposer extends TestCase {
xSetProp.setPropertyValue("DataSourceName", "Bibliography") ;
xSetProp.setPropertyValue("Command", "biblio") ;
xSetProp.setPropertyValue("CommandType",
- new Integer(CommandType.TABLE)) ;
+ Integer.valueOf(CommandType.TABLE)) ;
com.sun.star.sdbc.XRowSet xORowSet = UnoRuntime.queryInterface(com.sun.star.sdbc.XRowSet.class,
oRowSet) ;
diff --git a/qadevOOo/tests/java/mod/_dbaccess/SbaXGridControl.java b/qadevOOo/tests/java/mod/_dbaccess/SbaXGridControl.java
index b0c1e31b5598..98ff707de924 100644
--- a/qadevOOo/tests/java/mod/_dbaccess/SbaXGridControl.java
+++ b/qadevOOo/tests/java/mod/_dbaccess/SbaXGridControl.java
@@ -348,7 +348,7 @@ public class SbaXGridControl extends TestCase {
//Relations for XSelectionSupplier
tEnv.addObjRelation("Selections",
new Object[] {
- new Object[] { new Integer(0) }, new Object[] { new Integer(1) }
+ new Object[] { Integer.valueOf(0) }, new Object[] { Integer.valueOf(1) }
});
tEnv.addObjRelation("Comparer",
new Comparator<Integer>() {
diff --git a/qadevOOo/tests/java/mod/_forms/ODatabaseForm.java b/qadevOOo/tests/java/mod/_forms/ODatabaseForm.java
index df6a42e93a70..a1c93b212b8b 100644
--- a/qadevOOo/tests/java/mod/_forms/ODatabaseForm.java
+++ b/qadevOOo/tests/java/mod/_forms/ODatabaseForm.java
@@ -623,7 +623,7 @@ public class ODatabaseForm extends TestCase {
params.add(Boolean.FALSE) ;
params.add(new Byte((byte) 123)) ;
params.add(new Short((short) 234)) ;
- params.add(new Integer(12345)) ;
+ params.add(Integer.valueOf(12345)) ;
params.add(new Long(23456)) ;
params.add(new Float(1.234)) ;
params.add(new Double(2.345)) ;
@@ -660,7 +660,7 @@ public class ODatabaseForm extends TestCase {
}
xSetProp.setPropertyValue("CommandType",
- new Integer(CommandType.COMMAND)) ;
+ Integer.valueOf(CommandType.COMMAND)) ;
}
catch(Exception e) {
}
@@ -810,7 +810,7 @@ public class ODatabaseForm extends TestCase {
log.println("### _XDatabaseParameterBroadcaster.ParameterListenerImpl: Parameter "+i+": "+params.getByIndex(i));
XPropertySet xProp = UnoRuntime.queryInterface(XPropertySet.class, params.getByIndex(i));
log.println("### _XDatabaseParameterBroadcaster.ParameterListenerImpl: Parameter Name: '"+xProp.getPropertyValue("Name") + "' is set to Value '1'");
- xProp.setPropertyValue("Value", new Integer(1));
+ xProp.setPropertyValue("Value", Integer.valueOf(1));
listenerWasCalled = true;
}
}
@@ -868,7 +868,7 @@ public class ODatabaseForm extends TestCase {
log.println("### _XCompletedExecution.InteractionHandlerImpl: Parameter "+i+": "+params.getByIndex(i));
XPropertySet xProp = UnoRuntime.queryInterface(XPropertySet.class, params.getByIndex(i));
log.println("### _XCompletedExecution.InteractionHandlerImpl: Parameter Name: '"+xProp.getPropertyValue("Name") + "' is set to Value '1'");
- xProp.setPropertyValue("Value", new Integer(1));
+ xProp.setPropertyValue("Value", Integer.valueOf(1));
handlerWasUsed = true;
}
}
diff --git a/qadevOOo/tests/java/mod/_forms/ODateModel.java b/qadevOOo/tests/java/mod/_forms/ODateModel.java
index 90ccccdc7c3f..ceb865a9d0e8 100644
--- a/qadevOOo/tests/java/mod/_forms/ODateModel.java
+++ b/qadevOOo/tests/java/mod/_forms/ODateModel.java
@@ -115,7 +115,7 @@ public class ODateModel extends GenericModelTest {
*
* NamedValue Date = new NamedValue();
* Date.Name = "Date";
- * Date.Value = new Integer(DBTools.TST_DATE);
+ * Date.Value = Integer.valueOf(DBTools.TST_DATE);
* super.m_propertiesToSet.add(Date);
* super.m_LCShape_Type = "FixedText";
* </pre>
diff --git a/qadevOOo/tests/java/mod/_forms/OTimeModel.java b/qadevOOo/tests/java/mod/_forms/OTimeModel.java
index ff9d4190fb82..e2caa810892c 100644
--- a/qadevOOo/tests/java/mod/_forms/OTimeModel.java
+++ b/qadevOOo/tests/java/mod/_forms/OTimeModel.java
@@ -204,7 +204,7 @@ public class OTimeModel extends GenericModelTest {
lastTime = time.intValue() + 150000;
}
- ps.setPropertyValue("Time", new Integer(lastTime));
+ ps.setPropertyValue("Time", Integer.valueOf(lastTime));
}
public void commit() throws com.sun.star.sdbc.SQLException {
diff --git a/qadevOOo/tests/java/mod/_fwk/UIConfigurationManager.java b/qadevOOo/tests/java/mod/_fwk/UIConfigurationManager.java
index 5465a9859b4c..787abf174d06 100644
--- a/qadevOOo/tests/java/mod/_fwk/UIConfigurationManager.java
+++ b/qadevOOo/tests/java/mod/_fwk/UIConfigurationManager.java
@@ -86,7 +86,7 @@ public class UIConfigurationManager extends TestCase {
XSingleServiceFactory.class, o);
Object[] props = new Object[2];
props[0] = deleteCfg;
- props[1] = new Integer(ElementModes.READWRITE);
+ props[1] = Integer.valueOf(ElementModes.READWRITE);
XStorage xRootStorage = UnoRuntime.queryInterface(XStorage.class, xSSF.createInstanceWithArguments(props));
xSubStorage = xRootStorage.openStorageElement("Configurations2", ElementModes.READWRITE);
diff --git a/qadevOOo/tests/java/mod/_pcr/ObjectInspectorModel.java b/qadevOOo/tests/java/mod/_pcr/ObjectInspectorModel.java
index 4d0bf26fafc2..2ae0772875b7 100644
--- a/qadevOOo/tests/java/mod/_pcr/ObjectInspectorModel.java
+++ b/qadevOOo/tests/java/mod/_pcr/ObjectInspectorModel.java
@@ -128,8 +128,8 @@ public class ObjectInspectorModel extends TestCase {
TestEnvironment tEnv = new TestEnvironment(oInspectorModel);
// com.sun.star.inspection.XObjectInspectorModel
- tEnv.addObjRelation("minHelpTextLines", new Integer(minHelpTextLines));
- tEnv.addObjRelation("maxHelpTextLines", new Integer(maxHelpTextLines));
+ tEnv.addObjRelation("minHelpTextLines", Integer.valueOf(minHelpTextLines));
+ tEnv.addObjRelation("maxHelpTextLines", Integer.valueOf(maxHelpTextLines));
return tEnv;
} catch (com.sun.star.lang.IllegalArgumentException e) {
diff --git a/qadevOOo/tests/java/mod/_sc/ScAccessibleCsvRuler.java b/qadevOOo/tests/java/mod/_sc/ScAccessibleCsvRuler.java
index 917607dc29fc..41f33cc78117 100644
--- a/qadevOOo/tests/java/mod/_sc/ScAccessibleCsvRuler.java
+++ b/qadevOOo/tests/java/mod/_sc/ScAccessibleCsvRuler.java
@@ -129,7 +129,7 @@ public class ScAccessibleCsvRuler extends TestCase {
}
}
- tEnv.addObjRelation("LimitedBounds", new Integer(lastone));
+ tEnv.addObjRelation("LimitedBounds", Integer.valueOf(lastone));
tEnv.addObjRelation("PreviousUsed",new int[]{11,22,33,44,55,66,77,88,99});
return tEnv;
diff --git a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupItemObj.java b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupItemObj.java
index 84cbd224402e..2ac0c175e414 100644
--- a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupItemObj.java
+++ b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupItemObj.java
@@ -197,7 +197,7 @@ public class ScDataPilotFieldGroupItemObj extends TestCase
oSheet.getCellByPosition (x, y);
- new Integer (27);
+ Integer.valueOf(27);
}
catch (com.sun.star.lang.IndexOutOfBoundsException e)
{
diff --git a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupObj.java b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupObj.java
index 17e0d1554f17..a815bb2d2518 100644
--- a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupObj.java
+++ b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupObj.java
@@ -196,7 +196,7 @@ public class ScDataPilotFieldGroupObj extends TestCase
oSheet.getCellByPosition (x, y);
- new Integer (27);
+ Integer.valueOf(27);
}
catch (com.sun.star.lang.IndexOutOfBoundsException e)
{
diff --git a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupsObj.java b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupsObj.java
index 46dec68f6496..52a36ed1ad99 100644
--- a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupsObj.java
+++ b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldGroupsObj.java
@@ -196,7 +196,7 @@ public class ScDataPilotFieldGroupsObj extends TestCase
oSheet.getCellByPosition (x, y);
- new Integer (27);
+ Integer.valueOf(27);
}
catch (com.sun.star.lang.IndexOutOfBoundsException e)
{
diff --git a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldObj.java b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldObj.java
index 49f4be3fd369..2c668328a51b 100644
--- a/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldObj.java
+++ b/qadevOOo/tests/java/mod/_sc/ScDataPilotFieldObj.java
@@ -196,7 +196,7 @@ public class ScDataPilotFieldObj extends TestCase {
oSheet.getCellByPosition(x, y);
- new Integer(27);
+ Integer.valueOf(27);
} catch (com.sun.star.lang.IndexOutOfBoundsException e) {
e.printStackTrace();
throw new StatusException("Couldn't get cells for changing.", e);
diff --git a/qadevOOo/tests/java/mod/_sc/ScDataPilotItemObj.java b/qadevOOo/tests/java/mod/_sc/ScDataPilotItemObj.java
index b23c7dbcfe6f..5c01cf02c933 100644
--- a/qadevOOo/tests/java/mod/_sc/ScDataPilotItemObj.java
+++ b/qadevOOo/tests/java/mod/_sc/ScDataPilotItemObj.java
@@ -197,7 +197,7 @@ public class ScDataPilotItemObj extends TestCase {
oSheet.getCellByPosition(x, y);
- new Integer(27);
+ Integer.valueOf(27);
} catch (com.sun.star.lang.IndexOutOfBoundsException e) {
e.printStackTrace();
throw new StatusException("Couldn't get cells for changing.", e);
diff --git a/qadevOOo/tests/java/mod/_sc/ScDataPilotItemsObj.java b/qadevOOo/tests/java/mod/_sc/ScDataPilotItemsObj.java
index 8b45056e472e..b9274917425d 100644
--- a/qadevOOo/tests/java/mod/_sc/ScDataPilotItemsObj.java
+++ b/qadevOOo/tests/java/mod/_sc/ScDataPilotItemsObj.java
@@ -197,7 +197,7 @@ public class ScDataPilotItemsObj extends TestCase {
oSheet.getCellByPosition(x, y);
- new Integer(27);
+ Integer.valueOf(27);
} catch (com.sun.star.lang.IndexOutOfBoundsException e) {
e.printStackTrace();
throw new StatusException("Couldn't get cells for changing.", e);
diff --git a/qadevOOo/tests/java/mod/_sc/ScDataPilotTableObj.java b/qadevOOo/tests/java/mod/_sc/ScDataPilotTableObj.java
index 9008e2d82964..03677927043f 100644
--- a/qadevOOo/tests/java/mod/_sc/ScDataPilotTableObj.java
+++ b/qadevOOo/tests/java/mod/_sc/ScDataPilotTableObj.java
@@ -262,7 +262,7 @@ public class ScDataPilotTableObj extends TestCase {
tEnv.addObjRelation("OUTPUTRANGE", sCellAddress);
tEnv.addObjRelation("CELLFORCHANGE", oChangeCell);
tEnv.addObjRelation("CELLFORCHECK", oCheckCell);
- tEnv.addObjRelation("FIELDSAMOUNT", new Integer(5));
+ tEnv.addObjRelation("FIELDSAMOUNT", Integer.valueOf(5));
tEnv.addObjRelation("SHEETDOCUMENT", xSheetDoc);
createTable2(oSheet, sCellRangeAddress, tEnv);
diff --git a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotItemsEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotItemsEnumeration.java
index e069a1aabe01..705457967406 100644
--- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotItemsEnumeration.java
+++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotItemsEnumeration.java
@@ -199,7 +199,7 @@ public class ScIndexEnumeration_DataPilotItemsEnumeration
oSheet.getCellByPosition(x, y);
- new Integer(27);
+ Integer.valueOf(27);
} catch (com.sun.star.lang.IndexOutOfBoundsException e) {
e.printStackTrace();
throw new StatusException("Couldn't get cells for changing.", e);
diff --git a/qadevOOo/tests/java/mod/_sc/ScStyleFamilyObj.java b/qadevOOo/tests/java/mod/_sc/ScStyleFamilyObj.java
index 7be503cfc9f5..5d778e1da650 100644
--- a/qadevOOo/tests/java/mod/_sc/ScStyleFamilyObj.java
+++ b/qadevOOo/tests/java/mod/_sc/ScStyleFamilyObj.java
@@ -182,7 +182,7 @@ public class ScStyleFamilyObj extends TestCase {
}
log.println( "adding XNameReplaceINDEX as mod relation to environment" );
- tEnv.addObjRelation("XNameReplaceINDEX", new Integer(2*THRCNT).toString());
+ tEnv.addObjRelation("XNameReplaceINDEX", Integer.valueOf(2*THRCNT).toString());
// INSTANCEn : _XNameContainer; _XNameReplace
log.println( "adding INSTANCEn as mod relation to environment" );
diff --git a/qadevOOo/tests/java/mod/_sc/ScUniqueCellFormatsEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScUniqueCellFormatsEnumeration.java
index 1e3624e8d3ff..bc656322b9aa 100644
--- a/qadevOOo/tests/java/mod/_sc/ScUniqueCellFormatsEnumeration.java
+++ b/qadevOOo/tests/java/mod/_sc/ScUniqueCellFormatsEnumeration.java
@@ -109,7 +109,7 @@ public class ScUniqueCellFormatsEnumeration extends TestCase {
TestEnvironment tEnv = new TestEnvironment(oObj);
- tEnv.addObjRelation("ExpectedCount", new Integer(4));
+ tEnv.addObjRelation("ExpectedCount", Integer.valueOf(4));
return tEnv;
}
@@ -122,7 +122,7 @@ public class ScUniqueCellFormatsEnumeration extends TestCase {
int c2int = 16777216 + c.hashCode();
try {
- xPropertySet.setPropertyValue("CellBackColor", new Integer(c2int));
+ xPropertySet.setPropertyValue("CellBackColor", Integer.valueOf(c2int));
} catch (com.sun.star.beans.UnknownPropertyException e) {
log.println("Couldn't change CellFormat");
} catch (com.sun.star.beans.PropertyVetoException e) {
diff --git a/qadevOOo/tests/java/mod/_sc/ScUniqueCellFormatsObj.java b/qadevOOo/tests/java/mod/_sc/ScUniqueCellFormatsObj.java
index 5c9376a589e0..94a27645c078 100644
--- a/qadevOOo/tests/java/mod/_sc/ScUniqueCellFormatsObj.java
+++ b/qadevOOo/tests/java/mod/_sc/ScUniqueCellFormatsObj.java
@@ -116,7 +116,7 @@ public class ScUniqueCellFormatsObj extends TestCase {
int c2int = 16777216 + c.hashCode();
try {
- xPropertySet.setPropertyValue("CellBackColor", new Integer(c2int));
+ xPropertySet.setPropertyValue("CellBackColor", Integer.valueOf(c2int));
} catch (com.sun.star.beans.UnknownPropertyException e) {
log.println("Couldn't change CellFormat");
} catch (com.sun.star.beans.PropertyVetoException e) {
diff --git a/qadevOOo/tests/java/mod/_sch/ChXDiagram.java b/qadevOOo/tests/java/mod/_sch/ChXDiagram.java
index fdc658c5434f..1fd03beb029a 100644
--- a/qadevOOo/tests/java/mod/_sch/ChXDiagram.java
+++ b/qadevOOo/tests/java/mod/_sch/ChXDiagram.java
@@ -349,8 +349,8 @@ public class ChXDiagram extends TestCase {
int cols = da.getColumnDescriptions().length;
int rows = da.getRowDescriptions().length;
- tEnv.addObjRelation("ROWAMOUNT", new Integer(rows));
- tEnv.addObjRelation("COLAMOUNT", new Integer(cols));
+ tEnv.addObjRelation("ROWAMOUNT", Integer.valueOf(rows));
+ tEnv.addObjRelation("COLAMOUNT", Integer.valueOf(cols));
SOfficeFactory SOF = SOfficeFactory.getFactory( Param.getMSF());
Object stock = SOF.createDiagram(xChartDoc,"StockDiagram");
diff --git a/qadevOOo/tests/java/mod/_sd/SdXCustomPresentationAccess.java b/qadevOOo/tests/java/mod/_sd/SdXCustomPresentationAccess.java
index 8f48f000fa3f..58cb45e94cbb 100644
--- a/qadevOOo/tests/java/mod/_sd/SdXCustomPresentationAccess.java
+++ b/qadevOOo/tests/java/mod/_sd/SdXCustomPresentationAccess.java
@@ -180,7 +180,7 @@ public class SdXCustomPresentationAccess extends TestCase {
// INDEX : _XNameContainer
log.println( "adding XNameContainerINDEX as mod relation to environment" );
tEnv.addObjRelation("XNameContainerINDEX",
- (new Integer(THRCNT)).toString());
+ (Integer.valueOf(THRCNT)).toString());
// INSTANCEn : _XNameContainer; _XNameReplace
log.println( "adding INSTANCEn as mod relation to environment" );
diff --git a/qadevOOo/tests/java/mod/_sd/SdXImpressDocument.java b/qadevOOo/tests/java/mod/_sd/SdXImpressDocument.java
index 6c548d67506d..af8a17b46fb2 100644
--- a/qadevOOo/tests/java/mod/_sd/SdXImpressDocument.java
+++ b/qadevOOo/tests/java/mod/_sd/SdXImpressDocument.java
@@ -147,7 +147,7 @@ public class SdXImpressDocument extends TestCase {
try {
xShapeProps.setPropertyValue("FillStyle", com.sun.star.drawing.FillStyle.SOLID);
- xShapeProps.setPropertyValue("FillTransparence", new Integer(50));
+ xShapeProps.setPropertyValue("FillTransparence", Integer.valueOf(50));
} catch (UnknownPropertyException ex) {
ex.printStackTrace(log);
throw new StatusException("Couldn't make shape transparent", ex);
diff --git a/qadevOOo/tests/java/mod/_sd/SdXShape.java b/qadevOOo/tests/java/mod/_sd/SdXShape.java
index 50bf57432843..535d30062fec 100644
--- a/qadevOOo/tests/java/mod/_sd/SdXShape.java
+++ b/qadevOOo/tests/java/mod/_sd/SdXShape.java
@@ -169,7 +169,7 @@ public class SdXShape extends TestCase {
try {
aStyle = (XStyle) AnyConverter.toObject(
new Type(XStyle.class),oShapeProps.getPropertyValue("Style"));
- oShapeProps.setPropertyValue("ZOrder", new Integer(1));
+ oShapeProps.setPropertyValue("ZOrder", Integer.valueOf(1));
} catch (com.sun.star.lang.WrappedTargetException e) {
e.printStackTrace(log);
throw new StatusException("Couldn't set or get property value", e);
diff --git a/qadevOOo/tests/java/mod/_stm/DataInputStream.java b/qadevOOo/tests/java/mod/_stm/DataInputStream.java
index 8076fe210503..7a3a5a31864e 100644
--- a/qadevOOo/tests/java/mod/_stm/DataInputStream.java
+++ b/qadevOOo/tests/java/mod/_stm/DataInputStream.java
@@ -132,7 +132,7 @@ public class DataInputStream extends TestCase {
data.add(new Byte((byte)123)) ;
data.add(new Character((char)1234)) ;
data.add(new Short((short)1234)) ;
- data.add(new Integer(123456)) ;
+ data.add(Integer.valueOf(123456)) ;
data.add(new Float(1.234)) ;
data.add(new Double(1.23456)) ;
data.add("DataInputStream") ;
diff --git a/qadevOOo/tests/java/mod/_stm/DataOutputStream.java b/qadevOOo/tests/java/mod/_stm/DataOutputStream.java
index 85f33e5a67ac..73500ddc95ba 100644
--- a/qadevOOo/tests/java/mod/_stm/DataOutputStream.java
+++ b/qadevOOo/tests/java/mod/_stm/DataOutputStream.java
@@ -109,7 +109,7 @@ public class DataOutputStream extends TestCase {
data.add(new Byte((byte)123)) ;
data.add(new Character((char)1234)) ;
data.add(new Short((short)1234)) ;
- data.add(new Integer(123456)) ;
+ data.add(Integer.valueOf(123456)) ;
data.add(new Float(1.234)) ;
data.add(new Double(1.23456)) ;
data.add("DataInputStream") ;
diff --git a/qadevOOo/tests/java/mod/_stm/MarkableOutputStream.java b/qadevOOo/tests/java/mod/_stm/MarkableOutputStream.java
index 6b46f4f79d89..289de5cc02ca 100644
--- a/qadevOOo/tests/java/mod/_stm/MarkableOutputStream.java
+++ b/qadevOOo/tests/java/mod/_stm/MarkableOutputStream.java
@@ -132,7 +132,7 @@ public class MarkableOutputStream extends TestCase {
data.add(new Byte((byte)123)) ;
data.add(new Character((char)1234)) ;
data.add(new Short((short)1234)) ;
- data.add(new Integer(123456)) ;
+ data.add(Integer.valueOf(123456)) ;
data.add(new Float(1.234)) ;
data.add(new Double(1.23456)) ;
data.add("DataInputStream") ;
diff --git a/qadevOOo/tests/java/mod/_stm/ObjectInputStream.java b/qadevOOo/tests/java/mod/_stm/ObjectInputStream.java
index 003da99be90a..350ca4d19d63 100644
--- a/qadevOOo/tests/java/mod/_stm/ObjectInputStream.java
+++ b/qadevOOo/tests/java/mod/_stm/ObjectInputStream.java
@@ -246,7 +246,7 @@ public class ObjectInputStream extends TestCase {
data.add(new Byte((byte)123)) ;
data.add(new Character((char)1234)) ;
data.add(new Short((short)1234)) ;
- data.add(new Integer(123456)) ;
+ data.add(Integer.valueOf(123456)) ;
data.add(new Float(1.234)) ;
data.add(new Double(1.23456)) ;
data.add("DataInputStream") ;
diff --git a/qadevOOo/tests/java/mod/_stm/ObjectOutputStream.java b/qadevOOo/tests/java/mod/_stm/ObjectOutputStream.java
index ea937b1145d9..7308371932c6 100644
--- a/qadevOOo/tests/java/mod/_stm/ObjectOutputStream.java
+++ b/qadevOOo/tests/java/mod/_stm/ObjectOutputStream.java
@@ -235,7 +235,7 @@ public class ObjectOutputStream extends TestCase {
data.add(new Byte((byte)123)) ;
data.add(new Character((char)1234)) ;
data.add(new Short((short)1234)) ;
- data.add(new Integer(123456)) ;
+ data.add(Integer.valueOf(123456)) ;
data.add(new Float(1.234)) ;
data.add(new Double(1.23456)) ;
data.add("DataInputStream") ;
diff --git a/qadevOOo/tests/java/mod/_streams/uno/DataInputStream.java b/qadevOOo/tests/java/mod/_streams/uno/DataInputStream.java
index 790faf054753..6e7f81bfcc14 100644
--- a/qadevOOo/tests/java/mod/_streams/uno/DataInputStream.java
+++ b/qadevOOo/tests/java/mod/_streams/uno/DataInputStream.java
@@ -129,7 +129,7 @@ public class DataInputStream extends TestCase {
data.add(new Byte((byte)123)) ;
data.add(new Character((char)1234)) ;
data.add(new Short((short)1234)) ;
- data.add(new Integer(123456)) ;
+ data.add(Integer.valueOf(123456)) ;
data.add(new Float(1.234)) ;
data.add(new Double(1.23456)) ;
data.add("DataInputStream") ;
diff --git a/qadevOOo/tests/java/mod/_streams/uno/DataOutputStream.java b/qadevOOo/tests/java/mod/_streams/uno/DataOutputStream.java
index 2f48ce028e06..f91e967eed39 100644
--- a/qadevOOo/tests/java/mod/_streams/uno/DataOutputStream.java
+++ b/qadevOOo/tests/java/mod/_streams/uno/DataOutputStream.java
@@ -106,7 +106,7 @@ public class DataOutputStream extends TestCase {
data.add(new Byte((byte)123)) ;
data.add(new Character((char)1234)) ;
data.add(new Short((short)1234)) ;
- data.add(new Integer(123456)) ;
+ data.add(Integer.valueOf(123456)) ;
data.add(new Float(1.234)) ;
data.add(new Double(1.23456)) ;
data.add("DataInputStream") ;
diff --git a/qadevOOo/tests/java/mod/_streams/uno/MarkableOutputStream.java b/qadevOOo/tests/java/mod/_streams/uno/MarkableOutputStream.java
index 34f89a4a4dd5..94065169be7a 100644
--- a/qadevOOo/tests/java/mod/_streams/uno/MarkableOutputStream.java
+++ b/qadevOOo/tests/java/mod/_streams/uno/MarkableOutputStream.java
@@ -129,7 +129,7 @@ public class MarkableOutputStream extends TestCase {
data.add(new Byte((byte)123)) ;
data.add(new Character((char)1234)) ;
data.add(new Short((short)1234)) ;
- data.add(new Integer(123456)) ;
+ data.add(Integer.valueOf(123456)) ;
data.add(new Float(1.234)) ;
data.add(new Double(1.23456)) ;
data.add("DataInputStream") ;
diff --git a/qadevOOo/tests/java/mod/_streams/uno/ObjectInputStream.java b/qadevOOo/tests/java/mod/_streams/uno/ObjectInputStream.java
index f6b098b04957..a2acc83c62f8 100644
--- a/qadevOOo/tests/java/mod/_streams/uno/ObjectInputStream.java
+++ b/qadevOOo/tests/java/mod/_streams/uno/ObjectInputStream.java
@@ -243,7 +243,7 @@ public class ObjectInputStream extends TestCase {
data.add(new Byte((byte)123)) ;
data.add(new Character((char)1234)) ;
data.add(new Short((short)1234)) ;
- data.add(new Integer(123456)) ;
+ data.add(Integer.valueOf(123456)) ;
data.add(new Float(1.234)) ;
data.add(new Double(1.23456)) ;
data.add("DataInputStream") ;
diff --git a/qadevOOo/tests/java/mod/_streams/uno/ObjectOutputStream.java b/qadevOOo/tests/java/mod/_streams/uno/ObjectOutputStream.java
index c6a250115bba..0a26e9fb1f63 100644
--- a/qadevOOo/tests/java/mod/_streams/uno/ObjectOutputStream.java
+++ b/qadevOOo/tests/java/mod/_streams/uno/ObjectOutputStream.java
@@ -232,7 +232,7 @@ public class ObjectOutputStream extends TestCase {
data.add(new Byte((byte)123)) ;
data.add(new Character((char)1234)) ;
data.add(new Short((short)1234)) ;
- data.add(new Integer(123456)) ;
+ data.add(Integer.valueOf(123456)) ;
data.add(new Float(1.234)) ;
data.add(new Double(1.23456)) ;
data.add("DataInputStream") ;
diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBox.java b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBox.java
index 1f2853b2b906..80ae6f99f6c2 100644
--- a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBox.java
+++ b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBox.java
@@ -142,7 +142,7 @@ public class AccessibleBrowseBox extends TestCase {
params[0].Name = "DataSourceName";
params[0].Value = "Bibliography";
params[1].Name = "CommandType";
- params[1].Value = new Integer(com.sun.star.sdb.CommandType.TABLE);
+ params[1].Value = Integer.valueOf(com.sun.star.sdb.CommandType.TABLE);
params[2].Name = "Command";
params[2].Value = "biblio";
diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxHeaderBar.java b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxHeaderBar.java
index 05edbc4a9bb0..525d81acaea4 100644
--- a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxHeaderBar.java
+++ b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxHeaderBar.java
@@ -163,7 +163,7 @@ public class AccessibleBrowseBoxHeaderBar extends TestCase {
PropertyValue param2 = new PropertyValue();
param2.Name = "CommandType";
- param2.Value = new Integer(com.sun.star.sdb.CommandType.TABLE);
+ param2.Value = Integer.valueOf(com.sun.star.sdb.CommandType.TABLE);
params[1] = param2;
PropertyValue param3 = new PropertyValue();
diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxHeaderCell.java b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxHeaderCell.java
index 2b2157bae7e0..71178150c73f 100644
--- a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxHeaderCell.java
+++ b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxHeaderCell.java
@@ -174,7 +174,7 @@ public class AccessibleBrowseBoxHeaderCell extends TestCase {
params[0] = param1;
PropertyValue param2 = new PropertyValue();
param2.Name = "CommandType";
- param2.Value = new Integer(com.sun.star.sdb.CommandType.TABLE);
+ param2.Value = Integer.valueOf(com.sun.star.sdb.CommandType.TABLE);
params[1] = param2;
PropertyValue param3 = new PropertyValue();
param3.Name = "Command";
diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTable.java b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTable.java
index 37ad7e9b99b2..42f8e7136f21 100644
--- a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTable.java
+++ b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTable.java
@@ -175,7 +175,7 @@ public class AccessibleBrowseBoxTable extends TestCase {
PropertyValue param2 = new PropertyValue();
param2.Name = "CommandType";
- param2.Value = new Integer(com.sun.star.sdb.CommandType.TABLE);
+ param2.Value = Integer.valueOf(com.sun.star.sdb.CommandType.TABLE);
params[1] = param2;
PropertyValue param3 = new PropertyValue();
diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTableCell.java b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTableCell.java
index 0d70e85fed40..34993a1e4d33 100644
--- a/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTableCell.java
+++ b/qadevOOo/tests/java/mod/_svtools/AccessibleBrowseBoxTableCell.java
@@ -171,7 +171,7 @@ public class AccessibleBrowseBoxTableCell extends TestCase {
params[0] = param1;
PropertyValue param2 = new PropertyValue();
param2.Name = "CommandType";
- param2.Value = new Integer(com.sun.star.sdb.CommandType.TABLE);
+ param2.Value = Integer.valueOf(com.sun.star.sdb.CommandType.TABLE);
params[1] = param2;
PropertyValue param3 = new PropertyValue();
param3.Name = "Command";
diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBox.java b/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBox.java
index e4f97cbc67fe..def0a3354a94 100644
--- a/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBox.java
+++ b/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBox.java
@@ -192,7 +192,7 @@ public class AccessibleTreeListBox extends TestCase {
params[0] = param1;
PropertyValue param2 = new PropertyValue();
param2.Name = "CommandType";
- param2.Value = new Integer(com.sun.star.sdb.CommandType.TABLE);
+ param2.Value = Integer.valueOf(com.sun.star.sdb.CommandType.TABLE);
params[1] = param2;
PropertyValue param3 = new PropertyValue();
param3.Name = "Command";
diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBoxEntry.java b/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBoxEntry.java
index cac287433443..cfcff7355b95 100644
--- a/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBoxEntry.java
+++ b/qadevOOo/tests/java/mod/_svtools/AccessibleTreeListBoxEntry.java
@@ -204,7 +204,7 @@ public class AccessibleTreeListBoxEntry extends TestCase {
PropertyValue param2 = new PropertyValue();
param2.Name = "CommandType";
- param2.Value = new Integer(com.sun.star.sdb.CommandType.QUERY);
+ param2.Value = Integer.valueOf(com.sun.star.sdb.CommandType.QUERY);
params[1] = param2;
PropertyValue param3 = new PropertyValue();
diff --git a/qadevOOo/tests/java/mod/_svx/AccessiblePageShape.java b/qadevOOo/tests/java/mod/_svx/AccessiblePageShape.java
index ee2fcd7f5974..d7bd1c2d21fe 100644
--- a/qadevOOo/tests/java/mod/_svx/AccessiblePageShape.java
+++ b/qadevOOo/tests/java/mod/_svx/AccessiblePageShape.java
@@ -101,7 +101,7 @@ public class AccessiblePageShape extends TestCase {
new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() {
public void fireEvent() {
try {
- PageProps.setPropertyValue("Height",new Integer(5000));
+ PageProps.setPropertyValue("Height",Integer.valueOf(5000));
} catch (com.sun.star.beans.UnknownPropertyException upe) {
System.out.println("Don't no the Property Height");
} catch (com.sun.star.beans.PropertyVetoException pve) {
diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleFooterView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleFooterView.java
index b7ce8d20e44b..76e0f7846b1d 100644
--- a/qadevOOo/tests/java/mod/_sw/SwAccessibleFooterView.java
+++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleFooterView.java
@@ -144,7 +144,7 @@ public class SwAccessibleFooterView extends TestCase {
public void fireEvent() {
try {
PropSet.setPropertyValue("FooterLeftMargin",
- new Integer(1000));
+ Integer.valueOf(1000));
} catch (com.sun.star.uno.Exception e) {
e.printStackTrace();
throw new StatusException("Cann't change footer.", e);
diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleHeaderView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleHeaderView.java
index 7df2c3374bc0..31c24accc71b 100644
--- a/qadevOOo/tests/java/mod/_sw/SwAccessibleHeaderView.java
+++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleHeaderView.java
@@ -134,7 +134,7 @@ public class SwAccessibleHeaderView extends TestCase {
public void fireEvent() {
try {
PropSet.setPropertyValue("HeaderLeftMargin",
- new Integer(1000));
+ Integer.valueOf(1000));
} catch (com.sun.star.uno.Exception e) {
e.printStackTrace();
throw new StatusException("Cann't change footer.", e);
diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessiblePageView.java b/qadevOOo/tests/java/mod/_sw/SwAccessiblePageView.java
index 428bee5106d7..77e5d7181c75 100644
--- a/qadevOOo/tests/java/mod/_sw/SwAccessiblePageView.java
+++ b/qadevOOo/tests/java/mod/_sw/SwAccessiblePageView.java
@@ -195,7 +195,7 @@ public class SwAccessiblePageView extends TestCase {
new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() {
public void fireEvent() {
Integer old = (Integer) xAccVal.getCurrentValue();
- Integer newValue = new Integer(old.intValue()+10);
+ Integer newValue = Integer.valueOf(old.intValue()+10);
xAccVal.setCurrentValue(newValue);
xAccVal.setCurrentValue(old);
}
diff --git a/qadevOOo/tests/java/mod/_sw/SwXMailMerge.java b/qadevOOo/tests/java/mod/_sw/SwXMailMerge.java
index fdcfa94b952d..92623758637f 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXMailMerge.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXMailMerge.java
@@ -55,7 +55,7 @@ public class SwXMailMerge extends TestCase {
@Override
public void initialize( TestParameters Param, PrintWriter log ) {
if (! Param.containsKey("uniqueSuffix")){
- Param.put("uniqueSuffix", new Integer(0));
+ Param.put("uniqueSuffix", Integer.valueOf(0));
}
}
@@ -111,7 +111,7 @@ public class SwXMailMerge extends TestCase {
try {
oRowSetProps.setPropertyValue("DataSourceName",cDataSourceName);
oRowSetProps.setPropertyValue("Command",cDataCommand);
- oRowSetProps.setPropertyValue("CommandType", new Integer(CommandType.TABLE));
+ oRowSetProps.setPropertyValue("CommandType", Integer.valueOf(CommandType.TABLE));
} catch (UnknownPropertyException e) {
throw new StatusException("Can't set properties on oRowSet", e);
} catch (PropertyVetoException e) {
@@ -155,7 +155,7 @@ public class SwXMailMerge extends TestCase {
oObjProps.setPropertyValue("ActiveConnection", getLocalXConnection(Param));
oObjProps.setPropertyValue("DataSourceName", cDataSourceName);
oObjProps.setPropertyValue("Command", cDataCommand);
- oObjProps.setPropertyValue("CommandType", new Integer(CommandType.TABLE));
+ oObjProps.setPropertyValue("CommandType", Integer.valueOf(CommandType.TABLE));
oObjProps.setPropertyValue("OutputType", new Short(MailMergeType.FILE));
oObjProps.setPropertyValue("DocumentURL", cTestDoc);
oObjProps.setPropertyValue("OutputURL", cOutputURL);
@@ -185,7 +185,7 @@ public class SwXMailMerge extends TestCase {
// first Arguments
vXJobArg0[0] = new NamedValue("DataSourceName", cDataSourceName);
vXJobArg0[1] = new NamedValue("Command", cDataCommand);
- vXJobArg0[2] = new NamedValue("CommandType",new Integer(CommandType.TABLE));
+ vXJobArg0[2] = new NamedValue("CommandType",Integer.valueOf(CommandType.TABLE));
vXJobArg0[3] = new NamedValue("OutputType",new Short(MailMergeType.FILE));
vXJobArg0[4] = new NamedValue("DocumentURL", cTestDoc);
vXJobArg0[5] = new NamedValue("OutputURL", cOutputURL);
@@ -195,7 +195,7 @@ public class SwXMailMerge extends TestCase {
//second Arguments
vXJobArg1[0] = new NamedValue("DataSourceName", cDataSourceName);
vXJobArg1[1] = new NamedValue("Command", cDataCommand);
- vXJobArg1[2] = new NamedValue("CommandType",new Integer(CommandType.TABLE));
+ vXJobArg1[2] = new NamedValue("CommandType",Integer.valueOf(CommandType.TABLE));
vXJobArg1[3] = new NamedValue("OutputType",
new Short(MailMergeType.PRINTER));
vXJobArg1[4] = new NamedValue("DocumentURL", cTestDoc);
@@ -206,7 +206,7 @@ public class SwXMailMerge extends TestCase {
vXJobArg2[0] = new NamedValue("ActiveConnection", getLocalXConnection(Param));
vXJobArg2[1] = new NamedValue("DataSourceName", cDataSourceName);
vXJobArg2[2] = new NamedValue("Command", cDataCommand);
- vXJobArg2[3] = new NamedValue("CommandType",new Integer(CommandType.TABLE));
+ vXJobArg2[3] = new NamedValue("CommandType",Integer.valueOf(CommandType.TABLE));
vXJobArg2[4] = new NamedValue("OutputType",
new Short(MailMergeType.FILE));
vXJobArg2[5] = new NamedValue("ResultSet", oResultSet);
@@ -247,7 +247,7 @@ public class SwXMailMerge extends TestCase {
try {
oRowSetProps.setPropertyValue("DataSourceName",cDataSourceName);
oRowSetProps.setPropertyValue("Command",cDataCommand);
- oRowSetProps.setPropertyValue("CommandType", new Integer(CommandType.TABLE));
+ oRowSetProps.setPropertyValue("CommandType", Integer.valueOf(CommandType.TABLE));
} catch (UnknownPropertyException e) {
throw new StatusException("Can't set properties on oRowSet", e);
} catch (PropertyVetoException e) {
@@ -337,13 +337,13 @@ public class SwXMailMerge extends TestCase {
dbt.reRegisterDB(databaseName, newSource) ;
uniqueSuffix++;
- Param.put("uniqueSuffix", new Integer(uniqueSuffix));
+ Param.put("uniqueSuffix", Integer.valueOf(uniqueSuffix));
return dbt.connectToSource(newSource);
}
catch( Exception e ) {
uniqueSuffix++;
- Param.put("uniqueSuffix", new Integer(uniqueSuffix));
+ Param.put("uniqueSuffix", Integer.valueOf(uniqueSuffix));
log.println("could not register new database" );
e.printStackTrace();
throw new StatusException("could not register new database", e) ;
diff --git a/qadevOOo/tests/java/mod/_sw/SwXStyleFamily.java b/qadevOOo/tests/java/mod/_sw/SwXStyleFamily.java
index bd6d1f339d35..8d34505ee6db 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXStyleFamily.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXStyleFamily.java
@@ -166,7 +166,7 @@ public class SwXStyleFamily extends TestCase {
if ((String)Param.get("THRCNT") != null) {
THRCNT = Integer.parseInt((String)Param.get("THRCNT"));
}
- String nr = new Integer(THRCNT+1).toString();
+ String nr = Integer.valueOf(THRCNT+1).toString();
log.println( "adding NameReplaceIndex as mod relation to environment" );
tEnv.addObjRelation("XNameReplaceINDEX", nr);
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextFrameText.java b/qadevOOo/tests/java/mod/_sw/SwXTextFrameText.java
index 5efc3a1a933e..9017578a1ad3 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTextFrameText.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTextFrameText.java
@@ -108,7 +108,7 @@ public class SwXTextFrameText extends TestCase {
(XPropertySet.class, oFrame1 );
//AnchorTypes: 0 = paragraph, 1 = as char, 2 = page,
// 3 = frame/paragraph 4= at char
- oPropSet.setPropertyValue("AnchorType", new Integer(2));
+ oPropSet.setPropertyValue("AnchorType", Integer.valueOf(2));
oText = xTextDoc.getText();
oCursor = oText.createTextCursor();
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextGraphicObject.java b/qadevOOo/tests/java/mod/_sw/SwXTextGraphicObject.java
index 5261ca90f771..d2e661700a95 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTextGraphicObject.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTextGraphicObject.java
@@ -151,10 +151,10 @@ public class SwXTextGraphicObject extends TestCase {
oProps.setPropertyValue("AnchorType",
TextContentAnchorType.AT_PARAGRAPH);
oProps.setPropertyValue("GraphicURL",wat);
- oProps.setPropertyValue("HoriOrientPosition",new Integer(5500));
- oProps.setPropertyValue("VertOrientPosition",new Integer(4200));
- oProps.setPropertyValue("Width",new Integer(4400));
- oProps.setPropertyValue("Height",new Integer(4000));
+ oProps.setPropertyValue("HoriOrientPosition",Integer.valueOf(5500));
+ oProps.setPropertyValue("VertOrientPosition",Integer.valueOf(4200));
+ oProps.setPropertyValue("Width",Integer.valueOf(4400));
+ oProps.setPropertyValue("Height",Integer.valueOf(4000));
} catch (Exception e) {
System.out.println("Couldn't set property 'GraphicURL'");
e.printStackTrace();
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextGraphicObjects.java b/qadevOOo/tests/java/mod/_sw/SwXTextGraphicObjects.java
index 299648662f21..9396a9de37eb 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTextGraphicObjects.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTextGraphicObjects.java
@@ -131,10 +131,10 @@ public class SwXTextGraphicObjects extends TestCase {
try {
String wat = util.utils.getFullTestURL("space-metal.jpg");
oProps.setPropertyValue("GraphicURL",wat);
- oProps.setPropertyValue("HoriOrientPosition",new Integer(5500));
- oProps.setPropertyValue("VertOrientPosition",new Integer(4200));
- oProps.setPropertyValue("Width",new Integer(4400));
- oProps.setPropertyValue("Height",new Integer(4000));
+ oProps.setPropertyValue("HoriOrientPosition",Integer.valueOf(5500));
+ oProps.setPropertyValue("VertOrientPosition",Integer.valueOf(4200));
+ oProps.setPropertyValue("Width",Integer.valueOf(4400));
+ oProps.setPropertyValue("Height",Integer.valueOf(4000));
} catch (Exception e) {
System.out.println("Couldn't set property 'GraphicURL'");
e.printStackTrace();
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextTable.java b/qadevOOo/tests/java/mod/_sw/SwXTextTable.java
index 25ea9652aa58..2828479090f6 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTextTable.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTextTable.java
@@ -119,8 +119,8 @@ public class SwXTextTable extends TestCase {
//Adding relation for util.XTextTable
- tEnv.addObjRelation("NROW", new Integer(nRow));
- tEnv.addObjRelation("NCOL", new Integer(nCol));
+ tEnv.addObjRelation("NROW", Integer.valueOf(nRow));
+ tEnv.addObjRelation("NCOL", Integer.valueOf(nCol));
//Adding ObjRelation for XCellRangeData
Object[][] newData = new Object[6][];
diff --git a/qadevOOo/tests/java/mod/_sw/SwXTextTables.java b/qadevOOo/tests/java/mod/_sw/SwXTextTables.java
index 11f987e73f62..00446d912ad0 100644
--- a/qadevOOo/tests/java/mod/_sw/SwXTextTables.java
+++ b/qadevOOo/tests/java/mod/_sw/SwXTextTables.java
@@ -128,8 +128,8 @@ public class SwXTextTables extends TestCase {
log.println( "adding TextDocument as mod relation to environment" );
tEnv.addObjRelation( "TEXTDOC", xTextDoc );
- tEnv.addObjRelation( "ROW", new Integer( nRow ) );
- tEnv.addObjRelation( "COL", new Integer( nCol ) );
+ tEnv.addObjRelation( "ROW", Integer.valueOf( nRow ) );
+ tEnv.addObjRelation( "COL", Integer.valueOf( nCol ) );
try {
tEnv.addObjRelation( "INST", SOfficeFactory.createTextTable( xTextDoc ));
}
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoControlDialogModel.java b/qadevOOo/tests/java/mod/_toolkit/UnoControlDialogModel.java
index b499032646f3..347562e094dd 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoControlDialogModel.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoControlDialogModel.java
@@ -87,10 +87,10 @@ public class UnoControlDialogModel extends TestCase {
// create the dialog model and set the properties
XPropertySet xPSetDialog = UnoRuntime.queryInterface(
XPropertySet.class, dialogModel);
- xPSetDialog.setPropertyValue("PositionX", new Integer(100));
- xPSetDialog.setPropertyValue("PositionY", new Integer(100));
- xPSetDialog.setPropertyValue("Width", new Integer(150));
- xPSetDialog.setPropertyValue("Height", new Integer(100));
+ xPSetDialog.setPropertyValue("PositionX", Integer.valueOf(100));
+ xPSetDialog.setPropertyValue("PositionY", Integer.valueOf(100));
+ xPSetDialog.setPropertyValue("Width", Integer.valueOf(150));
+ xPSetDialog.setPropertyValue("Height", Integer.valueOf(100));
xPSetDialog.setPropertyValue("Title", "Runtime Dialog Demo");
// get the service manager from the dialog model
@@ -103,10 +103,10 @@ public class UnoControlDialogModel extends TestCase {
"com.sun.star.awt.UnoControlButtonModel");
XPropertySet xPSetButton = UnoRuntime.queryInterface(
XPropertySet.class, buttonModel);
- xPSetButton.setPropertyValue("PositionX", new Integer(50));
- xPSetButton.setPropertyValue("PositionY", new Integer(30));
- xPSetButton.setPropertyValue("Width", new Integer(50));
- xPSetButton.setPropertyValue("Height", new Integer(14));
+ xPSetButton.setPropertyValue("PositionX", Integer.valueOf(50));
+ xPSetButton.setPropertyValue("PositionY", Integer.valueOf(30));
+ xPSetButton.setPropertyValue("Width", Integer.valueOf(50));
+ xPSetButton.setPropertyValue("Height", Integer.valueOf(14));
xPSetButton.setPropertyValue("Name", _buttonName);
xPSetButton.setPropertyValue("TabIndex", new Short((short) 0));
xPSetButton.setPropertyValue("Label", "Click Me");
@@ -116,10 +116,10 @@ public class UnoControlDialogModel extends TestCase {
"com.sun.star.awt.UnoControlFixedTextModel");
XPropertySet xPSetLabel = UnoRuntime.queryInterface(
XPropertySet.class, labelModel);
- xPSetLabel.setPropertyValue("PositionX", new Integer(40));
- xPSetLabel.setPropertyValue("PositionY", new Integer(60));
- xPSetLabel.setPropertyValue("Width", new Integer(100));
- xPSetLabel.setPropertyValue("Height", new Integer(14));
+ xPSetLabel.setPropertyValue("PositionX", Integer.valueOf(40));
+ xPSetLabel.setPropertyValue("PositionY", Integer.valueOf(60));
+ xPSetLabel.setPropertyValue("Width", Integer.valueOf(100));
+ xPSetLabel.setPropertyValue("Height", Integer.valueOf(14));
xPSetLabel.setPropertyValue("Name", _labelName);
xPSetLabel.setPropertyValue("TabIndex", new Short((short) 1));
xPSetLabel.setPropertyValue("Label", _labelPrefix);
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoTreeControl.java b/qadevOOo/tests/java/mod/_toolkit/UnoTreeControl.java
index b281fc10eb4c..7c0645ef4964 100644
--- a/qadevOOo/tests/java/mod/_toolkit/UnoTreeControl.java
+++ b/qadevOOo/tests/java/mod/_toolkit/UnoTreeControl.java
@@ -97,10 +97,10 @@ public class UnoTreeControl extends TestCase {
mxMSF.createInstance("com.sun.star.awt.UnoControlDialogModel"));
XPropertySet xDialogPropertySet = UnoRuntime.queryInterface(XPropertySet.class, xDialogModel);
- xDialogPropertySet.setPropertyValue( "PositionX", new Integer(50) );
- xDialogPropertySet.setPropertyValue( "PositionY", new Integer(50) );
- xDialogPropertySet.setPropertyValue( "Width", new Integer(256) );
- xDialogPropertySet.setPropertyValue( "Height", new Integer(256) );
+ xDialogPropertySet.setPropertyValue( "PositionX", Integer.valueOf(50) );
+ xDialogPropertySet.setPropertyValue( "PositionY", Integer.valueOf(50) );
+ xDialogPropertySet.setPropertyValue( "Width", Integer.valueOf(256) );
+ xDialogPropertySet.setPropertyValue( "Height", Integer.valueOf(256) );
xDialogPropertySet.setPropertyValue( "Title", "Tree Control Test");
XMultiServiceFactory xDialogMSF = UnoRuntime.queryInterface(XMultiServiceFactory.class, xDialogModel);
@@ -111,10 +111,10 @@ public class UnoTreeControl extends TestCase {
XPropertySet XTreeControlModelSet = UnoRuntime.queryInterface(XPropertySet.class, xTreeControlModel);
XTreeControlModelSet.setPropertyValue( "SelectionType",com.sun.star.view.SelectionType.NONE);
- XTreeControlModelSet.setPropertyValue( "PositionX", new Integer(3 ));
- XTreeControlModelSet.setPropertyValue( "PositionY", new Integer(3 ));
- XTreeControlModelSet.setPropertyValue( "Width", new Integer(253));
- XTreeControlModelSet.setPropertyValue( "Height", new Integer(253) );
+ XTreeControlModelSet.setPropertyValue( "PositionX", Integer.valueOf(3 ));
+ XTreeControlModelSet.setPropertyValue( "PositionY", Integer.valueOf(3 ));
+ XTreeControlModelSet.setPropertyValue( "Width", Integer.valueOf(253));
+ XTreeControlModelSet.setPropertyValue( "Height", Integer.valueOf(253) );
XTreeControlModelSet.setPropertyValue( "DataModel", mXTreeDataModel );
XTreeControlModelSet.setPropertyValue( "ShowsRootHandles", Boolean.FALSE);
XTreeControlModelSet.setPropertyValue( "ShowsHandles", Boolean.FALSE);
diff --git a/qadevOOo/tests/java/mod/_uuresolver/UnoUrlResolver.java b/qadevOOo/tests/java/mod/_uuresolver/UnoUrlResolver.java
index 8f421ab7f3ff..e95aa0cd69ad 100644
--- a/qadevOOo/tests/java/mod/_uuresolver/UnoUrlResolver.java
+++ b/qadevOOo/tests/java/mod/_uuresolver/UnoUrlResolver.java
@@ -61,7 +61,7 @@ public class UnoUrlResolver extends TestCase {
if (os.equalsIgnoreCase("unxlngi"))
port = 20006;
- tEnv.addObjRelation("PORT", new Integer(port));
+ tEnv.addObjRelation("PORT", Integer.valueOf(port));
return tEnv;
} catch (Exception e) {
diff --git a/qadevOOo/tests/java/mod/_uuresolver/uno/UnoUrlResolver.java b/qadevOOo/tests/java/mod/_uuresolver/uno/UnoUrlResolver.java
index ee850a982240..96cccdb7700d 100644
--- a/qadevOOo/tests/java/mod/_uuresolver/uno/UnoUrlResolver.java
+++ b/qadevOOo/tests/java/mod/_uuresolver/uno/UnoUrlResolver.java
@@ -48,7 +48,7 @@ public class UnoUrlResolver extends TestCase {
tEnv.addObjRelation("ACCEPTOR", oAcctr);
int port = util.utils.getNextFreePort(20004);
- tEnv.addObjRelation("PORT", new Integer(port));
+ tEnv.addObjRelation("PORT", Integer.valueOf(port));
return tEnv;
} catch (Exception e) {