Leftover follow-up commit for "1c8f47754241fea8b9c1463c08539ec31638a5de":
* Use the "@JsonProperty()" annotation to serialize/deserialize
objects that don't require any specialized processing.
Use "@JsonSerialize" and "@JsonDeserialize" only for objects
that need more specialized processing.
* Remove FooSerializer JSON classes that are not used/needed anymore.
* Update the implementation of remaining FooSerializer classes,
and associated Foo classes.
diff --git a/src/main/java/net/floodlightcontroller/util/CallerId.java b/src/main/java/net/floodlightcontroller/util/CallerId.java
index 200b9e0..ade0f0d 100644
--- a/src/main/java/net/floodlightcontroller/util/CallerId.java
+++ b/src/main/java/net/floodlightcontroller/util/CallerId.java
@@ -1,14 +1,10 @@
package net.floodlightcontroller.util;
-import net.floodlightcontroller.util.serializers.CallerIdSerializer;
-
import org.codehaus.jackson.annotate.JsonProperty;
-import org.codehaus.jackson.map.annotate.JsonSerialize;
/**
* The class representing a Caller ID for an ONOS component.
*/
-@JsonSerialize(using=CallerIdSerializer.class)
public class CallerId {
private String value;
@@ -31,6 +27,7 @@
*
* @return the value of the Caller ID.
*/
+ @JsonProperty("value")
public String value() { return value; }
/**
@@ -38,6 +35,7 @@
*
* @param value the value to set.
*/
+ @JsonProperty("value")
public void setValue(String value) {
this.value = value;
}