bundle/src/main/java/com/adobe/acs/commons/models/injectors/impl/TagPropertyInjector.java
Refactor this method to reduce its Cognitive Complexity from 20 to the 15 allowed. Open
Open
public Object getValue(Object adaptable, String name, Type declaredType, AnnotatedElement element, DisposalCallbackRegistry callbackRegistry) {
- Read upRead up
- Exclude checks
Cognitive Complexity is a measure of how hard the control flow of a method is to understand. Methods with high Cognitive Complexity will be difficult to maintain.