Skip to content

enhance CompositeArchRule.of #384

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

Merged
merged 1 commit into from
Jul 1, 2020
Merged

enhance CompositeArchRule.of #384

merged 1 commit into from
Jul 1, 2020

Conversation

sullis
Copy link
Contributor

@sullis sullis commented Jun 13, 2020

  • new method: of(Collection)

@sullis
Copy link
Contributor Author

sullis commented Jun 15, 2020

WDYT? @codecholeric

@codecholeric
Copy link
Collaborator

Thanks a lot for the PR! 😃 The only thing I'm wondering is: Wouldn't a single method that takes an Iterable<ArchRule> be sufficient? It would also swallow Collection<ArchRule> then. But I can't really imagine a scenario where one would only have an Iterator<ArchRule> 🤔 That's not a type you usually really use, is it?

@sullis
Copy link
Contributor Author

sullis commented Jun 20, 2020

Thanks a lot for the PR! 😃 The only thing I'm wondering is: Wouldn't a single method that takes an Iterable<ArchRule> be sufficient? It would also swallow Collection<ArchRule> then. But I can't really imagine a scenario where one would only have an Iterator<ArchRule> 🤔 That's not a type you usually really use, is it?

I removed of(Iterator). I plan to use of(Collection) is one my internal projects.

@sullis
Copy link
Contributor Author

sullis commented Jun 27, 2020

@codecholeric WDYT?

Signed-off-by: Sean C. Sullivan <[email protected]>
Signed-off-by: Peter Gafert <[email protected]>
Copy link
Collaborator

@codecholeric codecholeric left a comment

Choose a reason for hiding this comment

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

Cool, thanks a lot 😃 I made the method take an Iterable with a covariant type, cause I thought it's even more flexible then (and doesn't cause any harm for your use case 😉)

@codecholeric codecholeric merged commit 38f6748 into TNG:master Jul 1, 2020
@sullis
Copy link
Contributor Author

sullis commented Oct 15, 2020

@codecholeric are there any plans to release a new version of ArchUnit? (This PR was completed in July but there has not been any releases since May)

@sullis sullis deleted the CompositeArchRule-of-Iterator branch December 4, 2020 02:16
@sullis
Copy link
Contributor Author

sullis commented Dec 4, 2020

@codecholeric are there any plans to release a new version of ArchUnit? (This PR was completed in July 2020 but there have not been any releases since May 2020)

@codecholeric
Copy link
Collaborator

Yes, I know I'm super slow this time 😞 In short, yes, I'm waiting for a review on #484 and I want to implement the counter part of #428 to not have a difference between dependencies from self and to self. I actually planned to release this weekend, but didn't completely make it. Need to make sure to release quicker iterations in the future, this time the interval really is way too big 😞

codecholeric added a commit that referenced this pull request Feb 21, 2021
Adds new method `CompositeArchRule.of(Iterable)`
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