Reverted back to Parser from CachingParser due to thread safety concerns
closes #16729
This commit is contained in:
parent
6ad3005717
commit
4a382752aa
1 changed files with 1 additions and 2 deletions
|
@ -1,7 +1,6 @@
|
|||
package org.keycloak.device;
|
||||
|
||||
import org.keycloak.models.KeycloakSession;
|
||||
import ua_parser.CachingParser;
|
||||
import ua_parser.Parser;
|
||||
|
||||
public class DeviceRepresentationProviderFactoryImpl implements DeviceRepresentationProviderFactory {
|
||||
|
@ -24,7 +23,7 @@ public class DeviceRepresentationProviderFactoryImpl implements DeviceRepresenta
|
|||
private void lazyInit(KeycloakSession session) {
|
||||
if(parser == null) {
|
||||
synchronized (this) {
|
||||
parser = new CachingParser();
|
||||
parser = new Parser();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue