mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-23 17:41:28 +01:00
Removed redundant call to length for substring.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user