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 /package/qa | |
parent | be1bb7b1ccee28be616b89cc95e97d656e78bbe3 (diff) |
java: use 'Integer.valueOf' instead of 'new Integer'
Change-Id: Ia8befb8d69914ce971174fc5f2ffc0e2f506a940
Diffstat (limited to 'package/qa')
31 files changed, 55 insertions, 55 deletions
diff --git a/package/qa/ofopxmlstorages/TestHelper.java b/package/qa/ofopxmlstorages/TestHelper.java index 16ded7037459..b7f7a44d9846 100644 --- a/package/qa/ofopxmlstorages/TestHelper.java +++ b/package/qa/ofopxmlstorages/TestHelper.java @@ -923,7 +923,7 @@ public class TestHelper { Object pArgs[] = new Object[3]; pArgs[0] = (Object) aURL; - pArgs[1] = new Integer( nMode ); + pArgs[1] = Integer.valueOf( nMode ); pArgs[2] = (Object) aAddArgs; Object oTempStorage = xFactory.createInstanceWithArguments( pArgs ); @@ -957,7 +957,7 @@ public class TestHelper { Object pArgs[] = new Object[3]; pArgs[0] = (Object) xStream; - pArgs[1] = new Integer( nMode ); + pArgs[1] = Integer.valueOf( nMode ); pArgs[2] = (Object) aAddArgs; Object oTempStorage = xFactory.createInstanceWithArguments( pArgs ); @@ -990,7 +990,7 @@ public class TestHelper { Object pArgs[] = new Object[3]; pArgs[0] = (Object) xInStream; - pArgs[1] = new Integer( ElementModes.READ ); + pArgs[1] = Integer.valueOf( ElementModes.READ ); pArgs[2] = (Object) aAddArgs; Object oTempStorage = xFactory.createInstanceWithArguments( pArgs ); diff --git a/package/qa/storages/RegressionTest_114358.java b/package/qa/storages/RegressionTest_114358.java index 6ac2b7685b46..f76216cf22d2 100644 --- a/package/qa/storages/RegressionTest_114358.java +++ b/package/qa/storages/RegressionTest_114358.java @@ -58,7 +58,7 @@ public class RegressionTest_114358 implements StorageTest { // create storage based on the temporary stream Object pArgs[] = new Object[2]; pArgs[0] = (Object) xTempFileStream; - pArgs[1] = new Integer( ElementModes.WRITE ); + pArgs[1] = Integer.valueOf( ElementModes.WRITE ); Object oTempStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); XStorage xTempStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oTempStorage ); @@ -163,7 +163,7 @@ public class RegressionTest_114358 implements StorageTest { // create a new readonly storage based on the stream and check the contents - pArgs[1] = new Integer( ElementModes.READ ); + pArgs[1] = Integer.valueOf( ElementModes.READ ); oTempStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); xTempStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oTempStorage ); if ( xTempStorage == null ) diff --git a/package/qa/storages/RegressionTest_125919.java b/package/qa/storages/RegressionTest_125919.java index f0a7a78854e5..3ad8b0e6ce40 100644 --- a/package/qa/storages/RegressionTest_125919.java +++ b/package/qa/storages/RegressionTest_125919.java @@ -63,9 +63,9 @@ public class RegressionTest_125919 implements StorageTest { for ( int nInitInd = 0; nInitInd < 36000; nInitInd++ ) { - pBytes36[nInitInd] = ( new Integer( nInitInd >> ( ( nInitInd % 2 ) * 8 ) ) ).byteValue(); + pBytes36[nInitInd] = ( Integer.valueOf( nInitInd >> ( ( nInitInd % 2 ) * 8 ) ) ).byteValue(); if ( nInitInd < 18000 ) - pBytes18[nInitInd] = ( new Integer( 256 - pBytes36[nInitInd] ) ).byteValue(); + pBytes18[nInitInd] = ( Integer.valueOf( 256 - pBytes36[nInitInd] ) ).byteValue(); } System.out.println( "This test can take up to some hours. The file size currently is about 50000." ); @@ -83,7 +83,7 @@ public class RegressionTest_125919 implements StorageTest { // create storage based on the temporary stream Object pArgs[] = new Object[2]; pArgs[0] = (Object) xBorderedStream; - pArgs[1] = new Integer( ElementModes.WRITE ); + pArgs[1] = Integer.valueOf( ElementModes.WRITE ); Object oTempStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); XStorage xTempStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oTempStorage ); diff --git a/package/qa/storages/RegressionTest_i26398.java b/package/qa/storages/RegressionTest_i26398.java index fd1c85a9b78c..ec14400c8fc9 100644 --- a/package/qa/storages/RegressionTest_i26398.java +++ b/package/qa/storages/RegressionTest_i26398.java @@ -58,7 +58,7 @@ public class RegressionTest_i26398 implements StorageTest { // create storage based on the temporary stream Object pArgs[] = new Object[2]; pArgs[0] = (Object) xTempFileStream; - pArgs[1] = new Integer( ElementModes.WRITE ); + pArgs[1] = Integer.valueOf( ElementModes.WRITE ); Object oTempStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); XStorage xTempStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oTempStorage ); diff --git a/package/qa/storages/RegressionTest_i27773.java b/package/qa/storages/RegressionTest_i27773.java index 7f0855f5f86e..ac592d965766 100644 --- a/package/qa/storages/RegressionTest_i27773.java +++ b/package/qa/storages/RegressionTest_i27773.java @@ -83,7 +83,7 @@ public class RegressionTest_i27773 implements StorageTest { // create storage based on the temporary stream Object pArgs[] = new Object[2]; pArgs[0] = (Object) xTempFileStream; - pArgs[1] = new Integer( ElementModes.WRITE ); + pArgs[1] = Integer.valueOf( ElementModes.WRITE ); Object oTempStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); XStorage xTempStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oTempStorage ); @@ -202,7 +202,7 @@ public class RegressionTest_i27773 implements StorageTest { // reopen the storage in readonly mode an check contents - pArgs[1] = new Integer( ElementModes.READ ); + pArgs[1] = Integer.valueOf( ElementModes.READ ); oTempStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); xTempStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oTempStorage ); diff --git a/package/qa/storages/RegressionTest_i29169.java b/package/qa/storages/RegressionTest_i29169.java index 3a2f50601953..12286e7589cd 100644 --- a/package/qa/storages/RegressionTest_i29169.java +++ b/package/qa/storages/RegressionTest_i29169.java @@ -58,7 +58,7 @@ public class RegressionTest_i29169 implements StorageTest { // create storage based on the temporary stream Object pArgs[] = new Object[2]; pArgs[0] = (Object) xTempFileStream; - pArgs[1] = new Integer( ElementModes.WRITE ); + pArgs[1] = Integer.valueOf( ElementModes.WRITE ); Object oTempStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); XStorage xTempStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oTempStorage ); @@ -326,7 +326,7 @@ public class RegressionTest_i29169 implements StorageTest { // create a new readonly storage based on the stream and check the contents - pArgs[1] = new Integer( ElementModes.READ ); + pArgs[1] = Integer.valueOf( ElementModes.READ ); oTempStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); xTempStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oTempStorage ); if ( xTempStorage == null ) diff --git a/package/qa/storages/RegressionTest_i29321.java b/package/qa/storages/RegressionTest_i29321.java index 6c30280d0c60..8fe980ba9dce 100644 --- a/package/qa/storages/RegressionTest_i29321.java +++ b/package/qa/storages/RegressionTest_i29321.java @@ -58,7 +58,7 @@ public class RegressionTest_i29321 implements StorageTest { // create storage based on the temporary stream Object pArgs[] = new Object[2]; pArgs[0] = (Object) xTempFileStream; - pArgs[1] = new Integer( ElementModes.WRITE ); + pArgs[1] = Integer.valueOf( ElementModes.WRITE ); Object oTempStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); XStorage xTempStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oTempStorage ); diff --git a/package/qa/storages/RegressionTest_i30400.java b/package/qa/storages/RegressionTest_i30400.java index 244e3be86c4c..39866503b615 100644 --- a/package/qa/storages/RegressionTest_i30400.java +++ b/package/qa/storages/RegressionTest_i30400.java @@ -63,7 +63,7 @@ public class RegressionTest_i30400 implements StorageTest { // create storage based on the temporary stream Object pArgs[] = new Object[2]; pArgs[0] = (Object) xTempFileStream; - pArgs[1] = new Integer( ElementModes.WRITE ); + pArgs[1] = Integer.valueOf( ElementModes.WRITE ); byte pBytes1[] = { 1, 1, 1, 1, 1 }; String pPass1 = "1, 2, 3, 4, 5"; @@ -181,7 +181,7 @@ public class RegressionTest_i30400 implements StorageTest { // reopen the target storage readonly, and check the copying with renaming - pArgs[1] = new Integer( ElementModes.READ ); + pArgs[1] = Integer.valueOf( ElementModes.READ ); oTempStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); xTempStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oTempStorage ); if ( xTempStorage == null ) @@ -244,7 +244,7 @@ public class RegressionTest_i30400 implements StorageTest { Object pArgs[] = new Object[2]; pArgs[0] = (Object) xTempFileStream2; - pArgs[1] = new Integer( ElementModes.WRITE ); + pArgs[1] = Integer.valueOf( ElementModes.WRITE ); byte pBytes1[] = { 1, 1, 1, 1, 1 }; String pPass1 = "1, 2, 3, 4, 5"; @@ -338,7 +338,7 @@ public class RegressionTest_i30400 implements StorageTest { // reopen the target storage readonly, and check the contents - pArgs[1] = new Integer( ElementModes.READ ); + pArgs[1] = Integer.valueOf( ElementModes.READ ); oTempStorage2 = m_xStorageFactory.createInstanceWithArguments( pArgs ); xTempStorage2 = (XStorage) UnoRuntime.queryInterface( XStorage.class, oTempStorage2 ); if ( xTempStorage2 == null ) diff --git a/package/qa/storages/RegressionTest_i30677.java b/package/qa/storages/RegressionTest_i30677.java index a80bff2530f1..faee91afe559 100644 --- a/package/qa/storages/RegressionTest_i30677.java +++ b/package/qa/storages/RegressionTest_i30677.java @@ -58,7 +58,7 @@ public class RegressionTest_i30677 implements StorageTest { // create storage based on the temporary stream Object pArgs[] = new Object[2]; pArgs[0] = (Object) xTempFileStream; - pArgs[1] = new Integer( ElementModes.WRITE ); + pArgs[1] = Integer.valueOf( ElementModes.WRITE ); Object oTempStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); XStorage xTempStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oTempStorage ); @@ -223,7 +223,7 @@ public class RegressionTest_i30677 implements StorageTest { // reopen the storages and check the contents - pArgs[1] = new Integer( ElementModes.READ ); + pArgs[1] = Integer.valueOf( ElementModes.READ ); oTempStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); xTempStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oTempStorage ); if ( xTempStorage == null ) diff --git a/package/qa/storages/RegressionTest_i35095.java b/package/qa/storages/RegressionTest_i35095.java index 6c57f7e49686..0c979466c33e 100644 --- a/package/qa/storages/RegressionTest_i35095.java +++ b/package/qa/storages/RegressionTest_i35095.java @@ -58,7 +58,7 @@ public class RegressionTest_i35095 implements StorageTest { // create storage based on the temporary stream Object pArgs[] = new Object[2]; pArgs[0] = (Object) xTempFileStream; - pArgs[1] = new Integer( ElementModes.WRITE ); + pArgs[1] = Integer.valueOf( ElementModes.WRITE ); Object oTempStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); XStorage xTempStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oTempStorage ); diff --git a/package/qa/storages/RegressionTest_i46848.java b/package/qa/storages/RegressionTest_i46848.java index 82981cc26063..9252766abcc2 100644 --- a/package/qa/storages/RegressionTest_i46848.java +++ b/package/qa/storages/RegressionTest_i46848.java @@ -58,7 +58,7 @@ public class RegressionTest_i46848 implements StorageTest { // create storage based on the temporary stream Object pArgs[] = new Object[2]; pArgs[0] = (Object) xTempFileStream; - pArgs[1] = new Integer( ElementModes.WRITE ); + pArgs[1] = Integer.valueOf( ElementModes.WRITE ); Object oTempStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); XStorage xTempStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oTempStorage ); @@ -164,7 +164,7 @@ public class RegressionTest_i46848 implements StorageTest { // create a new readonly storage based on the stream and check the contents - pArgs[1] = new Integer( ElementModes.READ ); + pArgs[1] = Integer.valueOf( ElementModes.READ ); oTempStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); xTempStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oTempStorage ); if ( xTempStorage == null ) diff --git a/package/qa/storages/RegressionTest_i49755.java b/package/qa/storages/RegressionTest_i49755.java index e0e0d38be95c..d2b32b8b931e 100644 --- a/package/qa/storages/RegressionTest_i49755.java +++ b/package/qa/storages/RegressionTest_i49755.java @@ -58,7 +58,7 @@ public class RegressionTest_i49755 implements StorageTest { // create storage based on the temporary stream Object pArgs[] = new Object[2]; pArgs[0] = (Object) xTempFileStream; - pArgs[1] = new Integer( ElementModes.WRITE ); + pArgs[1] = Integer.valueOf( ElementModes.WRITE ); Object oTempStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); XStorage xTempStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oTempStorage ); diff --git a/package/qa/storages/RegressionTest_i55821.java b/package/qa/storages/RegressionTest_i55821.java index b663cf09fc27..b4be15db48bd 100644 --- a/package/qa/storages/RegressionTest_i55821.java +++ b/package/qa/storages/RegressionTest_i55821.java @@ -62,7 +62,7 @@ public class RegressionTest_i55821 implements StorageTest { // create storage based on the temporary stream Object pArgs[] = new Object[2]; pArgs[0] = (Object) xTempFileStream; - pArgs[1] = new Integer( ElementModes.WRITE ); + pArgs[1] = Integer.valueOf( ElementModes.WRITE ); Object oTempStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); XStorage xTempStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oTempStorage ); @@ -98,7 +98,7 @@ public class RegressionTest_i55821 implements StorageTest { // the temporary file must not be locked any more after storage disposing - pArgs[1] = new Integer( ElementModes.READ ); + pArgs[1] = Integer.valueOf( ElementModes.READ ); Object oResultStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); XStorage xResultStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oResultStorage ); if ( xResultStorage == null ) diff --git a/package/qa/storages/RegressionTest_i59886.java b/package/qa/storages/RegressionTest_i59886.java index 475b6a4a2983..90bf87a7e34e 100644 --- a/package/qa/storages/RegressionTest_i59886.java +++ b/package/qa/storages/RegressionTest_i59886.java @@ -58,7 +58,7 @@ public class RegressionTest_i59886 implements StorageTest { // create storage based on the temporary stream Object pArgs[] = new Object[2]; pArgs[0] = (Object) xTempFileStream; - pArgs[1] = new Integer( ElementModes.WRITE ); + pArgs[1] = Integer.valueOf( ElementModes.WRITE ); Object oTempStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); XStorage xTempStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oTempStorage ); diff --git a/package/qa/storages/RegressionTest_i61909.java b/package/qa/storages/RegressionTest_i61909.java index 8021e22e70dd..a73d8677f2b9 100644 --- a/package/qa/storages/RegressionTest_i61909.java +++ b/package/qa/storages/RegressionTest_i61909.java @@ -67,7 +67,7 @@ public class RegressionTest_i61909 implements StorageTest { // create storage based on the temporary stream Object pArgs[] = new Object[2]; pArgs[0] = (Object) sTempFileURL; - pArgs[1] = new Integer( ElementModes.WRITE ); + pArgs[1] = Integer.valueOf( ElementModes.WRITE ); Object oTempStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); XStorage xTempStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oTempStorage ); diff --git a/package/qa/storages/RegressionTest_i84234.java b/package/qa/storages/RegressionTest_i84234.java index d48fac52d282..7bd8073c64f9 100644 --- a/package/qa/storages/RegressionTest_i84234.java +++ b/package/qa/storages/RegressionTest_i84234.java @@ -58,7 +58,7 @@ public class RegressionTest_i84234 implements StorageTest { // create storage based on the temporary stream Object pArgs[] = new Object[2]; pArgs[0] = (Object) xTempFileStream; - pArgs[1] = new Integer( ElementModes.WRITE ); + pArgs[1] = Integer.valueOf( ElementModes.WRITE ); Object oTempStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); XStorage xTempStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oTempStorage ); diff --git a/package/qa/storages/Test01.java b/package/qa/storages/Test01.java index 37012a1b7e8c..a5d76bcca015 100644 --- a/package/qa/storages/Test01.java +++ b/package/qa/storages/Test01.java @@ -117,7 +117,7 @@ public class Test01 implements StorageTest { // create temporary storage based on a previously created temporary file Object pArgs[] = new Object[2]; pArgs[0] = (Object) sTempFileURL; - pArgs[1] = new Integer( ElementModes.WRITE ); + pArgs[1] = Integer.valueOf( ElementModes.WRITE ); Object oTempFileStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); XStorage xTempFileStorage = (XStorage)UnoRuntime.queryInterface( XStorage.class, oTempFileStorage ); @@ -141,7 +141,7 @@ public class Test01 implements StorageTest { // the temporary file must not be locked any more after storage disposing - pArgs[1] = new Integer( ElementModes.WRITE ); + pArgs[1] = Integer.valueOf( ElementModes.WRITE ); Object oResultStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); XStorage xResultStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oResultStorage ); if ( xResultStorage == null ) diff --git a/package/qa/storages/Test02.java b/package/qa/storages/Test02.java index b976e90b52d2..2e3e712549ee 100644 --- a/package/qa/storages/Test02.java +++ b/package/qa/storages/Test02.java @@ -58,7 +58,7 @@ public class Test02 implements StorageTest { // create storage based on the temporary stream Object pArgs[] = new Object[2]; pArgs[0] = (Object) xTempFileStream; - pArgs[1] = new Integer( ElementModes.WRITE ); + pArgs[1] = Integer.valueOf( ElementModes.WRITE ); Object oTempStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); XStorage xTempStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oTempStorage ); diff --git a/package/qa/storages/Test04.java b/package/qa/storages/Test04.java index f66964df3d81..c4169d6709fc 100644 --- a/package/qa/storages/Test04.java +++ b/package/qa/storages/Test04.java @@ -139,7 +139,7 @@ public class Test04 implements StorageTest { // create temporary storage based on a previously created temporary file Object pArgs[] = new Object[2]; pArgs[0] = (Object) sTempFileURL; - pArgs[1] = new Integer( ElementModes.WRITE ); + pArgs[1] = Integer.valueOf( ElementModes.WRITE ); Object oTempFileStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); XStorage xTempFileStorage = (XStorage)UnoRuntime.queryInterface( XStorage.class, oTempFileStorage ); @@ -209,7 +209,7 @@ public class Test04 implements StorageTest { // the temporary file must not be locked any more after storage disposing - pArgs[1] = new Integer( ElementModes.WRITE ); + pArgs[1] = Integer.valueOf( ElementModes.WRITE ); Object oResStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); XStorage xResStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oResStorage ); if ( xResStorage == null ) diff --git a/package/qa/storages/Test05.java b/package/qa/storages/Test05.java index 64e8a72c4ff6..9138b4f86bf1 100644 --- a/package/qa/storages/Test05.java +++ b/package/qa/storages/Test05.java @@ -60,7 +60,7 @@ public class Test05 implements StorageTest { // create temporary storage based on a previously created temporary file Object pArgs[] = new Object[2]; pArgs[0] = (Object) sTempFileURL; - pArgs[1] = new Integer( ElementModes.WRITE ); + pArgs[1] = Integer.valueOf( ElementModes.WRITE ); Object oTempFileStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); XStorage xTempFileStorage = (XStorage)UnoRuntime.queryInterface( XStorage.class, oTempFileStorage ); @@ -249,7 +249,7 @@ public class Test05 implements StorageTest { // now check all the written and copied information - pArgs[1] = new Integer( ElementModes.READ ); + pArgs[1] = Integer.valueOf( ElementModes.READ ); Object oResultStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); XStorage xResultStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oResultStorage ); if ( xResultStorage == null ) diff --git a/package/qa/storages/Test07.java b/package/qa/storages/Test07.java index 8ce7be62721f..db0cca5b0371 100644 --- a/package/qa/storages/Test07.java +++ b/package/qa/storages/Test07.java @@ -95,7 +95,7 @@ public class Test07 implements StorageTest { // create temporary storage based on a previously created temporary file Object pArgs[] = new Object[2]; pArgs[0] = (Object) sTempFileURL; - pArgs[1] = new Integer( ElementModes.WRITE ); + pArgs[1] = Integer.valueOf( ElementModes.WRITE ); Object oTempFileStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); XStorage xTempFileStorage = (XStorage)UnoRuntime.queryInterface( XStorage.class, oTempFileStorage ); @@ -119,7 +119,7 @@ public class Test07 implements StorageTest { // the temporary file must not be locked any more after storage disposing - pArgs[1] = new Integer( ElementModes.WRITE ); + pArgs[1] = Integer.valueOf( ElementModes.WRITE ); Object oResultStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); XStorage xResultStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oResultStorage ); if ( xResultStorage == null ) diff --git a/package/qa/storages/Test08.java b/package/qa/storages/Test08.java index 404efc104b1b..9113ee385491 100644 --- a/package/qa/storages/Test08.java +++ b/package/qa/storages/Test08.java @@ -148,7 +148,7 @@ public class Test08 implements StorageTest { // create temporary storage based on a previously created temporary file Object pArgs[] = new Object[2]; pArgs[0] = (Object) sTempFileURL; - pArgs[1] = new Integer( ElementModes.WRITE ); + pArgs[1] = Integer.valueOf( ElementModes.WRITE ); Object oTempFileStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); XStorage xTempFileStorage = (XStorage)UnoRuntime.queryInterface( XStorage.class, oTempFileStorage ); @@ -172,7 +172,7 @@ public class Test08 implements StorageTest { // the temporary file must not be locked any more after storage disposing - pArgs[1] = new Integer( ElementModes.READ ); + pArgs[1] = Integer.valueOf( ElementModes.READ ); Object oResultStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); XStorage xResultStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oResultStorage ); if ( xResultStorage == null ) diff --git a/package/qa/storages/Test09.java b/package/qa/storages/Test09.java index f9299ad2e24f..3790ecd8b9e6 100644 --- a/package/qa/storages/Test09.java +++ b/package/qa/storages/Test09.java @@ -85,7 +85,7 @@ public class Test09 implements StorageTest { // create temporary storage based on a previously created temporary file Object pArgs[] = new Object[2]; pArgs[0] = (Object) sTempFileURL; - pArgs[1] = new Integer( ElementModes.WRITE ); + pArgs[1] = Integer.valueOf( ElementModes.WRITE ); Object oTempFileStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); XStorage xTempFileStorage = (XStorage)UnoRuntime.queryInterface( XStorage.class, oTempFileStorage ); @@ -126,7 +126,7 @@ public class Test09 implements StorageTest { // the temporary file must not be locked any more after storage disposing - pArgs[1] = new Integer( ElementModes.READ ); + pArgs[1] = Integer.valueOf( ElementModes.READ ); Object oResultStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); XStorage xResultStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oResultStorage ); if ( xResultStorage == null ) diff --git a/package/qa/storages/Test12.java b/package/qa/storages/Test12.java index 20801741ff3d..13850daf47cf 100644 --- a/package/qa/storages/Test12.java +++ b/package/qa/storages/Test12.java @@ -58,7 +58,7 @@ public class Test12 implements StorageTest { // create storage based on the temporary stream Object pArgs[] = new Object[2]; pArgs[0] = (Object) xTempFileStream; - pArgs[1] = new Integer( ElementModes.WRITE ); + pArgs[1] = Integer.valueOf( ElementModes.WRITE ); Object oTempStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); XStorage xTempStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oTempStorage ); diff --git a/package/qa/storages/Test13.java b/package/qa/storages/Test13.java index 5b6b4d432ab8..649f9d88b4d7 100644 --- a/package/qa/storages/Test13.java +++ b/package/qa/storages/Test13.java @@ -76,7 +76,7 @@ public class Test13 implements StorageTest { // create temporary storage based on a previously created temporary file Object pArgs[] = new Object[2]; pArgs[0] = (Object) sTempFileURL; - pArgs[1] = new Integer( ElementModes.WRITE ); + pArgs[1] = Integer.valueOf( ElementModes.WRITE ); Object oTempFileStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); XStorage xTempFileStorage = (XStorage)UnoRuntime.queryInterface( XStorage.class, oTempFileStorage ); @@ -195,7 +195,7 @@ public class Test13 implements StorageTest { // the temporary file must not be locked any more after storage disposing - pArgs[1] = new Integer( ElementModes.READ ); + pArgs[1] = Integer.valueOf( ElementModes.READ ); Object oResultStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); XStorage xResultStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oResultStorage ); if ( xResultStorage == null ) diff --git a/package/qa/storages/Test14.java b/package/qa/storages/Test14.java index 103a739e594c..04d4a87874af 100644 --- a/package/qa/storages/Test14.java +++ b/package/qa/storages/Test14.java @@ -73,7 +73,7 @@ public class Test14 implements StorageTest { // create temporary storage based on a previously created temporary file Object pArgs[] = new Object[2]; pArgs[0] = (Object) sTempFileURL; - pArgs[1] = new Integer( ElementModes.WRITE ); + pArgs[1] = Integer.valueOf( ElementModes.WRITE ); Object oTempFileStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); XStorage xTempFileStorage = (XStorage)UnoRuntime.queryInterface( XStorage.class, oTempFileStorage ); @@ -170,7 +170,7 @@ public class Test14 implements StorageTest { // the temporary file must not be locked any more after storage disposing - pArgs[1] = new Integer( ElementModes.READ ); + pArgs[1] = Integer.valueOf( ElementModes.READ ); Object oResultStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); XStorage xResultStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oResultStorage ); if ( xResultStorage == null ) diff --git a/package/qa/storages/Test15.java b/package/qa/storages/Test15.java index 335bfa9c89d1..3afe8dfc04bf 100644 --- a/package/qa/storages/Test15.java +++ b/package/qa/storages/Test15.java @@ -74,7 +74,7 @@ public class Test15 implements StorageTest { // create temporary storage based on a previously created temporary file Object pArgs[] = new Object[2]; pArgs[0] = (Object) sTempFileURL; - pArgs[1] = new Integer( ElementModes.WRITE ); + pArgs[1] = Integer.valueOf( ElementModes.WRITE ); Object oTempFileStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); XStorage xTempFileStorage = (XStorage)UnoRuntime.queryInterface( XStorage.class, oTempFileStorage ); @@ -229,7 +229,7 @@ public class Test15 implements StorageTest { // the temporary file must not be locked any more after storage disposing - pArgs[1] = new Integer( ElementModes.READ ); + pArgs[1] = Integer.valueOf( ElementModes.READ ); Object oResultStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); XStorage xResultStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oResultStorage ); if ( xResultStorage == null ) diff --git a/package/qa/storages/Test16.java b/package/qa/storages/Test16.java index ac5f32a78cc2..36e945e74d12 100644 --- a/package/qa/storages/Test16.java +++ b/package/qa/storages/Test16.java @@ -105,7 +105,7 @@ public class Test16 implements StorageTest { // create temporary storage based on a previously created temporary file Object pArgs[] = new Object[2]; pArgs[0] = (Object) sTempFileURL; - pArgs[1] = new Integer( ElementModes.WRITE ); + pArgs[1] = Integer.valueOf( ElementModes.WRITE ); Object oTempFileStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); XStorage xTempFileStorage = (XStorage)UnoRuntime.queryInterface( XStorage.class, oTempFileStorage ); @@ -129,7 +129,7 @@ public class Test16 implements StorageTest { // the temporary file must not be locked any more after storage disposing - pArgs[1] = new Integer( ElementModes.WRITE ); + pArgs[1] = Integer.valueOf( ElementModes.WRITE ); Object oResultStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); XStorage xResultStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oResultStorage ); if ( xResultStorage == null ) diff --git a/package/qa/storages/Test17.java b/package/qa/storages/Test17.java index 5133638e1572..b81fc240a7e6 100644 --- a/package/qa/storages/Test17.java +++ b/package/qa/storages/Test17.java @@ -58,7 +58,7 @@ public class Test17 implements StorageTest { // create storage based on the temporary stream Object pArgs[] = new Object[2]; pArgs[0] = (Object) xTempFileStream; - pArgs[1] = new Integer( ElementModes.WRITE ); + pArgs[1] = Integer.valueOf( ElementModes.WRITE ); Object oTempStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); XStorage xTempStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oTempStorage ); diff --git a/package/qa/storages/Test18.java b/package/qa/storages/Test18.java index 9b55a66ecf0d..3e0f246d1d3a 100644 --- a/package/qa/storages/Test18.java +++ b/package/qa/storages/Test18.java @@ -112,7 +112,7 @@ public class Test18 implements StorageTest { // create temporary storage based on a previously created temporary file Object pArgs[] = new Object[2]; pArgs[0] = (Object) sTempFileURL; - pArgs[1] = new Integer( ElementModes.WRITE ); + pArgs[1] = Integer.valueOf( ElementModes.WRITE ); Object oTempFileStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); XStorage xTempFileStorage = (XStorage)UnoRuntime.queryInterface( XStorage.class, oTempFileStorage ); @@ -136,7 +136,7 @@ public class Test18 implements StorageTest { // the temporary file must not be locked any more after storage disposing - pArgs[1] = new Integer( ElementModes.WRITE ); + pArgs[1] = Integer.valueOf( ElementModes.WRITE ); Object oResultStorage = m_xStorageFactory.createInstanceWithArguments( pArgs ); XStorage xResultStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oResultStorage ); if ( xResultStorage == null ) diff --git a/package/qa/storages/TestHelper.java b/package/qa/storages/TestHelper.java index 2f430dd81b1f..3630e707c6a4 100644 --- a/package/qa/storages/TestHelper.java +++ b/package/qa/storages/TestHelper.java @@ -1485,7 +1485,7 @@ public class TestHelper { if ( nRead1 != nRead2 ) { - Error( "The encrypted stream '" + sStreamName + "' raw representations have different size! nRead1 - nRead2 = " + ( new Integer( nRead1 - nRead2 ) ).toString() ); + Error( "The encrypted stream '" + sStreamName + "' raw representations have different size! nRead1 - nRead2 = " + ( Integer.valueOf( nRead1 - nRead2 ) ).toString() ); return false; } |