parent
9052ec2b02
commit
181e1b914f
2 changed files with 3 additions and 2 deletions
2
pom.xml
2
pom.xml
|
@ -114,7 +114,7 @@
|
|||
<xmlsec.version>2.2.3</xmlsec.version>
|
||||
<wildfly.common.version>1.6.0.Final</wildfly.common.version>
|
||||
<nashorn.version>15.3</nashorn.version>
|
||||
<ua-parser.version>1.5.2</ua-parser.version>
|
||||
<ua-parser.version>1.5.4</ua-parser.version>
|
||||
<picketbox.version>5.0.3.Final</picketbox.version>
|
||||
<google.guava.version>30.1-jre</google.guava.version>
|
||||
<xstream.version>1.4.20</xstream.version>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package org.keycloak.device;
|
||||
|
||||
import org.keycloak.models.KeycloakSession;
|
||||
import ua_parser.CachingParser;
|
||||
import ua_parser.Parser;
|
||||
|
||||
public class DeviceRepresentationProviderFactoryImpl implements DeviceRepresentationProviderFactory {
|
||||
|
@ -23,7 +24,7 @@ public class DeviceRepresentationProviderFactoryImpl implements DeviceRepresenta
|
|||
private void lazyInit(KeycloakSession session) {
|
||||
if(parser == null) {
|
||||
synchronized (this) {
|
||||
parser = new Parser();
|
||||
parser = new CachingParser();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue