Return-Path: X-Original-To: apmail-ignite-commits-archive@minotaur.apache.org Delivered-To: apmail-ignite-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9B989173B6 for ; Fri, 17 Apr 2015 17:02:26 +0000 (UTC) Received: (qmail 47566 invoked by uid 500); 17 Apr 2015 17:02:26 -0000 Delivered-To: apmail-ignite-commits-archive@ignite.apache.org Received: (qmail 47496 invoked by uid 500); 17 Apr 2015 17:02:26 -0000 Mailing-List: contact commits-help@ignite.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.incubator.apache.org Delivered-To: mailing list commits@ignite.incubator.apache.org Received: (qmail 47435 invoked by uid 99); 17 Apr 2015 17:02:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Apr 2015 17:02:26 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 17 Apr 2015 17:02:25 +0000 Received: (qmail 43900 invoked by uid 99); 17 Apr 2015 17:02:01 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Apr 2015 17:02:01 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id D7073E0562; Fri, 17 Apr 2015 17:02:01 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sboikov@apache.org To: commits@ignite.incubator.apache.org Date: Fri, 17 Apr 2015 17:02:35 -0000 Message-Id: <820c662917674a6da8d40dbae790458f@git.apache.org> In-Reply-To: <29434993d4774195a8d65a85bcbf079c@git.apache.org> References: <29434993d4774195a8d65a85bcbf079c@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [36/50] [abbrv] incubator-ignite git commit: # IGNITE-753 Fixed build. X-Virus-Checked: Checked by ClamAV on apache.org # 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-446 Commit: 6a6ca1a89b0de2fca584c3a4478113516c486d1c Parents: f2cc14c Author: AKuznetsov Authored: Fri Apr 17 10:47:52 2015 +0700 Committer: AKuznetsov 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 extends CacheEntryImpl { + /** */ + 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 extends CacheEntryImpl { 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 + ']';