fix map inconsistency (#2494)
* revert map
* update example topo accordingly
diff --git a/storm-compatibility-examples/src/java/org/apache/storm/examples/ExclamationTopology.java b/storm-compatibility-examples/src/java/org/apache/storm/examples/ExclamationTopology.java
index 1ec45d4..25b2492 100644
--- a/storm-compatibility-examples/src/java/org/apache/storm/examples/ExclamationTopology.java
+++ b/storm-compatibility-examples/src/java/org/apache/storm/examples/ExclamationTopology.java
@@ -77,8 +77,8 @@
private OutputCollector collector;
@Override
- @SuppressWarnings("HiddenField")
- public void prepare(Map<String, Object> stormConf, TopologyContext context,
+ @SuppressWarnings({"HiddenField", "rawtypes"})
+ public void prepare(Map stormConf, TopologyContext context,
OutputCollector collector) {
this.collector = collector;
diff --git a/storm-compatibility/src/java/org/apache/storm/task/IBolt.java b/storm-compatibility/src/java/org/apache/storm/task/IBolt.java
index 8379425..bb7dfb3 100644
--- a/storm-compatibility/src/java/org/apache/storm/task/IBolt.java
+++ b/storm-compatibility/src/java/org/apache/storm/task/IBolt.java
@@ -55,7 +55,7 @@
* @param collector The collector is used to emit tuples from this bolt. Tuples can be emitted at any time, including the prepare and cleanup methods. The collector is thread-safe and should be saved as an instance variable of this bolt object.
*/
@SuppressWarnings("rawtypes")
- void prepare(Map<String, Object> stormConf, TopologyContext context, OutputCollector collector);
+ void prepare(Map stormConf, TopologyContext context, OutputCollector collector);
/**
* Process a single tuple of input. The Tuple object contains metadata on it