diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-12 14:00:54 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-19 14:57:16 +0200 |
commit | be1bb7b1ccee28be616b89cc95e97d656e78bbe3 (patch) | |
tree | d67d16a68d1469b5096a27c743c4b0326a0c0ebe /package | |
parent | 56ef5533fc1bce2134721ae64d4d6c18a3526a7a (diff) |
java: use Boolean.valueOf instead of instantiating Boolean objects
Change-Id: Ie41d6b0170a035a694dd270c311a137fd1810e74
Diffstat (limited to 'package')
-rw-r--r-- | package/qa/ofopxmlstorages/TestHelper.java | 4 | ||||
-rw-r--r-- | package/qa/storages/RegressionTest_i27773.java | 2 | ||||
-rw-r--r-- | package/qa/storages/TestHelper.java | 8 |
3 files changed, 7 insertions, 7 deletions
diff --git a/package/qa/ofopxmlstorages/TestHelper.java b/package/qa/ofopxmlstorages/TestHelper.java index 7fbf01203c3f..16ded7037459 100644 --- a/package/qa/ofopxmlstorages/TestHelper.java +++ b/package/qa/ofopxmlstorages/TestHelper.java @@ -88,7 +88,7 @@ public class TestHelper { try { xPropSet.setPropertyValue( "MediaType", sMediaType ); - xPropSet.setPropertyValue( "Compressed", new Boolean( bCompressed ) ); + xPropSet.setPropertyValue( "Compressed", Boolean.valueOf( bCompressed ) ); } catch( Exception e ) { @@ -736,7 +736,7 @@ public class TestHelper { { try { - xTempFileProps.setPropertyValue( "RemoveFile", new Boolean( false ) ); + xTempFileProps.setPropertyValue( "RemoveFile", Boolean.FALSE ); sResult = AnyConverter.toString( xTempFileProps.getPropertyValue( "Uri" ) ); } catch( Exception e ) diff --git a/package/qa/storages/RegressionTest_i27773.java b/package/qa/storages/RegressionTest_i27773.java index 481e10948d5d..7f0855f5f86e 100644 --- a/package/qa/storages/RegressionTest_i27773.java +++ b/package/qa/storages/RegressionTest_i27773.java @@ -72,7 +72,7 @@ public class RegressionTest_i27773 implements StorageTest { { String sTempURL = AnyConverter.toString( xPropSet.getPropertyValue( "Uri" ) ); // m_aTestHelper.Message( "URL: " + sTempURL ); - xPropSet.setPropertyValue( "RemoveFile", new Boolean( false ) ); + xPropSet.setPropertyValue( "RemoveFile", Boolean.FALSE ); } catch ( Exception e ) { diff --git a/package/qa/storages/TestHelper.java b/package/qa/storages/TestHelper.java index 74e944b9ee7f..2f430dd81b1f 100644 --- a/package/qa/storages/TestHelper.java +++ b/package/qa/storages/TestHelper.java @@ -87,7 +87,7 @@ public class TestHelper { try { xPropSet.setPropertyValue( "MediaType", sMediaType ); - xPropSet.setPropertyValue( "Compressed", new Boolean( bCompressed ) ); + xPropSet.setPropertyValue( "Compressed", Boolean.valueOf( bCompressed ) ); } catch( Exception e ) { @@ -313,7 +313,7 @@ public class TestHelper { // set properties to the stream try { - xPropSet.setPropertyValue( "UseCommonStoragePasswordEncryption", new Boolean( bEncrypted ) ); + xPropSet.setPropertyValue( "UseCommonStoragePasswordEncryption", Boolean.valueOf( bEncrypted ) ); } catch( Exception e ) { @@ -503,7 +503,7 @@ public class TestHelper { // set properties to the stream try { - xPropSet.setPropertyValue( "UseCommonStoragePasswordEncryption", new Boolean( bEncrypted ) ); + xPropSet.setPropertyValue( "UseCommonStoragePasswordEncryption", Boolean.valueOf( bEncrypted ) ); } catch( Exception e ) { @@ -1265,7 +1265,7 @@ public class TestHelper { { try { - xTempFileProps.setPropertyValue( "RemoveFile", new Boolean( false ) ); + xTempFileProps.setPropertyValue( "RemoveFile", Boolean.FALSE ); sResult = AnyConverter.toString( xTempFileProps.getPropertyValue( "Uri" ) ); } catch( Exception e ) |