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

fix PlantUmlArchCondition.Configuration not accessible warning #891

Merged

Conversation

codecholeric
Copy link
Collaborator

On the contrary to the Java compiler the Kotlin compiler emits a warning that PlantUmlArchCondition.Configuration as the parameter type of PlantUmlArchCondition.adhereToPlantUmlDiagram() is not accessible (because it is package private). Since in the end the pattern used here is a little inconsistent to other places anyway we change this now to be a publicly accessible class.

This will be a breaking change, because it relocates the factory methods from PlantUmlArchCondition.Configurations to PlantUmlArchCondition.Configuration.

Resolves: #888

@codecholeric codecholeric added this to the 1.0.0 milestone Jun 18, 2022
On the contrary to the Java compiler the Kotlin compiler emits a warning that `PlantUmlArchCondition.Configuration` as the parameter type of `PlantUmlArchCondition.adhereToPlantUmlDiagram()` is not accessible (because it is package private). Since in the end the pattern used here is a little inconsistent to other places anyway we change this now to be a publicly accessible class. The current construct was a little strange, either it needs to be a generic interface, freely extensible, but then there does not seem to be a reason to hide it from the user. Or we want to limit the possibilities, but then we might as well use a concrete class. As an additional benefit (since we will break the API anyway with release 1.0) we can now define the factory methods directly on the parameter type removing one indirection.

Signed-off-by: Peter Gafert <peter.gafert@tngtech.com>
@codecholeric codecholeric force-pushed the make-PlantUmlArchCondition.Configuration-accessible branch from 2ab6e6b to e1680a5 Compare June 19, 2022 12:03
@codecholeric codecholeric merged commit 77a8074 into main Jun 19, 2022
@codecholeric codecholeric deleted the make-PlantUmlArchCondition.Configuration-accessible branch June 19, 2022 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make PlantUmlArchCondition.Configuration public
1 participant