1.问题
Cognitive Complexity of methods should not be too high
Refactor this method to reduce its Cognitive Complexity from 16 to the 15 allowed.
2.解决方法
(1)降低方法内if else, Switch等条件判断复杂度
3.参考:
(1) 记录我在程序中遇到的“坏味道”
http://blog.leanote.com/post/yuanquan.ni@qq.com/记录我在程序中遇到的坏味道
(2)圈复杂度
https://blog.csdn.net/lg707415323/article/details/7790660