diff --git a/src/main/java/org/apache/commons/collections4/comparators/TransformingComparator.java b/src/main/java/org/apache/commons/collections4/comparators/TransformingComparator.java index c08fb62eac..fa873bb94d 100644 --- a/src/main/java/org/apache/commons/collections4/comparators/TransformingComparator.java +++ b/src/main/java/org/apache/commons/collections4/comparators/TransformingComparator.java @@ -46,6 +46,7 @@ public class TransformingComparator implements Comparator, Serializable /** The decorated comparator. */ private final Comparator decorated; + /** The transformer being used. */ private final Transformer transformer; @@ -122,9 +123,8 @@ public boolean equals(final Object object) { @Override public int hashCode() { int total = 17; - total = total*37 + (decorated == null ? 0 : decorated.hashCode()); - total = total*37 + (transformer == null ? 0 : transformer.hashCode()); - return total; + total = total * 37 + (decorated == null ? 0 : decorated.hashCode()); + return total * 37 + (transformer == null ? 0 : transformer.hashCode()); } }