fix compilation warning

This commit is contained in:
kimchy 2010-03-19 14:19:53 +02:00
parent 55cad3208e
commit 45234f4d90
2 changed files with 3 additions and 1 deletions

View File

@ -33,6 +33,8 @@ import java.io.IOException;
@ThreadSafe
public interface JsonMapper extends ToJson {
public static final JsonMapper[] EMPTY_ARRAY = new JsonMapper[0];
@NotThreadSafe
public static class BuilderContext {
private final JsonPath jsonPath;

View File

@ -411,7 +411,7 @@ public class JsonObjectMapper implements JsonMapper, JsonIncludeInAllMapper {
}
@Override public void toJson(JsonBuilder builder, Params params) throws IOException {
toJson(builder, params, null);
toJson(builder, params, JsonMapper.EMPTY_ARRAY);
}
public void toJson(JsonBuilder builder, Params params, JsonMapper... additionalMappers) throws IOException {