Fix issues found by FindBugs: URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD

http://findbugs.sourceforge.net/bugDescriptions.html#URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD

Note: the fix for IntentMap.changedEvent is actually a workaround - adding
toString() method that refers to the "unread public or protected fields").
The "eventType" and "intent" fields might be used in the future.

Change-Id: I165183fcbefd3db0d01a728f14cbd6b7681a2f3a
diff --git a/src/main/java/net/onrc/onos/core/intent/IntentMap.java b/src/main/java/net/onrc/onos/core/intent/IntentMap.java
index 9bdb21f..25b98a5 100644
--- a/src/main/java/net/onrc/onos/core/intent/IntentMap.java
+++ b/src/main/java/net/onrc/onos/core/intent/IntentMap.java
@@ -47,6 +47,25 @@
 
         public ChangedEventType eventType;
         public Intent intent;
+
+        /**
+         * Get a string representation of the object.
+         * <p/>
+         * The string has the following form:
+         * [eventType=XXX intent=XXX]
+         *
+         * @return a string representation of the object.
+         */
+        @Override
+        public String toString() {
+            StringBuilder ret = new StringBuilder();
+            ret.append("[eventType=");
+            ret.append(this.eventType.toString());
+            ret.append(" intent=");
+            ret.append(this.intent.toString());
+            ret.append("]");
+            return ret.toString();
+        }
     }
 
     public interface ChangedListener extends EventListener {