Refactor this method to reduce its Cognitive Complexity from 65 to the 15 allowed. [+22 locations]

Sonar常见问题及修改建议(201912):https://blog.csdn.net/libusi001/article/details/103717457

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Refactor this method to reduce its Cognitive Complexity from 65 to the 15 allowed. [+22 locations] 
(重构这种方法,将其认知复杂性从65降低到15。)

表示一个方法行数很多比较复杂,同样的解决办法就是抽取方法,讲一个方法拆分几个方法
发布了267 篇原创文章 · 获赞 145 · 访问量 6万+

猜你喜欢

转载自blog.csdn.net/libusi001/article/details/103893391