Skip to content
Browse files

Replace Integer.longValue with Integer.intValue as we compare the res…

…ult against an int.
  • Loading branch information...
1 parent 43d4c5e commit e15023c0c5db29746e422852cb6cdbef2f5eb6d0 @ijuma ijuma committed Apr 14, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/java/voldemort/cluster/Cluster.java
View
2 src/java/voldemort/cluster/Cluster.java
@@ -66,7 +66,7 @@ private int getNumberOfTags(List<Node> nodes) {
tags.addAll(node.getPartitionIds());
Collections.sort(tags);
for(int i = 0; i < numberOfTags; i++) {
- if(tags.get(i).longValue() != i)
+ if(tags.get(i).intValue() != i)
throw new IllegalArgumentException("Invalid tag assignment.");
}
return tags.size();

0 comments on commit e15023c

Please sign in to comment.
Something went wrong with that request. Please try again.