Skip to content

Commit

Permalink
Use SubMonintor in TextChange
Browse files Browse the repository at this point in the history
done() call not necessary here and convert can also handle null.

See https://www.eclipse.org/articles/Article-Progress-Monitors/article.html
  • Loading branch information
vogella committed Dec 4, 2024
1 parent 98ff2aa commit 2f68c39
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@ public Change perform(IProgressMonitor pm) throws CoreException {
throw Changes.asCoreException(e);
} finally {
releaseDocument(document, subMon.newChild(1));
subMon.done();
}
}

Expand Down Expand Up @@ -311,7 +310,6 @@ public IDocument getCurrentDocument(IProgressMonitor pm) throws CoreException {
} finally {
releaseDocument(result, subMon.newChild(1));
}
subMon.done();
return result;
}

Expand Down

0 comments on commit 2f68c39

Please sign in to comment.