Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sancar committed Feb 8, 2016
1 parent a0c8022 commit 83d64b5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,28 +41,27 @@ namespace hazelcast {
public:
SerializationConstants();

static int const CONSTANT_TYPE_NULL;
static int const CONSTANT_TYPE_PORTABLE;
static int const CONSTANT_TYPE_DATA;
static int const CONSTANT_TYPE_BYTE;
static int const CONSTANT_TYPE_BOOLEAN;
static int const CONSTANT_TYPE_CHAR;
static int const CONSTANT_TYPE_SHORT;
static int const CONSTANT_TYPE_INTEGER;
static int const CONSTANT_TYPE_LONG;
static int const CONSTANT_TYPE_FLOAT;
static int const CONSTANT_TYPE_DOUBLE;
static int const CONSTANT_TYPE_STRING;
static int const CONSTANT_TYPE_BYTE_ARRAY;
static int const CONSTANT_TYPE_BOOLEAN_ARRAY;
static int const CONSTANT_TYPE_CHAR_ARRAY;
static int const CONSTANT_TYPE_SHORT_ARRAY;
static int const CONSTANT_TYPE_INTEGER_ARRAY;
static int const CONSTANT_TYPE_LONG_ARRAY;
static int const CONSTANT_TYPE_FLOAT_ARRAY;
static int const CONSTANT_TYPE_DOUBLE_ARRAY;
static int const CONSTANT_TYPE_STRING_ARRAY;

static int const CONSTANT_TYPE_NULL = 0;
static int const CONSTANT_TYPE_PORTABLE=-1;
static int const CONSTANT_TYPE_DATA=-2;
static int const CONSTANT_TYPE_BYTE=-3;
static int const CONSTANT_TYPE_BOOLEAN=-4;
static int const CONSTANT_TYPE_CHAR=-5;
static int const CONSTANT_TYPE_SHORT=-6;
static int const CONSTANT_TYPE_INTEGER=-7;
static int const CONSTANT_TYPE_LONG=-8;
static int const CONSTANT_TYPE_FLOAT=-9;
static int const CONSTANT_TYPE_DOUBLE=-10;
static int const CONSTANT_TYPE_STRING=-11;
static int const CONSTANT_TYPE_BYTE_ARRAY=-12;
static int const CONSTANT_TYPE_BOOLEAN_ARRAY=-13;
static int const CONSTANT_TYPE_CHAR_ARRAY=-14;
static int const CONSTANT_TYPE_SHORT_ARRAY=-15;
static int const CONSTANT_TYPE_INTEGER_ARRAY=-16;
static int const CONSTANT_TYPE_LONG_ARRAY=-17;
static int const CONSTANT_TYPE_FLOAT_ARRAY=-18;
static int const CONSTANT_TYPE_DOUBLE_ARRAY=-19;
static int const CONSTANT_TYPE_STRING_ARRAY=-20;
// ------------------------------------------------------------

void checkClassType(int expectedType, int currentType) const;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,28 +26,6 @@ namespace hazelcast {
namespace client {
namespace serialization {
namespace pimpl {
int const SerializationConstants::CONSTANT_TYPE_NULL = 0;
int const SerializationConstants::CONSTANT_TYPE_PORTABLE=-1;
int const SerializationConstants::CONSTANT_TYPE_DATA=-2;
int const SerializationConstants::CONSTANT_TYPE_BYTE=-3;
int const SerializationConstants::CONSTANT_TYPE_BOOLEAN=-4;
int const SerializationConstants::CONSTANT_TYPE_CHAR=-5;
int const SerializationConstants::CONSTANT_TYPE_SHORT=-6;
int const SerializationConstants::CONSTANT_TYPE_INTEGER=-7;
int const SerializationConstants::CONSTANT_TYPE_LONG=-8;
int const SerializationConstants::CONSTANT_TYPE_FLOAT=-9;
int const SerializationConstants::CONSTANT_TYPE_DOUBLE=-10;
int const SerializationConstants::CONSTANT_TYPE_STRING=-11;
int const SerializationConstants::CONSTANT_TYPE_BYTE_ARRAY=-12;
int const SerializationConstants::CONSTANT_TYPE_BOOLEAN_ARRAY=-13;
int const SerializationConstants::CONSTANT_TYPE_CHAR_ARRAY=-14;
int const SerializationConstants::CONSTANT_TYPE_SHORT_ARRAY=-15;
int const SerializationConstants::CONSTANT_TYPE_INTEGER_ARRAY=-16;
int const SerializationConstants::CONSTANT_TYPE_LONG_ARRAY=-17;
int const SerializationConstants::CONSTANT_TYPE_FLOAT_ARRAY=-18;
int const SerializationConstants::CONSTANT_TYPE_DOUBLE_ARRAY=-19;
int const SerializationConstants::CONSTANT_TYPE_STRING_ARRAY=-20;

SerializationConstants::SerializationConstants()
: size(21)
, typeIdNameVector(size){
Expand Down

0 comments on commit 83d64b5

Please sign in to comment.