remove Deprecated indication on the constructor needed for serialization
Change-Id: I2fc390d1009f9d7e2e2b6f978fb05ad2424050c2
Showing
1 changed file
with
8 additions
and
10 deletions
... | @@ -38,6 +38,14 @@ public final class MastershipBasedTimestamp implements Timestamp { | ... | @@ -38,6 +38,14 @@ public final class MastershipBasedTimestamp implements Timestamp { |
38 | private final long sequenceNumber; | 38 | private final long sequenceNumber; |
39 | 39 | ||
40 | /** | 40 | /** |
41 | + * Default constructor for serialization. | ||
42 | + */ | ||
43 | + protected MastershipBasedTimestamp() { | ||
44 | + this.termNumber = -1; | ||
45 | + this.sequenceNumber = -1; | ||
46 | + } | ||
47 | + | ||
48 | + /** | ||
41 | * Default version tuple. | 49 | * Default version tuple. |
42 | * | 50 | * |
43 | * @param termNumber the mastership termNumber | 51 | * @param termNumber the mastership termNumber |
... | @@ -104,14 +112,4 @@ public final class MastershipBasedTimestamp implements Timestamp { | ... | @@ -104,14 +112,4 @@ public final class MastershipBasedTimestamp implements Timestamp { |
104 | return sequenceNumber; | 112 | return sequenceNumber; |
105 | } | 113 | } |
106 | 114 | ||
107 | - // Default constructor for serialization | ||
108 | - | ||
109 | - /** | ||
110 | - * @deprecated in Cardinal Release | ||
111 | - */ | ||
112 | - @Deprecated | ||
113 | - protected MastershipBasedTimestamp() { | ||
114 | - this.termNumber = -1; | ||
115 | - this.sequenceNumber = -1; | ||
116 | - } | ||
117 | } | 115 | } | ... | ... |
-
Please register or login to post a comment