commit | 6d7968e5a85da2736bf9ee15fc9690ba3df0c1a8 | [log] [tgz] |
---|---|---|
author | Ray Milkey <ray@onlab.us> | Mon Jul 06 14:30:02 2015 -0700 |
committer | Ray Milkey <ray@onlab.us> | Mon Jul 06 21:58:27 2015 +0000 |
tree | 5e6666862e5cbf293e9dad5d24716b7be8a2a196 | |
parent | c19d8291fdeca93be8b00794b342349ad566b9d1 [diff] [blame] |
Refeactor codec helper classes Change-Id: Ic980293f5df97ed74a73fc54e3dcb197658264f5
diff --git a/core/common/src/main/java/org/onosproject/codec/impl/InstructionCodec.java b/core/common/src/main/java/org/onosproject/codec/impl/InstructionCodec.java index e903dfa..6f680c8 100644 --- a/core/common/src/main/java/org/onosproject/codec/impl/InstructionCodec.java +++ b/core/common/src/main/java/org/onosproject/codec/impl/InstructionCodec.java
@@ -56,7 +56,7 @@ public ObjectNode encode(Instruction instruction, CodecContext context) { checkNotNull(instruction, "Instruction cannot be null"); - return new EncodeInstructionCodec(instruction, context).encode(); + return new EncodeInstructionCodecHelper(instruction, context).encode(); } @Override @@ -65,6 +65,6 @@ return null; } - return new DecodeInstructionCodec(json).decode(); + return new DecodeInstructionCodecHelper(json).decode(); } }