Skip to content

Commit 2f68c39

Browse files
committed
Use SubMonintor in TextChange
done() call not necessary here and convert can also handle null. See https://www.eclipse.org/articles/Article-Progress-Monitors/article.html
1 parent 98ff2aa commit 2f68c39

File tree

1 file changed

+0
-2
lines changed
  • bundles/org.eclipse.ltk.core.refactoring/src/org/eclipse/ltk/core/refactoring

1 file changed

+0
-2
lines changed

bundles/org.eclipse.ltk.core.refactoring/src/org/eclipse/ltk/core/refactoring/TextChange.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,6 @@ public Change perform(IProgressMonitor pm) throws CoreException {
247247
throw Changes.asCoreException(e);
248248
} finally {
249249
releaseDocument(document, subMon.newChild(1));
250-
subMon.done();
251250
}
252251
}
253252

@@ -311,7 +310,6 @@ public IDocument getCurrentDocument(IProgressMonitor pm) throws CoreException {
311310
} finally {
312311
releaseDocument(result, subMon.newChild(1));
313312
}
314-
subMon.done();
315313
return result;
316314
}
317315

0 commit comments

Comments
 (0)