[Libreoffice-commits] core.git: Branch 'libreoffice-4-2-2' - swext/mediawiki
Julien Nabet
serval2412 at yahoo.fr
Fri Feb 21 01:03:23 PST 2014
swext/mediawiki/src/com/sun/star/wiki/WikiEditorImpl.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 4c3d28b3ce57b17efd5ac49385b249a27feebb46
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Wed Feb 19 22:23:58 2014 +0100
Resolves: fdo#69925 Wiki Publisher Extension is not working
Regression from http://cgit.freedesktop.org/libreoffice/core/commit/?id=b80d8c695e6b6ded231e67ed9a80bcd1f1250c03
"compareTo" has been replaced by "==", so we compared the equality ot the pointers on the objects instead of the content of the strings
To make it simple and since we compare String objects, let's simply use "equals" method
Change-Id: I65bc1a87751297411fdbe722d3f49bce5e291638
Reviewed-on: https://gerrit.libreoffice.org/8133
Tested-by: Michael Stahl <mstahl at redhat.com>
Reviewed-by: Michael Stahl <mstahl at redhat.com>
(cherry picked from commit 6dd74978f4a41f8bb79b87784d50a85880e7e9e0)
Reviewed-on: https://gerrit.libreoffice.org/8137
Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/swext/mediawiki/src/com/sun/star/wiki/WikiEditorImpl.java b/swext/mediawiki/src/com/sun/star/wiki/WikiEditorImpl.java
index ff9f85a..4cad2f6 100644
--- a/swext/mediawiki/src/com/sun/star/wiki/WikiEditorImpl.java
+++ b/swext/mediawiki/src/com/sun/star/wiki/WikiEditorImpl.java
@@ -134,7 +134,7 @@ public final class WikiEditorImpl extends WeakBase
{
final com.sun.star.util.URL myURL = aURL;
//logger.log( Level.INFO, "received dispatch request for: "+aURL.Complete );
- if ( aURL.Protocol == protocolName )
+ if ( aURL.Protocol.equals(protocolName) )
{
/*
synchronized( this )
@@ -146,7 +146,7 @@ public final class WikiEditorImpl extends WeakBase
try
{
- if ( myURL.Path == "send" )
+ if ( myURL.Path.equals("send") )
{
sendArticle();
}
More information about the Libreoffice-commits
mailing list