import java.net.URL;
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;
RFC6020_YANG_FILE_EXTENSION);
final String baseName = name.substring(0, name.length() - RFC6020_YANG_FILE_EXTENSION.length());
- final Entry<String, String> parsed = parseFilename(baseName);
+ final var parsed = parseFilename(baseName);
return RevisionSourceIdentifier.create(parsed.getKey(), Revision.ofNullable(parsed.getValue()));
}