Revision: 1106
Author: crazyboblee
Date: Tue Sep 29 11:00:49 2009
Log: Added comment.
http://code.google.com/p/google-guice/source/detail?r=1106
Modified:
/trunk/src/com/google/inject/spi/InjectionPoint.java
=======================================
--- /trunk/src/com/google/inject/spi/InjectionPoint.java Tue Sep 29
10:29:05 2009
+++ /trunk/src/com/google/inject/spi/InjectionPoint.java Tue Sep 29
11:00:49 2009
@@ -604,6 +604,12 @@
injectableMembers.add(injectableMethod);
} else {
if (overrideIndex == null) {
+ /*
+ * Creating the override index lazily means that the first
type in the hierarchy
+ * with injectable methods (not necessarily the top most
top) will be treated as
+ * the TOP position and will enjoy the same optimizations
(no checks for overridden
+ * methods, etc.).
+ */
overrideIndex = new OverrideIndex(injectableMembers);
}
overrideIndex.add(injectableMethod);
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---