ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From voze...@apache.org
Subject [2/4] ignite git commit: IGNITE-1917: Minor refactoring.
Date Tue, 17 Nov 2015 08:30:10 GMT
IGNITE-1917: Minor refactoring.


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

Branch: refs/heads/ignite-1917
Commit: ef446cfb8e72c81602dc971437a89b02f5d0856b
Parents: 3ea5097
Author: vozerov-gridgain <vozerov@gridgain.com>
Authored: Mon Nov 16 15:22:29 2015 +0300
Committer: vozerov-gridgain <vozerov@gridgain.com>
Committed: Mon Nov 16 15:22:29 2015 +0300

----------------------------------------------------------------------
 .../org/apache/ignite/internal/portable/BinaryWriterExImpl.java  | 4 +---
 .../apache/ignite/internal/portable/PortableClassDescriptor.java | 2 ++
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/ef446cfb/modules/core/src/main/java/org/apache/ignite/internal/portable/BinaryWriterExImpl.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/portable/BinaryWriterExImpl.java
b/modules/core/src/main/java/org/apache/ignite/internal/portable/BinaryWriterExImpl.java
index 003856a..228a84c 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/portable/BinaryWriterExImpl.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/portable/BinaryWriterExImpl.java
@@ -238,8 +238,6 @@ public class BinaryWriterExImpl implements BinaryWriter, BinaryRawWriterEx,
Obje
             return;
         }
 
-        typeId = desc.typeId();
-
         desc.write(obj, this);
     }
 
@@ -1757,7 +1755,7 @@ public class BinaryWriterExImpl implements BinaryWriter, BinaryRawWriterEx,
Obje
     public BinaryWriterExImpl newWriter(int typeId) {
         BinaryWriterExImpl res = new BinaryWriterExImpl(ctx, out, schema, handles());
 
-        res.typeId = typeId;
+        res.typeId(typeId);
 
         return res;
     }

http://git-wip-us.apache.org/repos/asf/ignite/blob/ef446cfb/modules/core/src/main/java/org/apache/ignite/internal/portable/PortableClassDescriptor.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/portable/PortableClassDescriptor.java
b/modules/core/src/main/java/org/apache/ignite/internal/portable/PortableClassDescriptor.java
index 94d9a6b..3edf980 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/portable/PortableClassDescriptor.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/portable/PortableClassDescriptor.java
@@ -383,6 +383,8 @@ public class PortableClassDescriptor {
         assert obj != null;
         assert writer != null;
 
+        writer.typeId(typeId);
+
         switch (mode) {
             case BYTE:
                 writer.writeByteFieldPrimitive((byte) obj);


Mime
View raw message