This Callable never throws, so do not declare the exception, fixing a
sonar warning.
Change-Id: Ia0f847dd31ebc09d91993ded5e5bb2fc6486b7d6
Signed-off-by: Robert Varga <rovarga@cisco.com>
public static final SchemaUnawareCodec EMPTY_CODEC = new SchemaUnawareCodec() {
@Override
public static final SchemaUnawareCodec EMPTY_CODEC = new SchemaUnawareCodec() {
@Override
- public Object serialize(Object arg0) {
+ public Object serialize(final Object arg0) {
// Empty type has null value in NormalizedNode and Composite Node
// representation
return null;
}
@Override
// Empty type has null value in NormalizedNode and Composite Node
// representation
return null;
}
@Override
- public Object deserialize(Object arg0) {
+ public Object deserialize(final Object arg0) {
/* Empty type has boolean.TRUE representation in Binding-aware world
* otherwise it is null / false.
* So when codec is triggered, empty leaf is present, that means we
/* Empty type has boolean.TRUE representation in Binding-aware world
* otherwise it is null / false.
* So when codec is triggered, empty leaf is present, that means we
private static final Callable<? extends SchemaUnawareCodec> EMPTY_LOADER = new Callable<SchemaUnawareCodec>() {
@Override
private static final Callable<? extends SchemaUnawareCodec> EMPTY_LOADER = new Callable<SchemaUnawareCodec>() {
@Override
- public SchemaUnawareCodec call() throws Exception {
+ public SchemaUnawareCodec call() {