Fix eclipse warnings
[yangtools.git] / yang / yang-repo-api / src / main / java / org / opendaylight / yangtools / yang / model / repo / api / YinTextSchemaSource.java
index bddf3373e2b9f35399ab559da8c9eff730ac94b1..eb89a17b64b700e2570eb193580b684414dd3c3f 100644 (file)
@@ -18,7 +18,6 @@ import com.google.common.io.Resources;
 import java.io.InputStream;
 import java.nio.file.Files;
 import java.nio.file.Path;
-import java.util.Map.Entry;
 import org.eclipse.jdt.annotation.NonNull;
 import org.opendaylight.yangtools.yang.common.Revision;
 import org.opendaylight.yangtools.yang.common.YangConstants;
@@ -52,7 +51,7 @@ public abstract class YinTextSchemaSource extends ByteSource implements YinSchem
             throw new IllegalArgumentException("Filename " + name + " does not have a .yin or .xml extension");
         }
 
-        final Entry<String, String> parsed = YangNames.parseFilename(baseName);
+        final var parsed = YangNames.parseFilename(baseName);
         return RevisionSourceIdentifier.create(parsed.getKey(), Revision.ofNullable(parsed.getValue()));
     }