use index of char instead of index of string, if possible

This commit is contained in:
Sebastian Sdorra
2013-01-30 10:10:20 +01:00
parent d165baffe9
commit 2d5fa22ca4
16 changed files with 17 additions and 17 deletions

View File

@@ -332,7 +332,7 @@ public class HgFileviewCommand extends AbstractCommand
*/
private String getNameFromPath(String path)
{
int index = path.lastIndexOf("/");
int index = path.lastIndexOf('/');
if (index > 0)
{