Type: New Feature
Affects Version/s: None
Fix Version/s: Core 2.1.0
I see a lot of this:
in the REST module. (Forget about the bad practice of using try/catch for control flow; already opened an issue and am cleaning that up https://issues.openmrs.org/browse/RESTWS-609)
see for example
There are at least 5 places in the REST module where one needs to check if a requiredVersion is in an array of supportedVersions.
I therefore propose to add method
which does exactly that and is tested.