Drop unneeded generic type specifiers
[yangtools.git] / yang / yang-parser-impl / src / main / java / org / opendaylight / yangtools / yang / parser / impl / YangParserImpl.java
index b25986d34db17c3b1fb089c331f525b9df9bc54c..c8e88c4dfa2d94fbf93904c54d2d8c56e7b6815b 100644 (file)
@@ -181,7 +181,7 @@ public final class YangParserImpl implements YangContextParser {
     public SchemaContext parseFiles(final Collection<File> yangFiles, final SchemaContext context) throws IOException,
     YangSyntaxErrorException {
         if (yangFiles == null) {
-            return resolveSchemaContext(Collections.<Module> emptySet());
+            return resolveSchemaContext(Collections.emptySet());
         }
 
         Collection<ByteSource> sources = BuilderUtils.filesToByteSources(yangFiles);
@@ -219,7 +219,7 @@ public final class YangParserImpl implements YangContextParser {
     public SchemaContext parseSources(final Collection<ByteSource> sources, final SchemaContext context)
             throws IOException, YangSyntaxErrorException {
         if (sources == null) {
-            return resolveSchemaContext(Collections.<Module> emptySet());
+            return resolveSchemaContext(Collections.emptySet());
         }
 
         final List<ModuleBuilder> sorted = resolveModuleBuilders(sources, context);
@@ -961,7 +961,7 @@ public final class YangParserImpl implements YangContextParser {
             // Conflicting elements in other namespaces are still not present
             // since resolveUsesAugment occurs before augmenting from external
             // modules.
-            potentialTargetNode = Optional.<SchemaNodeBuilder> fromNullable(findTargetNode(augment.getTargetPath()
+            potentialTargetNode = Optional.fromNullable(findTargetNode(augment.getTargetPath()
                     .getPathFromRoot(), parentNode));
         }