summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-20 15:30:36 +0200
committerNoel Grandin <noel@peralex.com>2014-10-07 13:20:02 +0200
commitdc53e3027bb1a278164f15d0a31f20c15608d10e (patch)
tree84fe7e21121789981ac18e53e1f45453a064e279 /scripting
parent726fc58d0cbdb0fa6d71e5c896889a7c5b64cd9c (diff)
java: simplify conditions involving logical negation
Change-Id: Ib45e58273e650ef9a31dbdb5f71e995a5976f50e
Diffstat (limited to 'scripting')
-rw-r--r--scripting/java/com/sun/star/script/framework/io/UCBStreamHandler.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripting/java/com/sun/star/script/framework/io/UCBStreamHandler.java b/scripting/java/com/sun/star/script/framework/io/UCBStreamHandler.java
index 969f79119f5b..05384a76f1dd 100644
--- a/scripting/java/com/sun/star/script/framework/io/UCBStreamHandler.java
+++ b/scripting/java/com/sun/star/script/framework/io/UCBStreamHandler.java
@@ -117,8 +117,7 @@ public class UCBStreamHandler extends URLStreamHandler {
try {
String sUrl = url.toString();
-
- if (!(sUrl.lastIndexOf(separator) == -1)) {
+ if ( sUrl.lastIndexOf(separator) != -1 ) {
String path = sUrl.substring(0, sUrl.lastIndexOf(separator));
if (m_xSimpleFileAccess.isReadOnly(path)) {