Skip to content
Permalink
Browse files
Fixed 'MagicNumber' checkstyle error
  • Loading branch information
marcosperanza committed Jul 12, 2012
1 parent 00cb51d commit 305ff6994860ce125c3d6c4ec97d6f462721b01b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
@@ -75,8 +75,9 @@ public V getTail()
*/
@Override
public int hashCode()
{
return hash( 1, 31, head, tail );
{
final int prime = 31;
return hash( 1, prime, head, tail );
}

/**
@@ -80,8 +80,9 @@ private boolean evaluateMatch( P playerA, GameResult gameResult, P playerB, int
break;

case DRAW:
sA = 0.5;
sB = 0.5;
final double number = 0.5;
sA = number;
sB = number;
break;

default: // should not happen
@@ -226,7 +226,8 @@ public boolean containsEdge( E e )
@Override
public int hashCode()
{
return hash( 1, 31, edges, source, target, vertices );
final int prime = 31;
return hash( 1, prime, edges, source, target, vertices );
}

/**

0 comments on commit 305ff69

Please sign in to comment.