Permalink
Browse files

Remove unused field

  • Loading branch information...
1 parent 8cbbf83 commit 46115a392b1b2bc3d4af26f521466b1c0a2164a7 @dmlloyd dmlloyd committed Mar 5, 2012
@@ -152,11 +152,6 @@ public Void run() {
*/
private final ModuleLoader moduleLoader;
/**
- * This reference exists solely to prevent the {@code FutureModule} from getting GC'd prematurely.
- */
- @SuppressWarnings({ "unused" })
- private final Object myKey;
- /**
* The fallback local loader, if any is defined.
*/
private final LocalLoader fallbackLoader;
@@ -185,11 +180,9 @@ public Void run() {
*
* @param spec the module specification
* @param moduleLoader the module loader
- * @param myKey the key to keep a strong reference to
*/
- Module(final ConcreteModuleSpec spec, final ModuleLoader moduleLoader, final Object myKey) {
+ Module(final ConcreteModuleSpec spec, final ModuleLoader moduleLoader) {
this.moduleLoader = moduleLoader;
- this.myKey = myKey;
// Initialize state from the spec.
identifier = spec.getModuleIdentifier();
@@ -379,7 +379,7 @@ private Module defineModule(final ConcreteModuleSpec moduleSpec, final FutureMod
final ModuleLogger log = Module.log;
final ModuleIdentifier moduleIdentifier = moduleSpec.getModuleIdentifier();
- final Module module = new Module(moduleSpec, this, futureModule);
+ final Module module = new Module(moduleSpec, this);
module.getClassLoaderPrivate().recalculate();
module.setDependencies(Arrays.asList(moduleSpec.getDependencies()));
log.moduleDefined(moduleIdentifier, this);

0 comments on commit 46115a3

Please sign in to comment.