|
|
@@ -1,7 +1,6 @@
|
|
1
|
1
|
package se.citerus.dddsample.domain.model.location;
|
|
2
|
2
|
|
|
3
|
3
|
import org.apache.commons.lang.Validate;
|
|
4
|
|
-import org.apache.commons.lang.builder.HashCodeBuilder;
|
|
5
|
4
|
import se.citerus.dddsample.domain.model.ValueObject;
|
|
6
|
5
|
|
|
7
|
6
|
import java.util.regex.Pattern;
|
|
|
@@ -52,7 +51,7 @@ public final class UnLocode implements ValueObject<UnLocode> {
|
|
52
|
51
|
|
|
53
|
52
|
@Override
|
|
54
|
53
|
public int hashCode() {
|
|
55
|
|
- return new HashCodeBuilder().append(unlocode).toHashCode();
|
|
|
54
|
+ return unlocode.hashCode();
|
|
56
|
55
|
}
|
|
57
|
56
|
|
|
58
|
57
|
@Override
|