Warning suppressions. (#986)

* Went over compilation warnings with Xlint. Only imports for DateMidnight are left, as they cannot receive a suppression annotation.

Not doing this one.

* Doing inline fully qualified path of the deprecated path.
This commit is contained in:
Koen De Groote authored and Rob Bygrave committed 2017-03-05 11:08:45 +13:00
1 parent 07ce758302
commit 289c0253b1
6 files changed
+23 -20

No files matched your search

@@ -46,6 +46,6 @@ public class DJsonBeanReader<T> implements JsonBeanReader<T> {
@Override
public JsonBeanReader<T> forJson(JsonParser moreJson, boolean resetContext) {
return new DJsonBeanReader(desc, readJson.forJson(moreJson, resetContext));
return new DJsonBeanReader<T>(desc, readJson.forJson(moreJson, resetContext));
}
}
@@ -59,7 +59,7 @@ public class DJsonContext implements JsonContext {
this.jsonFactory = (jsonFactory != null) ? jsonFactory : new JsonFactory();
this.defaultObjectMapper = this.server.getServerConfig().getObjectMapper();
this.defaultInclude = this.server.getServerConfig().getJsonInclude();
this.jsonScalar = new DJsonScalar(typeManager);
this.jsonScalar = new DJsonScalar(this.typeManager);
}
@Override
@@ -128,7 +128,7 @@ public class DJsonContext implements JsonContext {
}
@Override
public <T> DJsonBeanReader createBeanReader(Class<T> cls, JsonParser parser, JsonReadOptions options) throws JsonIOException {
public <T> DJsonBeanReader<T> createBeanReader(Class<T> cls, JsonParser parser, JsonReadOptions options) throws JsonIOException {
BeanDescriptor<T> desc = getDescriptor(cls);
ReadJson readJson = new ReadJson(desc, parser, options, determineObjectMapper(options));
@@ -136,7 +136,7 @@ public class DJsonContext implements JsonContext {
}
@Override
public <T> DJsonBeanReader createBeanReader(BeanType<T> beanType, JsonParser parser, JsonReadOptions options) throws JsonIOException {
public <T> DJsonBeanReader<T> createBeanReader(BeanType<T> beanType, JsonParser parser, JsonReadOptions options) throws JsonIOException {
BeanDescriptor<T> desc = (BeanDescriptor<T>) beanType;
ReadJson readJson = new ReadJson(desc, parser, options, determineObjectMapper(options));