Core Java
-
Easy Unit and Integration Code Coverage
This example shows how to generate coverage for unit and integration tests using Maven and Sonar. It uses very simple…
Read More » -
Java pitfalls: Field access in inner classes
This is not a “pitfall” per se, but an implementation detail worth knowing. Let’s say I have a inner class…
Read More » -
Java static methods can be a code smell
Definition of code smell (from Wikipedia): “any symptom in the source code of a program that possibly indicates a deeper…
Read More » -
GC overhead limit exceeded – Java Heap analysis
This post is the continuation of our original GC overhead limit exceeded problem patterns post. Proper Java Heap analysis is…
Read More » -
Secure Password Storage – Don’ts, dos and a Java example
The importance of storing passwords securely As software developers, one of our most important responsibilities is the protection of our…
Read More » -
Java High CPU troubleshooting guide – part 1
This article is part 1 of a series that will provide you with a comprehensive guide on how you can…
Read More » -
The depths of Java: API leak exposed through covariance
Java can be very tricky some times, especially in API design. Let’s have a look at a very interesting showcase.…
Read More » -
NetBeans Usability Tips
Java IDEs have come a long way since the days of JBuilder (though JBuilder seemed like a welcome advance at…
Read More » -
The Visitor Pattern Re-visited
The visitor pattern is one of the most overrated and yet underestimated patterns in object-oriented design. Overrated, because it is…
Read More »