Skip to content

Fix inconsistencies in value implementations#22

Open
RyanHealey wants to merge 3 commits intoLMAX-Exchange:masterfrom
RyanHealey:feature/simple-arg-repearting-arg-consistency
Open

Fix inconsistencies in value implementations#22
RyanHealey wants to merge 3 commits intoLMAX-Exchange:masterfrom
RyanHealey:feature/simple-arg-repearting-arg-consistency

Conversation

@RyanHealey
Copy link
Copy Markdown
Contributor

@RyanHealey RyanHealey commented Dec 28, 2022

There are several inconsistencies between the implementations of methods in DslParamsImpl and RepeatingArgValues

For example, when calling value() on a normal parameter that is a list, it will throw an exception. Whereas, in a repeating group it will give the first value. Additionally, within a repeating group, it does not through an error if the parameter does not exist.

Additionally, hasValue in DslParamsImpl did not throw if the param did not exist, instead it returned false, which is different to what is stated in the java doc in the API

@RyanHealey RyanHealey force-pushed the feature/simple-arg-repearting-arg-consistency branch 2 times, most recently from 865c86c to 27f04ef Compare January 13, 2023 13:55
@RyanHealey RyanHealey force-pushed the feature/simple-arg-repearting-arg-consistency branch from 058db57 to 200a45d Compare February 3, 2023 09:41
@RyanHealey RyanHealey force-pushed the feature/simple-arg-repearting-arg-consistency branch from 200a45d to 5937a8f Compare July 21, 2023 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant