Skip to content

Commit

Permalink
made key field final
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernhard Wagner committed Feb 7, 2012
1 parent 64bbd9a commit c91b9ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/org/arabidopsis/interval/RbNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


public class RbNode {
public int key;
public final int key;
public boolean color;
public RbNode parent;
public RbNode left;
Expand All @@ -13,6 +13,7 @@ public class RbNode {
public static boolean RED = true;

private RbNode() {
key = -1;
// Default constructor is only meant to be used for the
// construction of the NIL node.
}
Expand Down

0 comments on commit c91b9ff

Please sign in to comment.