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 /qadevOOo/tests/java/mod | |
parent | dc53e3027bb1a278164f15d0a31f20c15608d10e (diff) |
java: use equals() to compare Strings, not ==
Change-Id: Ia41a4899fb82df7b580a020765404c4ef0cddfa2
Diffstat (limited to 'qadevOOo/tests/java/mod')
-rw-r--r-- | qadevOOo/tests/java/mod/_cpld/DLLComponentLoader.java | 2 | ||||
-rw-r--r-- | qadevOOo/tests/java/mod/_shlibloader/uno/DLLComponentLoader.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/qadevOOo/tests/java/mod/_cpld/DLLComponentLoader.java b/qadevOOo/tests/java/mod/_cpld/DLLComponentLoader.java index 9f5202a3fd75..480c0e3bd7a8 100644 --- a/qadevOOo/tests/java/mod/_cpld/DLLComponentLoader.java +++ b/qadevOOo/tests/java/mod/_cpld/DLLComponentLoader.java @@ -88,7 +88,7 @@ public class DLLComponentLoader extends TestCase { tEnv.addObjRelation("ImplementationLoader", "com.sun.star.loader.SharedLibrary") ; String os = (String) Param.get("OS"); - if (os == null || os == "") + if (os == null || os.equals("")) throw new StatusException( "Couldn't determine operating system for naming convention.", new NullPointerException()); diff --git a/qadevOOo/tests/java/mod/_shlibloader/uno/DLLComponentLoader.java b/qadevOOo/tests/java/mod/_shlibloader/uno/DLLComponentLoader.java index 6bf6ba473751..dd7df76c9138 100644 --- a/qadevOOo/tests/java/mod/_shlibloader/uno/DLLComponentLoader.java +++ b/qadevOOo/tests/java/mod/_shlibloader/uno/DLLComponentLoader.java @@ -87,7 +87,7 @@ public class DLLComponentLoader extends TestCase { tEnv.addObjRelation("ImplementationLoader", "com.sun.star.loader.SharedLibrary") ; String os = (String) Param.get("OS"); - if (os == null || os == "") + if (os == null || os.equals("")) throw new StatusException( "Couldn't determine operating system for naming convention.", new NullPointerException()); |