Core Java
-

This is the Final Discussion!
Pun intended… Let’s discuss Java final. Recently, our popular blog post “10 Subtle Best Practices when Coding Java” had a…
Read More » -

Gradle Goodness: Adding Dependencies Only for Packaging to War
My colleague, Tom Wetjens, wrote a blog post Package-only dependencies in Maven. He showed a Maven solution when we want…
Read More » -

Getters/Setters. Evil. Period.
There is an old debate, started in 2003 by Allen Holub in this Why getter and setter methods are evil…
Read More » -

Autoboxing
Autoboxing is clear for all Java developers since Java 1.5 Well, I may be too optimistic. At least all developers…
Read More » -

Some more unit test tips
In my previous post I showed some tips on unit testing JavaBeans. In this blog entry I will give two…
Read More » -

Custom JSR 303 Bean Validation constraints for the JSR 310 New Date/Time API
With JSR 310 Java 8 finally brought us a decent date and time API. For those of you that are…
Read More » -

Using Gradle to Build & Apply AST Transformations
Recently, I wanted to both build and apply local ast transformations in a Gradle project. While I could find several…
Read More » -

JUnit Rules
Introduction In this post I would like to show an example of how to use JUnit Rule to make testing…
Read More » -

Runtime Class Loading to Support a Changing API
I maintain an IntelliJ plugin that improves the experience of writing Spock specifications. A challenge of this project is supporting…
Read More »


