Inline useless single use local variable

Whitespace
This commit is contained in:
Gary Gregory 2024-05-12 09:06:37 -04:00
parent 138468805f
commit 765f381bb1
1 changed files with 3 additions and 3 deletions

View File

@ -46,6 +46,7 @@ public class TransformingComparator<I, O> implements Comparator<I>, Serializable
/** The decorated comparator. */ /** The decorated comparator. */
private final Comparator<O> decorated; private final Comparator<O> decorated;
/** The transformer being used. */ /** The transformer being used. */
private final Transformer<? super I, ? extends O> transformer; private final Transformer<? super I, ? extends O> transformer;
@ -122,9 +123,8 @@ public class TransformingComparator<I, O> implements Comparator<I>, Serializable
@Override @Override
public int hashCode() { public int hashCode() {
int total = 17; int total = 17;
total = total*37 + (decorated == null ? 0 : decorated.hashCode()); total = total * 37 + (decorated == null ? 0 : decorated.hashCode());
total = total*37 + (transformer == null ? 0 : transformer.hashCode()); return total * 37 + (transformer == null ? 0 : transformer.hashCode());
return total;
} }
} }