Core Java
-
Mock final class
Foreword If you already read some other blog post about unusual mocking, you can skip prelude via this link. I…
Read More » -
Java: Handling a RuntimeException in a Runnable
At the end of last year I was playing around with running scheduled tasks to monitor a Neo4j cluster and…
Read More » -
Building and Running Java 8 Support
The Eclipse support for Java 8 is not yet available for download. If you want to play with it, you’ve…
Read More » -
Java 8 Friday Goodies: Lambdas and Sorting
At Data Geekery, we love Java. And as we’re really into jOOQ’s fluent API and query DSL, we’re absolutely thrilled…
Read More » -
ObjectStreamClass: Peeking at a Java Object’s Serialization
ObjectStreamClass can be a useful class to analyze the serialization characteristics of a serialized class loaded in the JVM. This…
Read More » -
5 tools for Java developers
A way to improve the Java code we write is to work with the best tools. So, let’s check out…
Read More » -
Access private fields in unit tests
First of all, let me say out louder, you need to design your code to be testable, so you test…
Read More » -
Hardware Transactional Memory in Java, or why synchronized will be cool again
Overview Hardware Transaction Memory has the potential to allow multiple threads to speculatively access the same data structure at the…
Read More » -
Java: Work out the serialVersionUID of a class
Earlier in the week I wanted to work out the serialVersionUID of a serializable class so that I could override…
Read More »