HHH-11119 Improve performance of StringHelper.qualify() and StringHelper.unqualify()
This commit is contained in:
parent
2b5e201653
commit
d4d2b8f74f
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue