-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Standardize TCK formatting #316
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.
Looks good, I opened an issue for refactoring CronTrigger
* @param min minute | ||
* @param h hour | ||
* @param d day | ||
* @param l ?? |
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.
int d = Arrays.binarySearch(daysOfMonth, dayOfMonth);
int l = Arrays.binarySearch(daysOfMonth, dayOfMonth - lastDayOfMonth - 1);
I did some digging, and from what I see, d
isn't (exactly) the day, it's the index of the day in the daysOfMonth array. And l
is the offset from the last day of the month in the daysOfMonth array.
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.
I opened #318 to address these, so they don't need to be addressed here.
* @param d day | ||
* @param l ?? | ||
* @param dayOfMonth day of month | ||
* @param m minute |
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.
int m = Arrays.binarySearch(months, time.getMonthValue());
like above, m is the index of the month in the months array. None of these need to be updated now, but we may want to open an issue to refactor some of this for maintainability
Run the maven-checkstyle-plugin on the TCK and ensure formatting between contributors.
The current TCK which was mostly copied from the Platform-TCK has a mix of tabs and spaces, along with a bunch of other non-standard formatting issues.
Also had to fix some bugs in the signature testing logic, which should all be resolved by the last two commits.