MINOR: Removed dead casts and interface declarations

Fixes #7600
This commit is contained in:
Armin 2017-07-06 15:51:10 +02:00 committed by Armin Braun
parent 01e7173f62
commit 89236f02b4
2 changed files with 4 additions and 4 deletions

View file

@ -17,7 +17,7 @@ import java.util.stream.Stream;
import static org.logstash.Valuefier.convert;
public class ConvertedList<T> implements List<T>, Collection<T>, Iterable<T> {
public class ConvertedList<T> implements List<T> {
private final List<T> delegate;
public ConvertedList(final int size) {

View file

@ -30,7 +30,7 @@ public class KeyNode implements TemplateNode {
return join((List)value, ",");
} else if (value instanceof Map) {
ObjectMapper mapper = new ObjectMapper();
return mapper.writeValueAsString((Map<String, Object>)value);
return mapper.writeValueAsString(value);
} else {
return event.getField(this.key).toString();
}
@ -60,8 +60,8 @@ public class KeyNode implements TemplateNode {
if (value == null) return "";
if (value instanceof List) return join((List)value, delim);
if (value instanceof BiValue) {
return ((BiValue) value).toString();
return value.toString();
}
return value.toString();
}
}
}