java: avoid unnecessary comparisons in boolean expressions
i.e. stuff like "x == true" Change-Id: Ib82a4a30e736df392405332fa197b588482cffcf
This commit is contained in:
@@ -184,7 +184,7 @@ public class ParcelBrowseNode extends PropertySet
|
||||
String newName;
|
||||
|
||||
if (aParams == null || aParams.length < 1 ||
|
||||
AnyConverter.isString(aParams[0]) == false)
|
||||
!AnyConverter.isString(aParams[0]))
|
||||
{
|
||||
String prompt = "Enter name for new Script";
|
||||
String title = "Create Script";
|
||||
@@ -269,7 +269,7 @@ public class ParcelBrowseNode extends PropertySet
|
||||
{
|
||||
|
||||
if (aParams == null || aParams.length < 1 ||
|
||||
AnyConverter.isString(aParams[0]) == false)
|
||||
!AnyConverter.isString(aParams[0]))
|
||||
{
|
||||
String prompt = "Enter new name for Library";
|
||||
String title = "Rename Library";
|
||||
|
@@ -183,7 +183,7 @@ public class ProviderBrowseNode extends PropertySet
|
||||
String name;
|
||||
|
||||
if (aParams == null || aParams.length < 1 ||
|
||||
AnyConverter.isString(aParams[0]) == false)
|
||||
!AnyConverter.isString(aParams[0]))
|
||||
{
|
||||
String prompt = "Enter name for new Parcel";
|
||||
String title = "Create Parcel";
|
||||
|
@@ -83,7 +83,7 @@ public class ScriptBrowseNode extends PropertySet
|
||||
LogUtils.DEBUG("** caught exception getting script data for " + name + " ->" + e.toString() );
|
||||
}
|
||||
|
||||
if (provider.hasScriptEditor() == true)
|
||||
if (provider.hasScriptEditor())
|
||||
{
|
||||
|
||||
this.editable = true;
|
||||
|
Reference in New Issue
Block a user