Skip to content

fix: Remove Set.of() - #767

Merged
lionel-nj merged 1 commit into
masterfrom
remove-set-of
Feb 23, 2021
Merged

fix: Remove Set.of()#767
lionel-nj merged 1 commit into
masterfrom
remove-set-of

Conversation

@barbeau

@barbeau barbeau commented Feb 23, 2021

Copy link
Copy Markdown
Member

Summary:

The PRs for the switch to Java 8 (#759) and the changes to the rule for StopTooFarFromTripShape (#750) were open simultanouesly, so some Java 9 features snuck in as part of the changes to that rule.

Here's the build that failed on CI:
https://github.com/MobilityData/gtfs-validator/runs/1962540197

This PR removes the Java 9 feature (Set.of()) that caused the failure.

Expected behavior:

Only Java 8 compatible language features should be used.

  • Run the unit tests with gradle test to make sure you didn't break anything
  • Format the title like "feat: [new feature short description]". Title must follow the Conventional Commit Specification(https://www.conventionalcommits.org/en/v1.0.0/).
  • Linked all relevant issues
  • Include screenshot(s) showing how this pull request works and fixes the issue(s)

It's only available on Java 9, and we're using Java 8 now
@barbeau
barbeau requested a review from lionel-nj February 23, 2021 16:45

@lionel-nj lionel-nj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍🏾 Thanks @barbeau

@lionel-nj
lionel-nj merged commit db30866 into master Feb 23, 2021
@lionel-nj
lionel-nj deleted the remove-set-of branch February 23, 2021 17:17
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.

2 participants