ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject [22/32] incubator-ignite git commit: # IGNITE-753 Fixed build.
Date Mon, 20 Apr 2015 02:10:02 GMT
# IGNITE-753 Fixed build.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/6a6ca1a8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/6a6ca1a8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/6a6ca1a8

Branch: refs/heads/ignite-737
Commit: 6a6ca1a89b0de2fca584c3a4478113516c486d1c
Parents: f2cc14c
Author: AKuznetsov <akuznetsov@gridgain.com>
Authored: Fri Apr 17 10:47:52 2015 +0700
Committer: AKuznetsov <akuznetsov@gridgain.com>
Committed: Fri Apr 17 10:47:52 2015 +0700

----------------------------------------------------------------------
 .../cache/CacheVersionedEntryImpl.java          | 29 +++++++++++++++++++-
 1 file changed, 28 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/6a6ca1a8/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheVersionedEntryImpl.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheVersionedEntryImpl.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheVersionedEntryImpl.java
index 1b2fa50..59394f5 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheVersionedEntryImpl.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheVersionedEntryImpl.java
@@ -19,12 +19,24 @@ package org.apache.ignite.internal.processors.cache;
 
 import org.jetbrains.annotations.*;
 
+import java.io.*;
+
 /**
  *
  */
 public class CacheVersionedEntryImpl<K, V> extends CacheEntryImpl<K, V> {
+    /** */
+    private static final long serialVersionUID = 0L;
+
     /** Version. */
-    private final Object ver;
+    private Object ver;
+
+    /**
+     * Required by {@link Externalizable}.
+     */
+    public CacheVersionedEntryImpl() {
+        // No-op.
+    }
 
     /**
      * @param key Key.
@@ -46,6 +58,21 @@ public class CacheVersionedEntryImpl<K, V> extends CacheEntryImpl<K,
V> {
         return ver;
     }
 
+
+    /** {@inheritDoc} */
+    @Override public void writeExternal(ObjectOutput out) throws IOException {
+        super.writeExternal(out);
+
+        out.writeObject(ver);
+    }
+
+    /** {@inheritDoc} */
+    @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
{
+        super.readExternal(in);
+
+        ver = in.readObject();
+    }
+
     /** {@inheritDoc} */
     public String toString() {
         return "VersionedEntry [key=" + getKey() + ", val=" + getValue() + ", ver=" + ver
+ ']';


Mime
View raw message