@@ -714,7 +714,7 @@ public class OCFile implements Parcelable, Comparable<OCFile>, ServerFileInterfa
* @return 'True' if the file is hidden
*/
public boolean isHidden() {
- return getFileName().startsWith(".");
+ return getFileName().charAt(0) == '.';
}
public String getPermissions() {
@@ -62,7 +62,7 @@ public class MountCommandStoragePointProvider extends AbstractCommandLineStorage
if (!line.toLowerCase(Locale.US).contains("asec") && sPattern.matcher(line).matches()) {
String parts[] = line.split(" ");
for (String path : parts) {
- if (path.startsWith("/") && !path.toLowerCase(Locale.US).contains("vold")) {
+ if (path.charAt(0) == '/' && !path.toLowerCase(Locale.US).contains("vold")) {
result.add(path);
@@ -252,7 +252,7 @@ public final class DisplayUtils {
String urlNoDots = url;
String dots = "";
- while (urlNoDots.startsWith(".")) {
+ while (urlNoDots.charAt(0) == '.') {
urlNoDots = url.substring(1);
dots = dots + ".";