HHH-11119 Improve performance of StringHelper.qualify() and StringHelper.unqualify()

This commit is contained in:
ChristophDreis 2016-09-20 19:51:23 +02:00 committed by Sanne Grinovero
parent 2b5e201653
commit d4d2b8f74f
1 changed files with 2 additions and 2 deletions

View File

@ -275,12 +275,12 @@ public final class StringHelper {
}
public static String unqualify(String qualifiedName) {
int loc = qualifiedName.lastIndexOf( "." );
int loc = qualifiedName.lastIndexOf( '.' );
return ( loc < 0 ) ? qualifiedName : qualifiedName.substring( loc + 1 );
}
public static String qualifier(String qualifiedName) {
int loc = qualifiedName.lastIndexOf( "." );
int loc = qualifiedName.lastIndexOf( '.' );
return ( loc < 0 ) ? "" : qualifiedName.substring( 0, loc );
}