Committed by
Gerrit Code Review
Registered atomic versions of int, long and boolean to KryoNamespace.BASIC
Change-Id: Ib9d1e6fc95e25d1197fb28926be3384d6a863090
Showing
1 changed file
with
6 additions
and
0 deletions
| ... | @@ -187,12 +187,18 @@ import java.util.LinkedList; | ... | @@ -187,12 +187,18 @@ import java.util.LinkedList; |
| 187 | import java.util.Optional; | 187 | import java.util.Optional; |
| 188 | import java.util.concurrent.ConcurrentHashMap; | 188 | import java.util.concurrent.ConcurrentHashMap; |
| 189 | import java.util.concurrent.CopyOnWriteArraySet; | 189 | import java.util.concurrent.CopyOnWriteArraySet; |
| 190 | +import java.util.concurrent.atomic.AtomicBoolean; | ||
| 191 | +import java.util.concurrent.atomic.AtomicInteger; | ||
| 192 | +import java.util.concurrent.atomic.AtomicLong; | ||
| 190 | 193 | ||
| 191 | public final class KryoNamespaces { | 194 | public final class KryoNamespaces { |
| 192 | 195 | ||
| 193 | public static final KryoNamespace BASIC = KryoNamespace.newBuilder() | 196 | public static final KryoNamespace BASIC = KryoNamespace.newBuilder() |
| 194 | .nextId(KryoNamespace.FLOATING_ID) | 197 | .nextId(KryoNamespace.FLOATING_ID) |
| 195 | .register(byte[].class) | 198 | .register(byte[].class) |
| 199 | + .register(AtomicBoolean.class) | ||
| 200 | + .register(AtomicInteger.class) | ||
| 201 | + .register(AtomicLong.class) | ||
| 196 | .register(new ImmutableListSerializer(), | 202 | .register(new ImmutableListSerializer(), |
| 197 | ImmutableList.class, | 203 | ImmutableList.class, |
| 198 | ImmutableList.of(1).getClass(), | 204 | ImmutableList.of(1).getClass(), | ... | ... |
-
Please register or login to post a comment