java: simplify conditions involving logical negation
Change-Id: Ib45e58273e650ef9a31dbdb5f71e995a5976f50e
This commit is contained in:
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user