alibaba / jstorm

Enterprise Stream Process Engine
http://jstorm.io
Apache License 2.0
3.91k stars 1.81k forks source link

jstorm-core内冗余的实例化对象 (RedundantInstantiation) #489 #491

Closed waooog closed 7 years ago

waooog commented 7 years ago

我们的自动化缺陷检测工具扫描 jstorm-core的源代码,发现了一处潜在的 bug, 上述代码片段中,Hierarchy的对象h 被连续两次初始化,修改为:

Hierarchy h = new Hierarchy(name, CgroupUtils.analyse(type), dir);

CLAassistant commented 7 years ago

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


SONG WANG seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.