Drop unneeded generic type specifiers
[yangtools.git] / yang / yang-parser-impl / src / main / java / org / opendaylight / yangtools / yang / parser / impl / ParserListenerUtils.java
index 44b83477f63531540ba41092e72c5639b73473b4..2cdf33ae2690dee1d378204410dab8d85882f382 100644 (file)
@@ -531,7 +531,7 @@ public final class ParserListenerUtils {
      */
     public static Set<String> createListKey(final Key_stmtContext ctx) {
         final String keyDefinition = stringFromNode(ctx);
-        return Sets.<String>newLinkedHashSet(KEYDEF_SPLITTER.split(keyDefinition));
+        return Sets.newLinkedHashSet(KEYDEF_SPLITTER.split(keyDefinition));
     }
 
     /**
@@ -1466,7 +1466,7 @@ public final class ParserListenerUtils {
             baseType = uintType;
         } else if ("enumeration".equals(typeName)) {
             List<EnumTypeDefinition.EnumPair> enumConstants = getEnumConstants(typeBody, actualPath, moduleName);
-            return EnumerationType.create(baseTypePath, enumConstants, Optional.<EnumPair> absent());
+            return EnumerationType.create(baseTypePath, enumConstants, Optional.absent());
         } else if ("string".equals(typeName)) {
             StringTypeDefinition stringType = StringType.getInstance();
             constraints.addLengths(stringType.getLengthConstraints());