Skip to content

Commit 04fc77e

Browse files
committed
micro optimizing
1 parent 379d2e5 commit 04fc77e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/de/inetsoftware/jwebassembly/module/nativecode/ReplacementForClass.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,9 @@ public String getSimpleName() {
317317
return getComponentType().getSimpleName() + "[]";
318318

319319
String simpleName = getName();
320-
int index = simpleName.lastIndexOf( "$" ) + 1;
320+
int index = simpleName.lastIndexOf( '$' ) + 1;
321321
if( index == 0 ) { // top level class
322-
return simpleName.substring( simpleName.lastIndexOf( "." ) + 1 ); // strip the package name
322+
return simpleName.substring( simpleName.lastIndexOf( '.' ) + 1 ); // strip the package name
323323
}
324324

325325
// Remove leading "\$[0-9]*" from the name

0 commit comments

Comments
 (0)