Skip to content

Commit 5fa6964

Browse files
committed
removed unneeded parens
#131
1 parent fdba1bd commit 5fa6964

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/org/cicirello/permutations/distance/ReversalDistance.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
* <p>We have not used this for N &gt; 10. Warning: time to construct distance measure increases factorially.</p>
4949
*
5050
* @author <a href=https://www.cicirello.org/ target=_top>Vincent A. Cicirello</a>, <a href=https://www.cicirello.org/ target=_top>https://www.cicirello.org/</a>
51-
* @version 4.2.2021
51+
* @version 5.13.2021
5252
*/
5353
public final class ReversalDistance implements NormalizedPermutationDistanceMeasurer {
5454

@@ -128,7 +128,7 @@ public int distance(Permutation p1, Permutation p2) {
128128
for (int i = 0; i < inv1.length; i++) {
129129
r2[i] = inv1[p2.get(i)];
130130
}
131-
return dist[(new Permutation(r2)).toInteger()];
131+
return dist[new Permutation(r2).toInteger()];
132132
}
133133

134134
/**

0 commit comments

Comments
 (0)