Cleanup warning suppressions
authorRobert Varga <rovarga@cisco.com>
Fri, 23 Jan 2015 07:36:12 +0000 (08:36 +0100)
committerRobert Varga <rovarga@cisco.com>
Fri, 23 Jan 2015 12:18:41 +0000 (13:18 +0100)
Some of these are implied by context, some are needed down the stack.

Change-Id: Ifc090d3dce1a99fc5624d312f16f1046705dd285
Signed-off-by: Robert Varga <rovarga@cisco.com>
code-generator/binding-data-codec/src/main/java/org/opendaylight/yangtools/binding/data/codec/impl/DataContainerCodecPrototype.java

index 0d437b06ef7f8b299228ae46d55773bef959eccb..7abe3d382a0273ace9aa1c37afaa926b7d447d61 100644 (file)
@@ -85,7 +85,6 @@ class DataContainerCodecPrototype<T> implements NodeContextSupplier {
         return new DataContainerCodecPrototype(augClass, arg, schema, factory);
     }
 
-    @SuppressWarnings({ "rawtypes", "unchecked" })
     static DataContainerCodecPrototype<NotificationDefinition> from(final Class<?> augClass, final NotificationDefinition schema, final CodecContextFactory factory) {
         final PathArgument arg = new NodeIdentifier(schema.getQName());
         return new DataContainerCodecPrototype<NotificationDefinition>(augClass,arg, schema, factory);
@@ -132,6 +131,7 @@ class DataContainerCodecPrototype<T> implements NodeContextSupplier {
     }
 
     @GuardedBy("this")
+    @SuppressWarnings({ "rawtypes", "unchecked" })
     private DataContainerCodecContext createInstance() {
         // FIXME: make protected abstract
         if (schema instanceof ContainerSchemaNode) {