com.google.inject.internal.DuplicateElementError Maven / Gradle / Ivy
package com.google.inject.internal;
import com.google.common.collect.ImmutableMultimap;
import com.google.inject.Binding;
import com.google.inject.Key;
import com.google.inject.spi.Dependency;
import com.google.inject.spi.ErrorDetail;
import java.util.Collection;
import java.util.Formatter;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;
/**
* Error reported by Guice when duplicate elements are found in a {@link Multibinder} that does not
* permit duplicates.
*/
final class DuplicateElementError extends InternalErrorDetail> {
private final Key> setKey;
private final ImmutableMultimap> elements;
DuplicateElementError(
Key> setKey, List> bindings, T[] values, List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy