forked from apache/pulsar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cleanup][pulsar-functions] Remove compiler warnings for return from …
…finally (apache#16451) ### Motivation To reduce warnings generated during compilation by cleaning up the code. ``` [WARNING] /Users/ewest/git/pulsar/pulsar-functions/worker/src/main/java/org/apache/pulsar/functions/worker/SchedulerManager.java:[334,9] finally clause cannot complete normally [WARNING] /Users/ewest/git/pulsar/pulsar-functions/worker/src/main/java/org/apache/pulsar/functions/worker/SchedulerManager.java:[642,9] finally clause cannot complete normally ``` ### Modifications * Moved `return` from `finally` blocks * Simplified code through the use of simpler, equivalent language constructs * Made some constant fields `final` Co-authored-by: Matteo Merli <[email protected]>
- Loading branch information
Showing
1 changed file
with
43 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters