Client registration won't compile without these changes

This commit is contained in:
Bruno Oliveira 2016-03-04 12:46:57 -03:00
parent 8caad0118c
commit 4a027d97b0

View file

@ -1,8 +1,8 @@
package org.keycloak.client.registration.cli; package org.keycloak.client.registration.cli;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
import org.codehaus.jackson.map.SerializationConfig; import com.fasterxml.jackson.databind.SerializationFeature;
import org.codehaus.jackson.map.annotate.JsonSerialize;
import org.keycloak.client.registration.ClientRegistration; import org.keycloak.client.registration.ClientRegistration;
import org.keycloak.util.SystemPropertiesJsonParserFactory; import org.keycloak.util.SystemPropertiesJsonParserFactory;
@ -16,8 +16,8 @@ public class Context {
private static final ObjectMapper mapper = new ObjectMapper(new SystemPropertiesJsonParserFactory()); private static final ObjectMapper mapper = new ObjectMapper(new SystemPropertiesJsonParserFactory());
static { static {
mapper.setSerializationInclusion(JsonSerialize.Inclusion.NON_NULL); mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
mapper.enable(SerializationConfig.Feature.INDENT_OUTPUT); mapper.enable(SerializationFeature.INDENT_OUTPUT);
} }
private ClientRegistration reg; private ClientRegistration reg;