Author: limpbizkit
Date: Tue Oct 21 09:25:35 2008
New Revision: 647

Modified:
    trunk/src/com/google/inject/internal/ProviderMethod.java

Log:
Restoring a missing .withSource() (as discovered by Ben Yu)

Modified: trunk/src/com/google/inject/internal/ProviderMethod.java
==============================================================================
--- trunk/src/com/google/inject/internal/ProviderMethod.java    (original)
+++ trunk/src/com/google/inject/internal/ProviderMethod.java    Tue Oct 21  
09:25:35 2008
@@ -62,9 +62,9 @@

    public void configure(Binder binder) {
      if (scopeAnnotation != null) {
-      binder.bind(key).toProvider(this).in(scopeAnnotation);
+       
binder.withSource(method).bind(key).toProvider(this).in(scopeAnnotation);
      } else {
-      binder.bind(key).toProvider(this);
+      binder.withSource(method).bind(key).toProvider(this);
      }
    }


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to