ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject [38/50] [abbrv] ignite git commit: IGNITE-1968: Fixed missing serialization modes in Java.
Date Sat, 21 Nov 2015 02:02:16 GMT
IGNITE-1968: Fixed missing serialization modes in Java.


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

Branch: refs/heads/ignite-1753-1282
Commit: 3430586c6ec7b224018b668e0f9e7d8aed012c1d
Parents: 0d56b41
Author: vozerov-gridgain <vozerov@gridgain.com>
Authored: Fri Nov 20 14:19:01 2015 +0300
Committer: vozerov-gridgain <vozerov@gridgain.com>
Committed: Fri Nov 20 14:19:01 2015 +0300

----------------------------------------------------------------------
 .../internal/portable/PortableClassDescriptor.java  | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/3430586c/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 bc9d6f4..974f891 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
@@ -165,6 +165,14 @@ public class PortableClassDescriptor {
             mode = serializer != null ? BinaryWriteMode.PORTABLE : PortableUtils.mode(cls);
 
         switch (mode) {
+            case P_BYTE:
+            case P_BOOLEAN:
+            case P_SHORT:
+            case P_CHAR:
+            case P_INT:
+            case P_LONG:
+            case P_FLOAT:
+            case P_DOUBLE:
             case BYTE:
             case SHORT:
             case INT:
@@ -363,41 +371,49 @@ public class PortableClassDescriptor {
         writer.typeId(typeId);
 
         switch (mode) {
+            case P_BYTE:
             case BYTE:
                 writer.writeByteFieldPrimitive((byte) obj);
 
                 break;
 
+            case P_SHORT:
             case SHORT:
                 writer.writeShortFieldPrimitive((short)obj);
 
                 break;
 
+            case P_INT:
             case INT:
                 writer.writeIntFieldPrimitive((int) obj);
 
                 break;
 
+            case P_LONG:
             case LONG:
                 writer.writeLongFieldPrimitive((long) obj);
 
                 break;
 
+            case P_FLOAT:
             case FLOAT:
                 writer.writeFloatFieldPrimitive((float) obj);
 
                 break;
 
+            case P_DOUBLE:
             case DOUBLE:
                 writer.writeDoubleFieldPrimitive((double) obj);
 
                 break;
 
+            case P_CHAR:
             case CHAR:
                 writer.writeCharFieldPrimitive((char) obj);
 
                 break;
 
+            case P_BOOLEAN:
             case BOOLEAN:
                 writer.writeBooleanFieldPrimitive((boolean) obj);
 


Mime
View raw message