Cxf 8445
Sonar rule to reduce complexity of a method will entail more unit tests and code refactoring. This is considered a medium level if there are unit tests ready for the affected method; however, if unit tests does not exist for the whole class or the methods inside the class which are affected, this will make the complex level to over medium. The refactor is focused on method bases and is incremental. This means some classes contains more then one methods to be have reduction in cognitive complexity, one method will be taken and the rest will be accomplished in different pull request. This pull request will not try to refactor all the complex cognitive methods but rather will do some and once the pull is accepted, it will proceed to next pull and so forth until the core methods has no issue in relation to cognitive complexity
Sonar rule: java:S3776 reduce Cognitive Complexity of a method; see CognitiveComplexity
No more changes will be committed for this PR . Since we want each PR has very min. changes in this area (CognitiveComplexity)
The check is failed now due to CodeQL rule which force us to check the directory name not to contain ".." Any help would be appreciated to relax the codeQL rule. I are doing refactoring and never touch the business logic.