Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/resolver/StateImpl.java')
-rw-r--r--bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/resolver/StateImpl.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/resolver/StateImpl.java b/bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/resolver/StateImpl.java
index 231ec76a8..6f7b4d2e5 100644
--- a/bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/resolver/StateImpl.java
+++ b/bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/resolver/StateImpl.java
@@ -421,7 +421,6 @@ public abstract class StateImpl implements State {
throw new IllegalStateException("no resolver set"); //$NON-NLS-1$
if (resolving == true)
throw new IllegalStateException("An attempt to start a nested resolve process has been detected."); //$NON-NLS-1$
- ResolverHook currentHook = null;
try {
resolving = true;
long start = 0;
@@ -474,7 +473,7 @@ public abstract class StateImpl implements State {
if (currentFactory != null) {
@SuppressWarnings("unchecked")
Collection<BundleRevision> triggerRevisions = Collections.unmodifiableCollection(triggers == null ? Collections.EMPTY_LIST : Arrays.asList((BundleRevision[]) triggers));
- currentHook = begin(triggerRevisions);
+ begin(triggerRevisions);
}
ResolverHookException error = null;
try {
@@ -499,8 +498,6 @@ public abstract class StateImpl implements State {
updateTimeStamp();
return savedChanges;
} finally {
- if (currentHook != null)
- currentHook.end();
resolving = false;
}
}

Back to the top