This content originally appeared on DEV Community and was authored by Ivan Juren
Learning by doing is the most durable kind of learning.
I’ve put together a small repo with ~20 classes, organised into easy, medium, and hard levels to introduce you to JSpecify.
So after reading the JSpecify docs, try to annotate given classes, specify the nulls, and get some real hands-on JSpecify experience.
I believe it’s really important to understand the “type” semantics shift — what @Nullable actually means. The generics really piqued my interest.
If you want a sneak peek at the kind of reasoning you’ll be doing, check out my other short read where I question one of my favourite patterns for dealing with nulls: Rethinking Optional<?>
More concise and safer.
🔗 Repo: github.com/ivan-juren/jspecify-exercise
Can you see yourself using JSpecify in your projects?
Would love to hear what you think 👇
This content originally appeared on DEV Community and was authored by Ivan Juren
Ivan Juren | Sciencx (2025-10-23T08:35:29+00:00) Hey, I did a thing, you might like it! Java JSpecify Exercise. Retrieved from https://www.scien.cx/2025/10/23/hey-i-did-a-thing-you-might-like-it-java-jspecify-exercise/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.

