Revision: 1309
Author: sberlin
Date: Thu Oct 21 21:13:25 2010
Log: issue 446 -- InternalContext.setDependency was returning the current,
not previous, dependency.
http://code.google.com/p/google-guice/source/detail?r=1309
Modified:
/trunk/core/src/com/google/inject/internal/InternalContext.java
=======================================
--- /trunk/core/src/com/google/inject/internal/InternalContext.java Sat
Jul 3 08:51:31 2010
+++ /trunk/core/src/com/google/inject/internal/InternalContext.java Thu Oct
21 21:13:25 2010
@@ -47,7 +47,7 @@
}
public Dependency setDependency(Dependency dependency) {
- Dependency previous = dependency;
+ Dependency previous = this.dependency;
this.dependency = dependency;
return previous;
}
--
You received this message because you are subscribed to the Google Groups
"google-guice-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-guice-dev?hl=en.