Sonar Fixes
https://sonar.spring.io/component_issues?id=org.springframework.integration%3Aspring-integration%3Amaster#resolved=false|types=BUG In `IntegrationFlowRegistration` double check locking is ok for `inputChannel` because we're assigning an existing object, but `MessagingTemplate` constructs a new object for which double check locking doesn't work. In any case, for both these items, the chance of concurrent access is extremely low and is idempotent anyway, so remove double check locking. Several inner classes can be static. Other minor fixes.
This commit is contained in:
committed by
Artem Bilan
parent
1bba73fc06
commit
f070de0b7e
@@ -119,7 +119,7 @@ class IntegrationGraphControllerRegistrar implements ImportBeanDefinitionRegistr
|
||||
|
||||
private final String[] allowedOrigins;
|
||||
|
||||
private IntegrationGraphCorsConfigurer(String path, String[] allowedOrigins) {
|
||||
private IntegrationGraphCorsConfigurer(String path, String[] allowedOrigins) { // NOSONAR
|
||||
this.path = path;
|
||||
this.allowedOrigins = allowedOrigins;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user