diff options
Diffstat (limited to 'qadevOOo/runner/util')
-rw-r--r-- | qadevOOo/runner/util/BasicMacroTools.java | 2 | ||||
-rw-r--r-- | qadevOOo/runner/util/DBTools.java | 4 | ||||
-rw-r--r-- | qadevOOo/runner/util/FormTools.java | 6 | ||||
-rw-r--r-- | qadevOOo/runner/util/FrameDsc.java | 2 | ||||
-rw-r--r-- | qadevOOo/runner/util/SOfficeFactory.java | 4 | ||||
-rw-r--r-- | qadevOOo/runner/util/ValueChanger.java | 2 | ||||
-rw-r--r-- | qadevOOo/runner/util/WriterTools.java | 8 |
7 files changed, 14 insertions, 14 deletions
diff --git a/qadevOOo/runner/util/BasicMacroTools.java b/qadevOOo/runner/util/BasicMacroTools.java index 9d48c946ac97..34407cac336d 100644 --- a/qadevOOo/runner/util/BasicMacroTools.java +++ b/qadevOOo/runner/util/BasicMacroTools.java @@ -242,7 +242,7 @@ public class BasicMacroTools { XPropertySet oScriptingSettings = UnoRuntime.queryInterface(XPropertySet.class, oScripting); oScriptingSettings.setPropertyValue("SecureURL", new String[]{secureURL}); - oScriptingSettings.setPropertyValue("OfficeBasic", new Integer(2)); + oScriptingSettings.setPropertyValue("OfficeBasic", Integer.valueOf(2)); XChangesBatch oSecureChange = UnoRuntime.queryInterface(XChangesBatch.class, oSecure); oSecureChange.commitChanges(); diff --git a/qadevOOo/runner/util/DBTools.java b/qadevOOo/runner/util/DBTools.java index f6cd9a865e46..7960a8dac488 100644 --- a/qadevOOo/runner/util/DBTools.java +++ b/qadevOOo/runner/util/DBTools.java @@ -68,10 +68,10 @@ public class DBTools { * Values for filling test table. */ public final static Object[][] TST_TABLE_VALUES = new Object[][] { - {"String1", new Integer(1), null, null, new Double(1.1), + {"String1", Integer.valueOf(1), null, null, new Double(1.1), new Date((short) 1,(short) 1, (short) 2001), null, null, null, Boolean.TRUE, null, null}, - {"String2", new Integer(2), null, null, new Double(1.2), + {"String2", Integer.valueOf(2), null, null, new Double(1.2), new Date((short) 2, (short) 1,(short) 2001), null, null, null, Boolean.FALSE, null, null}, {null, null, null, null, null, diff --git a/qadevOOo/runner/util/FormTools.java b/qadevOOo/runner/util/FormTools.java index 2de4698877c2..bebd3c3ddd2a 100644 --- a/qadevOOo/runner/util/FormTools.java +++ b/qadevOOo/runner/util/FormTools.java @@ -226,7 +226,7 @@ public class FormTools { XPropertySet formProps = UnoRuntime.queryInterface(XPropertySet.class, the_form); formProps.setPropertyValue("DataSourceName","Bibliography"); formProps.setPropertyValue("Command","biblio"); - formProps.setPropertyValue("CommandType",new Integer(com.sun.star.sdb.CommandType.TABLE)); + formProps.setPropertyValue("CommandType",Integer.valueOf(com.sun.star.sdb.CommandType.TABLE)); formLoader = UnoRuntime.queryInterface(XLoadable.class, the_form); } catch (Exception ex) { @@ -255,7 +255,7 @@ public class FormTools { XPropertySet formProps = UnoRuntime.queryInterface(XPropertySet.class, the_form); formProps.setPropertyValue("DataSourceName",sourceName); formProps.setPropertyValue("Command",tableName); - formProps.setPropertyValue("CommandType",new Integer(com.sun.star.sdb.CommandType.TABLE)); + formProps.setPropertyValue("CommandType",Integer.valueOf(com.sun.star.sdb.CommandType.TABLE)); return UnoRuntime.queryInterface(XLoadable.class, the_form); } @@ -281,7 +281,7 @@ public class FormTools { XPropertySet formProps = UnoRuntime.queryInterface(XPropertySet.class, the_form); formProps.setPropertyValue("DataSourceName",sourceName); formProps.setPropertyValue("Command",tableName); - formProps.setPropertyValue("CommandType",new Integer(com.sun.star.sdb.CommandType.TABLE)); + formProps.setPropertyValue("CommandType",Integer.valueOf(com.sun.star.sdb.CommandType.TABLE)); return UnoRuntime.queryInterface(XLoadable.class, the_form); } diff --git a/qadevOOo/runner/util/FrameDsc.java b/qadevOOo/runner/util/FrameDsc.java index 147ed14a0423..c65738eb9204 100644 --- a/qadevOOo/runner/util/FrameDsc.java +++ b/qadevOOo/runner/util/FrameDsc.java @@ -99,7 +99,7 @@ public class FrameDsc extends InstDescr { try { - oPropSet.setPropertyValue("AnchorType", new Integer(2)); + oPropSet.setPropertyValue("AnchorType", Integer.valueOf(2)); } catch( com.sun.star.beans.UnknownPropertyException upE ){ } diff --git a/qadevOOo/runner/util/SOfficeFactory.java b/qadevOOo/runner/util/SOfficeFactory.java index f086a0d27fb2..54f119b57d31 100644 --- a/qadevOOo/runner/util/SOfficeFactory.java +++ b/qadevOOo/runner/util/SOfficeFactory.java @@ -64,11 +64,11 @@ public class SOfficeFactory { public static SOfficeFactory getFactory(XMultiServiceFactory xMSF) { - SOfficeFactory soFactory = lookup.get(new Integer(xMSF.hashCode()).toString()); + SOfficeFactory soFactory = lookup.get(Integer.valueOf(xMSF.hashCode()).toString()); if (soFactory == null) { soFactory = new SOfficeFactory(xMSF); - lookup.put(new Integer(xMSF.hashCode()).toString(), soFactory); + lookup.put(Integer.valueOf(xMSF.hashCode()).toString(), soFactory); } return soFactory; diff --git a/qadevOOo/runner/util/ValueChanger.java b/qadevOOo/runner/util/ValueChanger.java index 00d6fdffaea2..db95579f162c 100644 --- a/qadevOOo/runner/util/ValueChanger.java +++ b/qadevOOo/runner/util/ValueChanger.java @@ -55,7 +55,7 @@ public class ValueChanger { if (oldValue instanceof Integer) { int oldint = ((Integer) oldValue).intValue(); - newValue = new Integer(oldint+5); + newValue = Integer.valueOf(oldint+5); } else if (oldValue instanceof Long) { diff --git a/qadevOOo/runner/util/WriterTools.java b/qadevOOo/runner/util/WriterTools.java index aec10a16ba4d..d1445cd1b108 100644 --- a/qadevOOo/runner/util/WriterTools.java +++ b/qadevOOo/runner/util/WriterTools.java @@ -93,10 +93,10 @@ public class WriterTools { String fullURL = util.utils.getFullTestURL(pic); oProps.setPropertyValue("GraphicURL", fullURL); - oProps.setPropertyValue("HoriOrientPosition", new Integer(hpos)); - oProps.setPropertyValue("VertOrientPosition", new Integer(vpos)); - oProps.setPropertyValue("Width", new Integer(width)); - oProps.setPropertyValue("Height", new Integer(height)); + oProps.setPropertyValue("HoriOrientPosition", Integer.valueOf(hpos)); + oProps.setPropertyValue("VertOrientPosition", Integer.valueOf(vpos)); + oProps.setPropertyValue("Width", Integer.valueOf(width)); + oProps.setPropertyValue("Height", Integer.valueOf(height)); XNamed the_name = UnoRuntime.queryInterface(XNamed.class, oGObject); |