java: simplify conditions involving logical negation

Change-Id: Ib45e58273e650ef9a31dbdb5f71e995a5976f50e
This commit is contained in:
Noel Grandin
2014-08-20 15:30:36 +02:00
parent 726fc58d0c
commit dc53e3027b
17 changed files with 26 additions and 27 deletions

View File

@@ -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)) {