Skip to content

Fix parameter return types#10144

Merged
nielsm5 merged 1 commit intomasterfrom
task/minor-improvements-and-fix-param-return-types
Dec 15, 2025
Merged

Fix parameter return types#10144
nielsm5 merged 1 commit intomasterfrom
task/minor-improvements-and-fix-param-return-types

Conversation

@nielsm5
Copy link
Member

@nielsm5 nielsm5 commented Dec 13, 2025

While working on #10137 I found a few bugs which I fixed in #10143.
These are the fixes based on 9.3 + some extra tests I created in #10137.

@nielsm5 nielsm5 force-pushed the task/minor-improvements-and-fix-param-return-types branch 2 times, most recently from a095115 to 4edce8b Compare December 13, 2025 10:56
@nielsm5 nielsm5 force-pushed the task/minor-improvements-and-fix-param-return-types branch from 4edce8b to 51a3ae2 Compare December 13, 2025 11:08
@nielsm5 nielsm5 marked this pull request as ready for review December 13, 2025 11:53
@sonarqubecloud
Copy link

@nielsm5 nielsm5 linked an issue Dec 13, 2025 that may be closed by this pull request
} else if (obj instanceof String string) {
return string;
} else if (obj instanceof Number) {
} else if (obj instanceof Number || obj instanceof Boolean) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps:

Suggested change
} else if (obj instanceof Number || obj instanceof Boolean) {
} else if (obj instanceof Number || obj instanceof Boolean || obj instanceof Date || obj instanceof TemporalAccessor) {

?

(Needs imports added too, probably, so cannot be applied directly)

if (value instanceof String string) {
parameter.setValue(string);
parameter.setPattern(pattern);
((AbstractParameter)parameter).setPattern(pattern);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Zit de method setPattern(...) niet in de interface IParameter?
En moet die niet gewoon daarin worden toegevoegd, ipv deze rare cast hier te doen?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ja eigenlijk wel, maar dan zou ik denk ik net iets te veel conflicten krijgen.

@nielsm5 nielsm5 merged commit c089e82 into master Dec 15, 2025
32 checks passed
@nielsm5 nielsm5 deleted the task/minor-improvements-and-fix-param-return-types branch December 15, 2025 09:02
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.

Figure out parameter return types

3 participants