Category: Java

Encapsulate!

Encapsulate! No developers were harmed in this article! The object names was changed to protect the developers involved.I often see objects implemented as value objects (such as POJOs) that should be fully fledge objects...

Read More

Test for equal is not always equals in Java

I ran into a bug at the customer, which reminded me that there are still confusion about how to compare objects and specially Strings in Java.You can use several methods to compare objects, == test references and .equals for...

Read More

maven-antrun-plugin and Windows

Had a “funny” problem today, created a multi-pom project in Netbeans (on Linux) and it worked fine until my colleague tried to build the project on his Windows machine (same Maven 2 version).Maven produced the...

Read More
Loading