I ran emma coverage and deleted some dead code. There's a few things that have insufficient test coverage that we need tests for...
git-svn-id: https://google-guice.googlecode.com/svn/trunk@494 d779f126-a31b-0410-b53b-1d3aecad763e
diff --git a/src/com/google/inject/BoundProviderFactory.java b/src/com/google/inject/BoundProviderFactory.java
index f39e8ae..3cbfc11 100644
--- a/src/com/google/inject/BoundProviderFactory.java
+++ b/src/com/google/inject/BoundProviderFactory.java
@@ -37,15 +37,6 @@
this.source = source;
}
- BoundProviderFactory(
- Key<? extends Provider<? extends T>> providerKey,
- InternalFactory<? extends Provider<? extends T>> providerFactory,
- Object source) {
- this.providerKey = providerKey;
- this.providerFactory = providerFactory;
- this.source = source;
- }
-
public void notify(final InjectorImpl injector) {
injector.withDefaultSource(source, new Runnable() {
public void run() {
@@ -58,10 +49,6 @@
});
}
- public String toString() {
- return providerKey.toString();
- }
-
public T get(InternalContext context, InjectionPoint<?> injectionPoint) {
Provider<? extends T> provider = providerFactory.get(context, injectionPoint);
try {
@@ -72,4 +59,8 @@
throw new ProvisionException(e, ErrorMessages.ERROR_IN_PROVIDER);
}
}
+
+ @Override public String toString() {
+ return providerKey.toString();
+ }
}