mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-14 20:45:22 +02:00
[cleanup][189498] use "true".equals()
This commit is contained in:
parent
37cacfc24b
commit
ea000cc737
1 changed files with 3 additions and 13 deletions
|
@ -170,11 +170,7 @@ public class DStoreHostFile implements IHostFile
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
String str = getAttribute(_element.getSource(), ATTRIBUTE_IS_HIDDEN);
|
String str = getAttribute(_element.getSource(), ATTRIBUTE_IS_HIDDEN);
|
||||||
if (str != null && str.length() > 0)
|
return "true".equals(str); //$NON-NLS-1$
|
||||||
{
|
|
||||||
return(str.equals("true")); //$NON-NLS-1$
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -398,18 +394,12 @@ public class DStoreHostFile implements IHostFile
|
||||||
|
|
||||||
public boolean canRead() {
|
public boolean canRead() {
|
||||||
String str = getAttribute(_element.getSource(), ATTRIBUTE_CAN_READ);
|
String str = getAttribute(_element.getSource(), ATTRIBUTE_CAN_READ);
|
||||||
if (str != null)
|
return "true".equals(str); //$NON-NLS-1$
|
||||||
{
|
|
||||||
return(str.equals("true")); //$NON-NLS-1$
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean canWrite() {
|
public boolean canWrite() {
|
||||||
String str = getAttribute(_element.getSource(), ATTRIBUTE_CAN_WRITE);
|
String str = getAttribute(_element.getSource(), ATTRIBUTE_CAN_WRITE);
|
||||||
if (str != null)
|
return "true".equals(str); //$NON-NLS-1$
|
||||||
return(str.equals("true")); //$NON-NLS-1$
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue