aboutsummaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorlimpbizkit <limpbizkit@d779f126-a31b-0410-b53b-1d3aecad763e>2008-10-17 17:25:00 +0000
committerlimpbizkit <limpbizkit@d779f126-a31b-0410-b53b-1d3aecad763e>2008-10-17 17:25:00 +0000
commitd38d16d371b268a4c59285ef7476c7ec97cb852d (patch)
treecb6735946fe978ff2964a5fcb780d1c6e229850a /extensions
parent8f370d3f5d271f5e9fab52b1a1040a77ff002e57 (diff)
downloadguice-d38d16d371b268a4c59285ef7476c7ec97cb852d.tar.gz
Applied feedback from code reviews by Mike Ward and Giles Douglas.
http://code.google.com/p/google-guice/source/detail?r=633 git-svn-id: https://google-guice.googlecode.com/svn/trunk@642 d779f126-a31b-0410-b53b-1d3aecad763e
Diffstat (limited to 'extensions')
-rw-r--r--extensions/privatemodules/src/com/google/inject/privatemodules/PrivateModule.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/extensions/privatemodules/src/com/google/inject/privatemodules/PrivateModule.java b/extensions/privatemodules/src/com/google/inject/privatemodules/PrivateModule.java
index 27f73be8..a694eb96 100644
--- a/extensions/privatemodules/src/com/google/inject/privatemodules/PrivateModule.java
+++ b/extensions/privatemodules/src/com/google/inject/privatemodules/PrivateModule.java
@@ -201,7 +201,7 @@ public abstract class PrivateModule implements Module {
/** Makes the binding for {@code key} available to other modules and the injector. */
protected final <T> void expose(Key<T> key) {
- checkState(exposes != null, "Cannot expose %s, private module is not ready");
+ checkState(exposes != null, "Cannot expose %s, private module is not ready", key);
exposes.add(new Expose<T>(sourceProvider.get(), readyProvider, key));
}
@@ -211,7 +211,7 @@ public abstract class PrivateModule implements Module {
* annotation.
*/
protected final <T> ExposedKeyBuilder expose(Class<T> type) {
- checkState(exposes != null, "Cannot expose %s, private module is not ready");
+ checkState(exposes != null, "Cannot expose %s, private module is not ready", type);
Expose<T> expose = new Expose<T>(sourceProvider.get(), readyProvider, Key.get(type));
exposes.add(expose);
return expose;
@@ -223,7 +223,7 @@ public abstract class PrivateModule implements Module {
* annotation.
*/
protected final <T> ExposedKeyBuilder expose(TypeLiteral<T> type) {
- checkState(exposes != null, "Cannot expose %s, private module is not ready");
+ checkState(exposes != null, "Cannot expose %s, private module is not ready", type);
Expose<T> expose = new Expose<T>(sourceProvider.get(), readyProvider, Key.get(type));
exposes.add(expose);
return expose;