Removed redundant call to length for substring.

This commit is contained in:
Anthony Whitford
2015-10-08 20:57:28 -07:00
parent 832d54300a
commit bc1830d8eb

View File

@@ -61,7 +61,7 @@ public final class FileUtils {
String ret = null; String ret = null;
final int pos = fileName.lastIndexOf("."); final int pos = fileName.lastIndexOf(".");
if (pos >= 0) { if (pos >= 0) {
ret = fileName.substring(pos + 1, fileName.length()).toLowerCase(); ret = fileName.substring(pos + 1).toLowerCase();
} }
return ret; return ret;
} }