Skip to content

Commit

Permalink
micro optimizing
Browse files Browse the repository at this point in the history
  • Loading branch information
Horcrux7 committed Mar 20, 2022
1 parent 379d2e5 commit 04fc77e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,9 @@ public String getSimpleName() {
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
Expand Down

0 comments on commit 04fc77e

Please sign in to comment.