-
Notifications
You must be signed in to change notification settings - Fork 18
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
Project Wide Static Analysis Annotations #235
Conversation
…n from annotations
…ty description package
…uration data package
Seems great! I'll have to get used to the Heads up btw, I'm planning this in for 1.4.0 as I should release 1.3.0 very soon and I'll have to merge in another branch to master for that release still. I hope that won't cause too many conflicts (it's mainly a smaller refactoring in the YAML file resource) |
…ion, migration, and base package
Yeah, and especially considering that only marks the array object itself as not null, if you want to say both the object is not null AND the array should only contains non null values it's What a beauty. 😭 |
Thanks for doing this! I'm clicking through the files and it looks great. I have two questions
|
Judging by their consistent unwillingness, probably not:
This was actually a mistake, none of the annotations have a runtime retention policy anyway. Setting the dependency to provided is perfectly fine. (for reference though, shading the annotations adds ~26KB to the jar size) |
# Conflicts: # src/main/java/ch/jalu/configme/resource/MapNormalizer.java # src/main/java/ch/jalu/configme/resource/PropertyPathTraverser.java # src/main/java/ch/jalu/configme/resource/YamlFileReader.java # src/main/java/ch/jalu/configme/resource/YamlFileResource.java # src/main/java/ch/jalu/configme/resource/YamlFileResourceOptions.java
Thanks for addressing everything! Taking this over now, and will hopefully get used to the new annotations concept 😄✨ |
This PR adds JetBrains annotations throughout the entire project, including:
@NotNull
@Nullable
@Contract
This addresses a concern originally raised by me here:
#133 (comment)
And later similarly referenced here:
#196
( WIP please don't flame me ❤️ )