mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 02:44:47 +01:00
micro optimizing
This commit is contained in:
parent
379d2e5c27
commit
04fc77e8f7
@ -317,9 +317,9 @@ class ReplacementForClass<T> {
|
||||
return getComponentType().getSimpleName() + "[]";
|
||||
|
||||
String simpleName = getName();
|
||||
int index = simpleName.lastIndexOf( "$" ) + 1;
|
||||
int index = simpleName.lastIndexOf( '$' ) + 1;
|
||||
if( index == 0 ) { // top level class
|
||||
return simpleName.substring( simpleName.lastIndexOf( "." ) + 1 ); // strip the package name
|
||||
return simpleName.substring( simpleName.lastIndexOf( '.' ) + 1 ); // strip the package name
|
||||
}
|
||||
|
||||
// Remove leading "\$[0-9]*" from the name
|
||||
|
Loading…
x
Reference in New Issue
Block a user