Kaydet (Commit) c320161f authored tarafından Christian Lohmaier's avatar Christian Lohmaier

compare strings using equals, not with ==

Change-Id: I8869980198123bbe9e86e12638e3316be24588c3
üst 7b282e3d
......@@ -160,7 +160,7 @@ public class FileUtilities {
if (filename == null)
return false;
if (byMode == ALL && byFilename == "") {
if (byMode == ALL && byFilename.equals("")) {
if (filename.startsWith(".")) {//ignore hidden files
return false;
}
......@@ -171,7 +171,7 @@ public class FileUtilities {
if (mExtnMap.get (getExtension (filename)) != byMode)
return false;
}
if (byFilename != "") {
if (!byFilename.equals("")) {
// FIXME return false on a non-match
}
return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment