Skip to content

Commit

Permalink
Inline useless single use local variable
Browse files Browse the repository at this point in the history
Whitespace
  • Loading branch information
garydgregory committed May 12, 2024
1 parent 1384688 commit 765f381
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public class TransformingComparator<I, O> implements Comparator<I>, Serializable

/** The decorated comparator. */
private final Comparator<O> decorated;

/** The transformer being used. */
private final Transformer<? super I, ? extends O> transformer;

Expand Down Expand Up @@ -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());
}

}
Expand Down

0 comments on commit 765f381

Please sign in to comment.