-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/ls24003884/Evaluation blank value of DS field #603
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There’s a better way to reference the cause of the regression. Since we work with pull requests, you can simply include #<prnumber>
in your PR description. This will automatically create a link to the related pull request.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Since
checkNumberSyntax
does not access any instance properties ofDataStructValue
, it should be declared inside the companion object. - Make it private or internal (if you want test it).
- According to the comment, a ZONED number with at least one space at the end is not allowed if it contains a number. However, this suggests that if the value is
"abc"
and the type is ZONED, it would be accepted. Is this correct?
…o-ds' into feature/LS24003884/blank-value-to-ds
Done!
I tested this code on AS400:
Do you want an implementation of this case for this PR? |
In my opinion checkNumber for ZONED type should be accept only blank or only numbers without blank |
Description
This work resolves evaluation at runtime of a DS' field with only blank values.
Technical notes
This is a regression issue of
checkNumberSyntax
. To resolve this problem I put a checking if the value is completely blank. In this case passes and coerce to right value.Related to:
Checklist:
./gradlew ktlintCheck
)../gradlew check
).docs
directory.