mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-21 23:12:11 +01:00
use index of char instead of index of string, if possible
This commit is contained in:
@@ -299,7 +299,7 @@ public class DefaultPluginLoader implements PluginLoader
|
||||
{
|
||||
|
||||
// jar:file:/some/path/file.jar!/META-INF/scm/plugin.xml
|
||||
path = path.substring("jar:file:".length(), path.lastIndexOf("!"));
|
||||
path = path.substring("jar:file:".length(), path.lastIndexOf('!'));
|
||||
path = decodePath(path);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user