Committed by
Gerrit Code Review
Make field defined as final if possible
Change-Id: I74acbf5cde94b9c4287d9e907e8511981b436543
Showing
1 changed file
with
2 additions
and
1 deletions
... | @@ -44,7 +44,7 @@ public class IntentData { //FIXME need to make this "immutable" | ... | @@ -44,7 +44,7 @@ public class IntentData { //FIXME need to make this "immutable" |
44 | 44 | ||
45 | private final IntentState request; //TODO perhaps we want a full fledged object for requests | 45 | private final IntentState request; //TODO perhaps we want a full fledged object for requests |
46 | private IntentState state; | 46 | private IntentState state; |
47 | - private Timestamp version; | 47 | + private final Timestamp version; |
48 | private NodeId origin; | 48 | private NodeId origin; |
49 | private int errorCount; | 49 | private int errorCount; |
50 | 50 | ||
... | @@ -121,6 +121,7 @@ public class IntentData { //FIXME need to make this "immutable" | ... | @@ -121,6 +121,7 @@ public class IntentData { //FIXME need to make this "immutable" |
121 | protected IntentData() { | 121 | protected IntentData() { |
122 | intent = null; | 122 | intent = null; |
123 | request = null; | 123 | request = null; |
124 | + version = null; | ||
124 | } | 125 | } |
125 | 126 | ||
126 | /** | 127 | /** | ... | ... |
-
Please register or login to post a comment