diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-12 15:09:06 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-19 14:57:17 +0200 |
commit | ff0ad0493ee1729c726587f667761b04101d774c (patch) | |
tree | 8c0f97e8740fbdb2ed0cdbfc5d99d82cae8f7df6 /framework | |
parent | be1bb7b1ccee28be616b89cc95e97d656e78bbe3 (diff) |
java: use 'Integer.valueOf' instead of 'new Integer'
Change-Id: Ia8befb8d69914ce971174fc5f2ffc0e2f506a940
Diffstat (limited to 'framework')
3 files changed, 4 insertions, 4 deletions
diff --git a/framework/qa/complex/accelerators/AcceleratorsConfigurationTest.java b/framework/qa/complex/accelerators/AcceleratorsConfigurationTest.java index 6b2ff6f0c51c..45d0c675ec56 100644 --- a/framework/qa/complex/accelerators/AcceleratorsConfigurationTest.java +++ b/framework/qa/complex/accelerators/AcceleratorsConfigurationTest.java @@ -565,7 +565,7 @@ public class AcceleratorsConfigurationTest Object aArgs[] = new Object[2]; aArgs[0] = sDocCfgName; - aArgs[1] = new Integer(com.sun.star.embed.ElementModes.READ); + aArgs[1] = Integer.valueOf(com.sun.star.embed.ElementModes.READ); XStorage xRootStorage = UnoRuntime.queryInterface(XStorage.class, xStorageFactory.createInstanceWithArguments(aArgs)); XStorage xUIConfig = xRootStorage.openStorageElement("Configurations2", com.sun.star.embed.ElementModes.READ); @@ -601,7 +601,7 @@ public class AcceleratorsConfigurationTest Object aArgs[] = new Object[2]; aArgs[0] = sDocCfgName; - aArgs[1] = new Integer(com.sun.star.embed.ElementModes.WRITE); + aArgs[1] = Integer.valueOf(com.sun.star.embed.ElementModes.WRITE); XStorage xRootStorage = UnoRuntime.queryInterface(XStorage.class, xStorageFactory.createInstanceWithArguments(aArgs)); XStorage xUIConfig = xRootStorage.openStorageElement("Configurations2", com.sun.star.embed.ElementModes.WRITE); diff --git a/framework/qa/complex/framework/autosave/AutoSave.java b/framework/qa/complex/framework/autosave/AutoSave.java index 9f6494394037..dd50de5741d3 100644 --- a/framework/qa/complex/framework/autosave/AutoSave.java +++ b/framework/qa/complex/framework/autosave/AutoSave.java @@ -196,7 +196,7 @@ public class AutoSave // make sure it will be started every 1 min ConfigHelper aConfig = new ConfigHelper(connection.getComponentContext(), "org.openoffice.Office.Recovery", false); aConfig.writeRelativeKey("AutoSave", "Enabled" , Boolean.TRUE ); - aConfig.writeRelativeKey("AutoSave", "TimeIntervall", new Integer(1)); // 1 min + aConfig.writeRelativeKey("AutoSave", "TimeIntervall", Integer.valueOf(1)); // 1 min aConfig.flush(); aConfig = null; diff --git a/framework/qa/complex/framework/recovery/RecoveryTest.java b/framework/qa/complex/framework/recovery/RecoveryTest.java index 988d00a7d860..463f748ba206 100644 --- a/framework/qa/complex/framework/recovery/RecoveryTest.java +++ b/framework/qa/complex/framework/recovery/RecoveryTest.java @@ -250,7 +250,7 @@ public class RecoveryTest extends ComplexTestCase { assure(msg, expectedDocumentCount == documents.length); log.println("disable automatically launch of Office"); - oUITools.setCheckBoxValue("Launch StarOffice automatically", new Integer(0)); + oUITools.setCheckBoxValue("Launch StarOffice automatically", Integer.valueOf(0)); log.println("start saving..."); oUITools.clickButton("OK"); |