summaryrefslogtreecommitdiff
path: root/bridges
diff options
context:
space:
mode:
authorRobert Antoni Buj i Gelonch <robert.buj@gmail.com>2014-09-16 13:21:40 +0200
committerNoel Grandin <noelgrandin@gmail.com>2014-09-17 06:08:51 +0000
commitec2d5ac3718981b4d225ac831232ae4a8a7e498f (patch)
treefa4e3d203566f9459cb2f5ec0e7a841de448df02 /bridges
parent9685276b975aa37d16ba81dd8294b5717e3823df (diff)
jni_uno: string comparison
Change-Id: If093afb43f6ad8d4fcf6c0ec426eb48a6061ef3e Reviewed-on: https://gerrit.libreoffice.org/11470 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'bridges')
-rw-r--r--bridges/source/jni_uno/java/com/sun/star/bridges/jni_uno/JNI_info_holder.java2
-rw-r--r--bridges/source/jni_uno/java/com/sun/star/bridges/jni_uno/JNI_proxy.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/bridges/source/jni_uno/java/com/sun/star/bridges/jni_uno/JNI_info_holder.java b/bridges/source/jni_uno/java/com/sun/star/bridges/jni_uno/JNI_info_holder.java
index 99fd9bcfd008..1c2b691bb3a1 100644
--- a/bridges/source/jni_uno/java/com/sun/star/bridges/jni_uno/JNI_info_holder.java
+++ b/bridges/source/jni_uno/java/com/sun/star/bridges/jni_uno/JNI_info_holder.java
@@ -24,7 +24,7 @@ import com.sun.star.lib.util.NativeLibraryLoader;
public final class JNI_info_holder
{
static {
- if (System.getProperty("java.vendor") == "The Android Project") {
+ if ("The Android Project".equals(System.getProperty("java.vendor"))) {
// See corresponding code in
// javaunohelper/com/sun/star/comp/helper/Bootstrap.java for more
// comments.
diff --git a/bridges/source/jni_uno/java/com/sun/star/bridges/jni_uno/JNI_proxy.java b/bridges/source/jni_uno/java/com/sun/star/bridges/jni_uno/JNI_proxy.java
index 8a60beec4c46..af8f4a915f2f 100644
--- a/bridges/source/jni_uno/java/com/sun/star/bridges/jni_uno/JNI_proxy.java
+++ b/bridges/source/jni_uno/java/com/sun/star/bridges/jni_uno/JNI_proxy.java
@@ -31,7 +31,7 @@ import com.sun.star.uno.IQueryInterface;
public final class JNI_proxy implements java.lang.reflect.InvocationHandler
{
static {
- if (System.getProperty("java.vendor") == "The Android Project") {
+ if ("The Android Project".equals(System.getProperty("java.vendor"))) {
// See corresponding code in
// javaunohelper/com/sun/star/comp/helper/Bootstrap.java for more
// comments.