Sho SHIMIZU
Committed by Thomas Vachuska

Rename to match the name of classes that are supplied to codec

Change-Id: I4b67ce8343cd0227728c55ba9a0181855464ecc6
...@@ -46,8 +46,8 @@ final class Codecs { ...@@ -46,8 +46,8 @@ final class Codecs {
46 } 46 }
47 47
48 private void init() { 48 private void init() {
49 - codecs.put(VlanId.class, new VlanCodec()); 49 + codecs.put(VlanId.class, new VlanIdCodec());
50 - codecs.put(MplsLabel.class, new MplsCodec()); 50 + codecs.put(MplsLabel.class, new MplsLabelCodec());
51 } 51 }
52 52
53 /** 53 /**
......
...@@ -78,8 +78,8 @@ public class ConsistentResourceStore extends AbstractStore<ResourceEvent, Resour ...@@ -78,8 +78,8 @@ public class ConsistentResourceStore extends AbstractStore<ResourceEvent, Resour
78 .register(EmptyDiscreteResources.class) 78 .register(EmptyDiscreteResources.class)
79 .register(new EncodedResourcesSerializer(), EncodedDiscreteResources.class) 79 .register(new EncodedResourcesSerializer(), EncodedDiscreteResources.class)
80 .register(ContinuousResourceAllocation.class) 80 .register(ContinuousResourceAllocation.class)
81 - .register(VlanCodec.class) 81 + .register(VlanIdCodec.class)
82 - .register(MplsCodec.class) 82 + .register(MplsLabelCodec.class)
83 .build()); 83 .build());
84 84
85 // TODO: We should provide centralized values for this 85 // TODO: We should provide centralized values for this
......
...@@ -23,7 +23,7 @@ import org.onosproject.net.resource.DiscreteResourceCodec; ...@@ -23,7 +23,7 @@ import org.onosproject.net.resource.DiscreteResourceCodec;
23 * Codec for MplsLabel. 23 * Codec for MplsLabel.
24 */ 24 */
25 @Beta 25 @Beta
26 -final class MplsCodec implements DiscreteResourceCodec<MplsLabel> { 26 +final class MplsLabelCodec implements DiscreteResourceCodec<MplsLabel> {
27 @Override 27 @Override
28 public int encode(MplsLabel resource) { 28 public int encode(MplsLabel resource) {
29 return resource.toInt(); 29 return resource.toInt();
...@@ -49,6 +49,6 @@ final class MplsCodec implements DiscreteResourceCodec<MplsLabel> { ...@@ -49,6 +49,6 @@ final class MplsCodec implements DiscreteResourceCodec<MplsLabel> {
49 49
50 @Override 50 @Override
51 public int hashCode() { 51 public int hashCode() {
52 - return MplsCodec.class.hashCode(); 52 + return MplsLabelCodec.class.hashCode();
53 } 53 }
54 } 54 }
......
...@@ -23,7 +23,7 @@ import org.onosproject.net.resource.DiscreteResourceCodec; ...@@ -23,7 +23,7 @@ import org.onosproject.net.resource.DiscreteResourceCodec;
23 * Codec for Vlan. 23 * Codec for Vlan.
24 */ 24 */
25 @Beta 25 @Beta
26 -final class VlanCodec implements DiscreteResourceCodec<VlanId> { 26 +final class VlanIdCodec implements DiscreteResourceCodec<VlanId> {
27 @Override 27 @Override
28 public int encode(VlanId resource) { 28 public int encode(VlanId resource) {
29 return resource.toShort(); 29 return resource.toShort();
...@@ -49,6 +49,6 @@ final class VlanCodec implements DiscreteResourceCodec<VlanId> { ...@@ -49,6 +49,6 @@ final class VlanCodec implements DiscreteResourceCodec<VlanId> {
49 49
50 @Override 50 @Override
51 public int hashCode() { 51 public int hashCode() {
52 - return VlanCodec.class.hashCode(); 52 + return VlanIdCodec.class.hashCode();
53 } 53 }
54 } 54 }
......