Skip to content

Commit

Permalink
Minor performance improvement. Use String.lastIndexOf(int) instead of…
Browse files Browse the repository at this point in the history
… String.lastIndexOf(String).

git-svn-id: https://svn.apache.org/repos/asf/xalan/java/trunk@1225576 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Michael Glavassevich committed Dec 29, 2011
1 parent 869954c commit f450112
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -58,7 +58,7 @@ public XPathFunction resolveFunction(QName qname, int arity)
}
else if (!uri.equals(ExtensionNamespaceContext.JAVA_EXT_URI))
{
int lastSlash = className.lastIndexOf("/");
int lastSlash = className.lastIndexOf('/');
if (-1 != lastSlash)
className = className.substring(lastSlash + 1);
}
Expand Down

0 comments on commit f450112

Please sign in to comment.