ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [24/44] incubator-ignite git commit: # ignite-629-1 review
Date Tue, 31 Mar 2015 18:02:28 GMT
# ignite-629-1 review


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

Branch: refs/heads/gg-9998
Commit: c02ff0f42e9ccd745234b5be26305cffcf640a75
Parents: e9a45c0
Author: sboikov <sboikov@gridgain.com>
Authored: Mon Mar 30 12:46:05 2015 +0300
Committer: sboikov <sboikov@gridgain.com>
Committed: Mon Mar 30 12:46:05 2015 +0300

----------------------------------------------------------------------
 .../internal/processors/cache/GridCacheContext.java  | 12 ------------
 .../GridCacheAtomicReferenceValue.java               | 15 +--------------
 .../datastructures/GridCacheAtomicStampedValue.java  | 15 +--------------
 3 files changed, 2 insertions(+), 40 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c02ff0f4/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheContext.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheContext.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheContext.java
index 4f1267d..bec175a 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheContext.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheContext.java
@@ -1174,18 +1174,6 @@ public class GridCacheContext<K, V> implements Externalizable
{
     }
 
     /**
-     * Clone cached object.
-     *
-     * @param obj Object to clone
-     * @return Clone of the given object.
-     * @throws IgniteCheckedException If failed to clone object.
-     */
-    @SuppressWarnings({"unchecked"})
-    @Nullable public <T> T cloneValue(@Nullable T obj) throws IgniteCheckedException
{
-        return obj == null ? null : X.cloneObject(obj, false, true);
-    }
-
-    /**
      * Sets thread local projection.
      *
      * @param prj Flags to set.

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c02ff0f4/modules/core/src/main/java/org/apache/ignite/internal/processors/datastructures/GridCacheAtomicReferenceValue.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/datastructures/GridCacheAtomicReferenceValue.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/datastructures/GridCacheAtomicReferenceValue.java
index ef2db3e..596534f 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/datastructures/GridCacheAtomicReferenceValue.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/datastructures/GridCacheAtomicReferenceValue.java
@@ -19,7 +19,6 @@ package org.apache.ignite.internal.processors.datastructures;
 
 import org.apache.ignite.internal.processors.cache.*;
 import org.apache.ignite.internal.util.lang.*;
-import org.apache.ignite.internal.util.typedef.*;
 import org.apache.ignite.internal.util.typedef.internal.*;
 
 import java.io.*;
@@ -28,7 +27,7 @@ import java.io.*;
  * Atomic reference value.
  */
 public final class GridCacheAtomicReferenceValue<T> implements GridCacheInternal, GridPeerDeployAware,
-    Externalizable, Cloneable {
+    Externalizable {
     /** */
     private static final long serialVersionUID = 0L;
 
@@ -66,18 +65,6 @@ public final class GridCacheAtomicReferenceValue<T> implements GridCacheInternal
     }
 
     /** {@inheritDoc} */
-    @SuppressWarnings( {"unchecked"})
-    @Override public GridCacheAtomicReferenceValue<T> clone() throws CloneNotSupportedException
{
-        GridCacheAtomicReferenceValue<T> obj = (GridCacheAtomicReferenceValue<T>)super.clone();
-
-        T locVal = X.cloneObject(val, false, true);
-
-        obj.set(locVal);
-
-        return obj;
-    }
-
-    /** {@inheritDoc} */
     @Override public void writeExternal(ObjectOutput out) throws IOException {
         out.writeObject(val);
     }

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c02ff0f4/modules/core/src/main/java/org/apache/ignite/internal/processors/datastructures/GridCacheAtomicStampedValue.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/datastructures/GridCacheAtomicStampedValue.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/datastructures/GridCacheAtomicStampedValue.java
index 0f4be1e..f852597 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/datastructures/GridCacheAtomicStampedValue.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/datastructures/GridCacheAtomicStampedValue.java
@@ -30,7 +30,7 @@ import java.io.*;
  */
 
 public final class GridCacheAtomicStampedValue<T, S> implements GridCacheInternal,
GridPeerDeployAware,
-    Externalizable, Cloneable {
+    Externalizable {
     /** */
     private static final long serialVersionUID = 0L;
 
@@ -89,19 +89,6 @@ public final class GridCacheAtomicStampedValue<T, S> implements GridCacheInterna
     }
 
     /** {@inheritDoc} */
-    @SuppressWarnings( {"unchecked"})
-    @Override public GridCacheAtomicStampedValue<T, S> clone() throws CloneNotSupportedException
{
-        GridCacheAtomicStampedValue<T, S> obj = (GridCacheAtomicStampedValue<T,
S>)super.clone();
-
-        T locVal = X.cloneObject(val, false, true);
-        S locStamp = X.cloneObject(stamp, false, true);
-
-        obj.set(locVal, locStamp);
-
-        return obj;
-    }
-
-    /** {@inheritDoc} */
     @Override public void writeExternal(ObjectOutput out) throws IOException {
         out.writeObject(val);
         out.writeObject(stamp);


Mime
View raw message