ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From voze...@apache.org
Subject [25/31] ignite git commit: ignite-3465 Do not call super.toString for not-initialized BinaryObjectImpl. (cherry picked from commit 78d7c13)
Date Tue, 19 Jul 2016 14:10:11 GMT
ignite-3465 Do not call super.toString for not-initialized BinaryObjectImpl.
(cherry picked from commit 78d7c13)


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

Branch: refs/heads/master
Commit: 590dffbe47d015db36710ba7708fd7d83269329f
Parents: 46f4272
Author: sboikov <sboikov@gridgain.com>
Authored: Tue Jul 19 13:35:59 2016 +0300
Committer: sboikov <sboikov@gridgain.com>
Committed: Tue Jul 19 14:53:15 2016 +0300

----------------------------------------------------------------------
 .../org/apache/ignite/internal/binary/BinaryObjectImpl.java  | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/590dffbe/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryObjectImpl.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryObjectImpl.java
b/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryObjectImpl.java
index 7998ee3..ae110f1 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryObjectImpl.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryObjectImpl.java
@@ -620,4 +620,12 @@ public final class BinaryObjectImpl extends BinaryObjectExImpl implements
Extern
     private BinaryReaderExImpl reader(@Nullable BinaryReaderHandles rCtx, boolean forUnmarshal)
{
         return reader(rCtx, null, forUnmarshal);
     }
+
+    /** {@inheritDoc} */
+    @Override public String toString() {
+        if (arr == null || ctx == null)
+            return "BinaryObjectImpl [arr= " + (arr != null) + ", ctx=" + (ctx != null) +
", start=" + start + "]";
+
+        return super.toString();
+    }
 }


Mime
View raw message