diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-20 15:32:38 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-07 13:20:02 +0200 |
commit | f9be44340a1fbabb67c7a33d8c9b4766a56c1fde (patch) | |
tree | bc4ca4eccbe7deefbf42a27862fcdb4440a18c32 /odk | |
parent | dc53e3027bb1a278164f15d0a31f20c15608d10e (diff) |
java: use equals() to compare Strings, not ==
Change-Id: Ia41a4899fb82df7b580a020765404c4ef0cddfa2
Diffstat (limited to 'odk')
-rw-r--r-- | odk/examples/java/Storage/Test01.java | 2 | ||||
-rw-r--r-- | odk/examples/java/Storage/Test04.java | 2 | ||||
-rw-r--r-- | odk/examples/java/Storage/Test05.java | 2 | ||||
-rw-r--r-- | odk/examples/java/Storage/Test07.java | 2 | ||||
-rw-r--r-- | odk/examples/java/Storage/Test08.java | 2 | ||||
-rw-r--r-- | odk/examples/java/Storage/Test09.java | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/odk/examples/java/Storage/Test01.java b/odk/examples/java/Storage/Test01.java index b2e94b36ac44..ed2d1e9546aa 100644 --- a/odk/examples/java/Storage/Test01.java +++ b/odk/examples/java/Storage/Test01.java @@ -40,7 +40,7 @@ public class Test01 implements StorageTest { try { String sTempFileURL = m_aTestHelper.CreateTempFile( m_xMSF ); - if ( sTempFileURL == null || sTempFileURL == "" ) + if ( sTempFileURL == null || sTempFileURL.equals("") ) { m_aTestHelper.Error( "No valid temporary file was created!" ); return false; diff --git a/odk/examples/java/Storage/Test04.java b/odk/examples/java/Storage/Test04.java index 79a55dcb25a4..2390a9140992 100644 --- a/odk/examples/java/Storage/Test04.java +++ b/odk/examples/java/Storage/Test04.java @@ -41,7 +41,7 @@ public class Test04 implements StorageTest { try { String sTempFileURL = m_aTestHelper.CreateTempFile( m_xMSF ); - if ( sTempFileURL == null || sTempFileURL == "" ) + if ( sTempFileURL == null || sTempFileURL.equals("") ) { m_aTestHelper.Error( "No valid temporary file was created!" ); return false; diff --git a/odk/examples/java/Storage/Test05.java b/odk/examples/java/Storage/Test05.java index b0c84ae11b9f..571251bb276d 100644 --- a/odk/examples/java/Storage/Test05.java +++ b/odk/examples/java/Storage/Test05.java @@ -42,7 +42,7 @@ public class Test05 implements StorageTest { try { String sTempFileURL = m_aTestHelper.CreateTempFile( m_xMSF ); - if ( sTempFileURL == null || sTempFileURL == "" ) + if ( sTempFileURL == null || sTempFileURL.equals("") ) { m_aTestHelper.Error( "No valid temporary file was created!" ); return false; diff --git a/odk/examples/java/Storage/Test07.java b/odk/examples/java/Storage/Test07.java index 7ae850fab32c..c89268817a21 100644 --- a/odk/examples/java/Storage/Test07.java +++ b/odk/examples/java/Storage/Test07.java @@ -40,7 +40,7 @@ public class Test07 implements StorageTest { try { String sTempFileURL = m_aTestHelper.CreateTempFile( m_xMSF ); - if ( sTempFileURL == null || sTempFileURL == "" ) + if ( sTempFileURL == null || sTempFileURL.equals("") ) { m_aTestHelper.Error( "No valid temporary file was created!" ); return false; diff --git a/odk/examples/java/Storage/Test08.java b/odk/examples/java/Storage/Test08.java index adc911ccb95f..43e9423781e2 100644 --- a/odk/examples/java/Storage/Test08.java +++ b/odk/examples/java/Storage/Test08.java @@ -119,7 +119,7 @@ public class Test08 implements StorageTest { // create temporary file String sTempFileURL = m_aTestHelper.CreateTempFile( m_xMSF ); - if ( sTempFileURL == null || sTempFileURL == "" ) + if ( sTempFileURL == null || sTempFileURL.equals("") ) { m_aTestHelper.Error( "No valid temporary file was created!" ); return false; diff --git a/odk/examples/java/Storage/Test09.java b/odk/examples/java/Storage/Test09.java index 171ce6f25627..5e59562c6eb0 100644 --- a/odk/examples/java/Storage/Test09.java +++ b/odk/examples/java/Storage/Test09.java @@ -61,7 +61,7 @@ public class Test09 implements StorageTest { // create temporary file String sTempFileURL = m_aTestHelper.CreateTempFile( m_xMSF ); - if ( sTempFileURL == null || sTempFileURL == "" ) + if ( sTempFileURL == null || sTempFileURL.equals( "" ) ) { m_aTestHelper.Error( "No valid temporary file was created!" ); return false; |