storm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ptgo...@apache.org
Subject [17/24] git commit: remove instanceof check
Date Tue, 19 Nov 2013 15:26:54 GMT
remove instanceof check


Project: http://git-wip-us.apache.org/repos/asf/incubator-storm/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-storm/commit/5b071c0b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-storm/tree/5b071c0b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-storm/diff/5b071c0b

Branch: refs/heads/master
Commit: 5b071c0bdf016b7f4d0e62114f7d9362521e4926
Parents: 45aebfe
Author: Kang Xiao <kxiao.tiger@gmail.com>
Authored: Tue Nov 5 17:29:41 2013 +0800
Committer: Kang Xiao <kxiao.tiger@gmail.com>
Committed: Tue Nov 5 17:29:41 2013 +0800

----------------------------------------------------------------------
 storm-core/src/jvm/backtype/storm/task/ShellBolt.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-storm/blob/5b071c0b/storm-core/src/jvm/backtype/storm/task/ShellBolt.java
----------------------------------------------------------------------
diff --git a/storm-core/src/jvm/backtype/storm/task/ShellBolt.java b/storm-core/src/jvm/backtype/storm/task/ShellBolt.java
index 6e72da6..3fa6741 100644
--- a/storm-core/src/jvm/backtype/storm/task/ShellBolt.java
+++ b/storm-core/src/jvm/backtype/storm/task/ShellBolt.java
@@ -73,7 +73,7 @@ public class ShellBolt implements IBolt {
     public void prepare(Map stormConf, TopologyContext context,
                         final OutputCollector collector) {
         Object maxPending = stormConf.get(Config.TOPOLOGY_SHELLBOLT_MAX_PENDING);
-        if (maxPending != null && maxPending instanceof Number) {
+        if (maxPending != null) {
            this._pendingWrites = new LinkedBlockingQueue(((Number)maxPending).intValue());
         }
         _rand = new Random();


Mime
View raw message