import java.util.HashSet;
import java.util.List;
import java.util.Map;
+import java.util.Set;
import java.util.concurrent.atomic.AtomicBoolean;
import javax.annotation.concurrent.ThreadSafe;
import org.opendaylight.yangtools.concepts.Delegator;
private List<InputStream> getValidInputStreamsInternal() {
assertNotClosed();
- final HashSet<SourceIdentifier> sourcesToLoad = new HashSet<>();
+ final Set<SourceIdentifier> sourcesToLoad = new HashSet<>();
sourcesToLoad.addAll(this.getValidSources());
for (SourceIdentifier source : this.getValidSources()) {
if (source.getRevision() != null) {
import com.google.common.collect.ImmutableSet;
import java.io.InputStream;
import java.util.HashMap;
+import java.util.Map;
import javax.annotation.concurrent.NotThreadSafe;
import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.model.api.ModuleImport;
}
private static final Logger LOG = LoggerFactory.getLogger(YangSourceContextResolver.class);
- private final HashMap<SourceIdentifier, YangSourceContextResolver.ResolutionState> alreadyProcessed = new HashMap<>();
+ private final Map<SourceIdentifier, YangSourceContextResolver.ResolutionState> alreadyProcessed = new HashMap<>();
private final ImmutableSet.Builder<SourceIdentifier> missingSources = ImmutableSet.builder();
private final ImmutableMultimap.Builder<SourceIdentifier, ModuleImport> missingDependencies = ImmutableMultimap
.builder();