
Fix NullPointerException in Java With Helpful Messages
Read the helpful NullPointerException message the JVM prints, find which expression was null and remove the cause instead of adding null checks everywhere.
Everything you need to level up your coding skills.

Read the helpful NullPointerException message the JVM prints, find which expression was null and remove the cause instead of adding null checks everywhere.

Use OpenRewrite recipes with Maven to upgrade Java, Spring Boot and test libraries automatically, review the patch and chain recipes of your own.

Fix NumberFormatException from parseInt and parseDouble by handling whitespace, empty input, overflow and locale-specific separators before you parse.

Read the index and length in the exception, find the off-by-one or empty-input bug that caused it and fix it for arrays, lists and strings.

How JUnit creates a new test instance per method by default, when PER_CLASS changes it and what that means for shared state and parallel runs.

Read the maven-compiler-plugin failure to its real cause: a JRE instead of a JDK, a release the JDK lacks, annotation processing or a real compile error.

Fix java.lang.StackOverflowError by finding the missing base case or the hidden cycle, then convert deep recursion to a loop or raise the thread stack size.

Write property based tests with jqwik: generators, shrinking, custom arbitraries for domain objects, round trip properties and seeds.

Fix invalid target release and source option errors by setting maven.compiler.release, updating the compiler plugin and making Maven run on the right JDK.

Decode the Note about unchecked or unsafe operations, find the lines with Xlint, and fix raw types and casts instead of suppressing the warning.

Handle dates and time zones in Spring REST APIs: use Instant and ISO 8601, set Jackson and database zones, bind query dates and test across time zones.

Fix the Java cannot find symbol compile error by reading the symbol and location lines, then checking the spelling, import, scope and classpath in that order.
We send one email when a new post is published. No spam.