consolidate code: parseMethods + ParseResources #123
Labels
priority: p3
Desirable enhancement or fix. May not be included in next release.
type: cleanup
An internal cleanup or hygiene concern.
parseResources
andparseMethods
appear to have essentially identical code that only differs in what is returned. For clarity and to reduce duplication, consider combining the two.One idea is to pass in a lambda to a common function that can be used to call
resources.put
ormethods.addAll
; the latter can be the default if no lambda is provided, since it is the recursive case.The text was updated successfully, but these errors were encountered: