Skip to content
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

WFLY-15963 Combine ORDINALS and ORDINAL_TO_WEEK_NUMBER_MAPPING fields… #15146

Merged
merged 1 commit into from Feb 10, 2022

Conversation

chengfang
Copy link
Contributor

@chengfang chengfang commented Jan 25, 2022

… in ejb3 DayOfMonth class

cleanup (improve the use of toLowerCase and equalsIgnoreCase; remove unnecessary null check)

https://issues.redhat.com/browse/WFLY-15963

some notes about changes of code cleanup:

  • the regex Pattern "\\s+" is moved to the class-level to avoid compiling the pattern for every invocation of the method.
  • isDayOfWeekBased method is renamed to splitDayOfWeekBased and the return type is changed from boolean to String[]. This method splits the input string to do the checking, and the caller of this method also needs to split the data. To avoid splitting it twice, this method is changed to return the split result: a non-null value is equivalent to previous true return value; a null is equivalent to the previous false return value.

@github-actions github-actions bot added the deps-ok Dependencies have been checked, and there are no significant changes label Jan 25, 2022
… in ejb3 DayOfMonth class

cleanup (improve the use of toLowerCase and equalsIgnoreCase; remove unnecessary null check)
@chengfang chengfang force-pushed the ordinal-week-number-WFLY-15963 branch from a0f44cc to daef72d Compare January 26, 2022 23:19
@chengfang
Copy link
Contributor Author

@tadamski please review.

@chengfang
Copy link
Contributor Author

This PR follows on #15125, but both PR are indepent of each other. There will be conflict once one is merged, and need manual resolution.

Copy link
Contributor

@tadamski tadamski left a comment

Choose a reason for hiding this comment

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

LGTM

@pferraro pferraro merged commit 6ef932e into wildfly:main Feb 10, 2022
@chengfang chengfang deleted the ordinal-week-number-WFLY-15963 branch March 21, 2022 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deps-ok Dependencies have been checked, and there are no significant changes
Projects
None yet
3 participants