Drop unneeded generic type specifiers
[yangtools.git] / yang / yang-data-impl / src / main / java / org / opendaylight / yangtools / yang / data / impl / codec / xml / XmlStreamUtils.java
index eeda8954c79231371567d674eda12e8b3fc6b482..dfce4751b0b3e60ce86322a01605f63d6a141ca1 100644 (file)
@@ -116,7 +116,7 @@ public class XmlStreamUtils {
     }
 
     public void writeValue(@Nonnull final XMLStreamWriter writer, @Nonnull final SchemaNode schemaNode, final Object value) throws XMLStreamException {
-        writeValue(writer, schemaNode, value, Optional.<QNameModule>absent());
+        writeValue(writer, schemaNode, value, Optional.absent());
     }
 
     public void writeValue(@Nonnull final XMLStreamWriter writer, @Nonnull final SchemaNode schemaNode, final Object value, final QNameModule parent) throws XMLStreamException {
@@ -144,7 +144,7 @@ public class XmlStreamUtils {
             if (parent.isPresent()) {
                 write(writer, (IdentityrefTypeDefinition) baseType, value, parent);
             } else {
-                write(writer, (IdentityrefTypeDefinition) baseType, value, Optional.<QNameModule>absent());
+                write(writer, (IdentityrefTypeDefinition) baseType, value, Optional.absent());
             }
         } else if (baseType instanceof InstanceIdentifierTypeDefinition) {
             write(writer, (InstanceIdentifierTypeDefinition) baseType, value);
@@ -171,7 +171,7 @@ public class XmlStreamUtils {
     }
 
     public void writeValue(@Nonnull final XMLStreamWriter writer, @Nonnull final TypeDefinition<?> type, final Object value) throws XMLStreamException {
-        writeValue(writer, type, value, Optional.<QNameModule>absent());
+        writeValue(writer, type, value, Optional.absent());
     }
 
     @VisibleForTesting