Skip to content

Conversation

kanwarpreet25
Copy link
Contributor

Refactor this method to reduce its Cognitive Complexity from 30 to the 15 allowed.

Pull request title

Pull request description

  • Cognitive Compexity of Methods has been reduced in these commits

Refactor this method to reduce its Cognitive Complexity from 30 to the 15 allowed.
Define a constant instead of duplicating this literal " does not exist." 3 times.
Define a constant instead of duplicating this literal "Some external api for only realtime execution could be called here." 3 times.
@kanwarpreet25
Copy link
Contributor Author

Please review and merge

@kanwarpreet25
Copy link
Contributor Author

@iluwatar Can you assign someone to review this and merge

@iluwatar iluwatar self-assigned this Jul 28, 2019
@iluwatar iluwatar added this to the 1.21.0 milestone Jul 28, 2019
@iluwatar iluwatar merged commit f7e22a1 into iluwatar:master Jul 28, 2019
@iluwatar
Copy link
Owner

Thanks for this too @kanwarpreet25 😄

hoangnam2261 pushed a commit to hoangnam2261/java-design-patterns that referenced this pull request Jul 30, 2019
* 508 : Sonar qube critical Issue Fix
Refactor this method to reduce its Cognitive Complexity from 30 to the 15 allowed.

* 508: Sonar Qube Issue fxes
Define a constant instead of duplicating this literal " does not exist." 3 times.

* 508: sonar qube issue fixes
Define a constant instead of duplicating this literal "Some external api for only realtime execution could be called here." 3 times.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants