Commit 4a2ef158 authored by Maxym Borodenko's avatar Maxym Borodenko

Fix JsonSidConverter

parent 3aadc3dd
......@@ -20,7 +20,7 @@ import com.fasterxml.jackson.databind.util.StdConverter;
/**
* The JsonSidConverter converts SID IDs to SID names.
*/
public class JsonSidConverter extends StdConverter<Long, Object> {
public class JsonSidConverter extends StdConverter<Long, String> {
private static SidProvider SID_PROVIDER;
......@@ -41,12 +41,12 @@ public class JsonSidConverter extends StdConverter<Long, Object> {
* Convert SID ID to SID name using SID_PROVIDER (when available)
*/
@Override
public Object convert(Long value) {
public String convert(Long value) {
if (value == null) {
return null;
} else {
if (SID_PROVIDER == null) {
return value;
return Long.toString(value);
} else {
return SID_PROVIDER.getSidName(value);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment