HHH-14816 Optimise LockMode#fromExternalForm for common case
This commit is contained in:
parent
3bee3a1c79
commit
6008264711
|
@ -147,6 +147,12 @@ public enum LockMode {
|
||||||
return NONE;
|
return NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for ( LockMode lockMode : LockMode.values() ) {
|
||||||
|
if ( lockMode.externalForm.equals( externalForm ) ) {
|
||||||
|
return lockMode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for ( LockMode lockMode : LockMode.values() ) {
|
for ( LockMode lockMode : LockMode.values() ) {
|
||||||
if ( lockMode.externalForm.equalsIgnoreCase( externalForm ) ) {
|
if ( lockMode.externalForm.equalsIgnoreCase( externalForm ) ) {
|
||||||
return lockMode;
|
return lockMode;
|
||||||
|
|
Loading…
Reference in New Issue