diff options
author | Stuart McCulloch <mcculls@gmail.com> | 2015-03-23 16:34:09 +0000 |
---|---|---|
committer | Stuart McCulloch <mcculls@gmail.com> | 2015-03-23 16:34:09 +0000 |
commit | af6a1df6a2f9005e1cbb55f2c1deb92a1abc1924 (patch) | |
tree | 059ef8d4204c2458dcdfc87ee9e1236a46b4cc19 | |
parent | 1f9c76b9165e3a5b3c0e6faab810f191c05fd9f4 (diff) | |
download | guice-af6a1df6a2f9005e1cbb55f2c1deb92a1abc1924.tar.gz |
Move detailed javadoc description down to implementation class
-rw-r--r-- | core/src/com/google/inject/internal/InternalContext.java | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/core/src/com/google/inject/internal/InternalContext.java b/core/src/com/google/inject/internal/InternalContext.java index 834f26d5..99b2e518 100644 --- a/core/src/com/google/inject/internal/InternalContext.java +++ b/core/src/com/google/inject/internal/InternalContext.java @@ -40,13 +40,7 @@ final class InternalContext { /** Keeps track of the type that is currently being requested for injection. */ private Dependency<?> dependency; - /** - * Keeps track of the hierarchy of types needed during injection. - * - * <p>This is a pairwise combination of dependencies and sources, with dependencies or keys on - * even indices, and sources on odd indices. This structure is to avoid the memory overhead of - * DependencyAndSource objects, which can add to several tens of megabytes in large applications. - */ + /** Keeps track of the hierarchy of types needed during injection. */ private final DependencyStack state = new DependencyStack(); @SuppressWarnings("unchecked") @@ -104,6 +98,13 @@ final class InternalContext { return builder.build(); } + /** + * Keeps track of the hierarchy of types needed during injection. + * + * <p>This is a pairwise combination of dependencies and sources, with dependencies or keys on + * even indices, and sources on odd indices. This structure is to avoid the memory overhead of + * DependencyAndSource objects, which can add to several tens of megabytes in large applications. + */ private static final class DependencyStack { private Object[] elements = new Object[10]; private int size = 0; |