Remove redundant isCanceled checks in SaveablesList and SaveableHelper#3578
Conversation
This addresses the proposal by ptziegler in PR eclipse-platform#3542 to split the removal of isCanceled checks.
Test Results 3 018 files ±0 3 018 suites ±0 2h 21m 57s ⏱️ -58s For more details on these failures, see this check. Results for commit 7d16b28. ± Comparison against base commit e15e9bf. |
ptziegler
left a comment
There was a problem hiding this comment.
The call of newChild() has been changed to split() as part of 'Bug 479879 - Adopt SubMonitor.split in platform UI'. For those classes specifically in c7cb5c4.
These methods throw an OperationCanceledException if the monitor has been canceled by the user. If there are any side-effects from throwing an exception, they would've become apparent by now.
I would even go so far and say that simply breaking out of the loop is an anti-pattern, because the program could now continue in a partially saved state, rather than properly handling the cancellation.
|
The test case has been sporadically failing and is tracked via #3581. It should be irrelevant to this change. |
|
Thanks @ptziegler |
This addresses the proposal by ptziegler in PR #3542 to split the removal of isCanceled checks.