Tag ‘IDE’

Consequences when using Mutable Fields in hashCode()

We start our new series with an informative HashSet puzzler. It’s about a bug that gave us quite a headache since its root cause was hard to identify. This subtle bug has without doubt crept into many code bases, so a detailed discussion should interest every Java coder. I will also discuss code inspection tools that detect this violation (sadly, only few). And by the way, what we learned about HashSet also makes a good topic in our job interviews.

Read the rest of this entry »  |   Share

Effective Coding with IntelliJ IDEA

At our recent Java User Group Munich (JUGM) meeting, Vaclav Pech from JetBrains has demonstrated his company’s powerful Java/Groovy/Web IDE IntelliJ IDEA 9 and shared several not-so-obvious gems with us.

Read the rest of this entry »  |   Share