Using Java 7 equals

Less code is better.