Revision: 1356
Author: [email protected]
Date: Tue Nov 2 14:22:49 2010
Log: build a list, not a set -- so that we don't call hashCode or equals on
any bindings.
http://code.google.com/p/google-guice/source/detail?r=1356
Modified:
/trunk/core/src/com/google/inject/internal/InternalInjectorCreator.java
=======================================
--- /trunk/core/src/com/google/inject/internal/InternalInjectorCreator.java
Sat Jul 3 08:51:31 2010
+++ /trunk/core/src/com/google/inject/internal/InternalInjectorCreator.java
Tue Nov 2 14:22:49 2010
@@ -25,6 +25,7 @@
import com.google.inject.Scope;
import com.google.inject.Stage;
import com.google.inject.TypeLiteral;
+import com.google.inject.internal.util.ImmutableList;
import com.google.inject.internal.util.ImmutableSet;
import com.google.inject.internal.util.Iterables;
import com.google.inject.internal.util.Stopwatch;
@@ -201,7 +202,7 @@
*/
void loadEagerSingletons(InjectorImpl injector, Stage stage, final
Errors errors) {
@SuppressWarnings("unchecked") // casting Collection<Binding> to
Collection<BindingImpl> is safe
- Set<BindingImpl<?>> candidateBindings =
ImmutableSet.copyOf(Iterables.concat(
+ Iterable<BindingImpl<?>> candidateBindings =
ImmutableList.copyOf(Iterables.concat(
(Collection)
injector.state.getExplicitBindingsThisLevel().values(),
injector.jitBindings.values()));
for (final BindingImpl<?> binding : candidateBindings) {
--
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.