diff options
Diffstat (limited to 'guava/src/com/google/common/collect/ImmutableClassToInstanceMap.java')
-rw-r--r-- | guava/src/com/google/common/collect/ImmutableClassToInstanceMap.java | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/guava/src/com/google/common/collect/ImmutableClassToInstanceMap.java b/guava/src/com/google/common/collect/ImmutableClassToInstanceMap.java index 50f93c3..1c596e2 100644 --- a/guava/src/com/google/common/collect/ImmutableClassToInstanceMap.java +++ b/guava/src/com/google/common/collect/ImmutableClassToInstanceMap.java @@ -16,14 +16,10 @@ package com.google.common.collect; -import static com.google.common.base.Preconditions.checkNotNull; - import com.google.common.primitives.Primitives; import java.util.Map; -import javax.annotation.Nullable; - /** * A class-to-instance map backed by an {@link ImmutableMap}. See also {@link * MutableClassToInstanceMap}. @@ -142,18 +138,15 @@ public final class ImmutableClassToInstanceMap<B> extends @Override @SuppressWarnings("unchecked") // value could not get in if not a T - @Nullable public <T extends B> T getInstance(Class<T> type) { - return (T) delegate.get(checkNotNull(type)); + return (T) delegate.get(type); } /** * Guaranteed to throw an exception and leave the map unmodified. * * @throws UnsupportedOperationException always - * @deprecated Unsupported operation. */ - @Deprecated @Override public <T extends B> T putInstance(Class<T> type, T value) { throw new UnsupportedOperationException(); |