Refactored the code to use instanceof pattern matching, replacing the older style of instanceof checks and casts. This change improves code readability and maintainability by reducing boilerplate code.
Changes
- Applied
instanceofpattern matching in relevant sections of the code where it was previously missing. - Removed unnecessary explicit casting.
Comment From: pivotal-cla
@abc5259 Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.
Comment From: pivotal-cla
@abc5259 Thank you for signing the Contributor License Agreement!
Comment From: philwebb
Thanks @abc5259