Skip to content

chore(QTDI-2891): replace cast and instead of as method call

1b4c29e
Select commit
Loading
Failed to load commit list.
Open

chore(QTDI-2891): replace cast and instanceof as method call #1226

chore(QTDI-2891): replace cast and instead of as method call
1b4c29e
Select commit
Loading
Failed to load commit list.
sonar-rnd / SonarQube Code Analysis failed May 21, 2026 in 1m 41s

Quality Gate failed

Failed Quality Gate failed

  • 0.00% Coverage on New Code (is less than 80.00%)
  • 284 New Issues (is greater than 0)

Project ID: org.talend.sdk.component:component-runtime

View in SonarQube

Annotations

Check notice on line 66 in component-tools/src/main/java/org/talend/sdk/component/tools/StudioInstaller.java

See this annotation in the file changed.

@sonar-rnd sonar-rnd / SonarQube Code Analysis

component-tools/src/main/java/org/talend/sdk/component/tools/StudioInstaller.java#L66

Replace this instanceof check and cast with 'instanceof Log log'

Check notice on line 50 in component-tools/src/main/java/org/talend/sdk/component/tools/WebServer.java

See this annotation in the file changed.

@sonar-rnd sonar-rnd / SonarQube Code Analysis

component-tools/src/main/java/org/talend/sdk/component/tools/WebServer.java#L50

Replace this instanceof check and cast with 'instanceof Log log'

Check notice on line 166 in component-tools/src/main/java/org/talend/sdk/component/tools/validator/LayoutValidator.java

See this annotation in the file changed.

@sonar-rnd sonar-rnd / SonarQube Code Analysis

component-tools/src/main/java/org/talend/sdk/component/tools/validator/LayoutValidator.java#L166

Replace this instanceof check and cast with 'instanceof Class class'

Check notice on line 173 in component-tools/src/main/java/org/talend/sdk/component/tools/validator/LayoutValidator.java

See this annotation in the file changed.

@sonar-rnd sonar-rnd / SonarQube Code Analysis

component-tools/src/main/java/org/talend/sdk/component/tools/validator/LayoutValidator.java#L173

Replace this instanceof check and cast with 'instanceof ParameterizedType parameterizedType'

Check notice on line 176 in component-tools/src/main/java/org/talend/sdk/component/tools/validator/LayoutValidator.java

See this annotation in the file changed.

@sonar-rnd sonar-rnd / SonarQube Code Analysis

component-tools/src/main/java/org/talend/sdk/component/tools/validator/LayoutValidator.java#L176

Replace this instanceof check and cast with 'instanceof Class class'

Check notice on line 84 in component-tools/src/main/java/org/talend/sdk/component/tools/ComponentValidator.java

See this annotation in the file changed.

@sonar-rnd sonar-rnd / SonarQube Code Analysis

component-tools/src/main/java/org/talend/sdk/component/tools/ComponentValidator.java#L84

Replace this instanceof check and cast with 'instanceof Log log'

Check notice on line 291 in component-tools/src/main/java/org/talend/sdk/component/tools/AsciidoctorExecutor.java

See this annotation in the file changed.

@sonar-rnd sonar-rnd / SonarQube Code Analysis

component-tools/src/main/java/org/talend/sdk/component/tools/AsciidoctorExecutor.java#L291

Replace this instanceof check and cast with 'instanceof AutoCloseable autocloseable'

Check notice on line 293 in component-tools/src/main/java/org/talend/sdk/component/tools/AsciidoctorExecutor.java

See this annotation in the file changed.

@sonar-rnd sonar-rnd / SonarQube Code Analysis

component-tools/src/main/java/org/talend/sdk/component/tools/AsciidoctorExecutor.java#L293

Remove this unnecessary cast to "AutoCloseable".

Check notice on line 297 in component-tools/src/main/java/org/talend/sdk/component/tools/AsciidoctorExecutor.java

See this annotation in the file changed.

@sonar-rnd sonar-rnd / SonarQube Code Analysis

component-tools/src/main/java/org/talend/sdk/component/tools/AsciidoctorExecutor.java#L297

Replace this instanceof check and cast with 'instanceof JRubyAsciidoctor jrubyasciidoctor'

Check notice on line 61 in component-tools/src/main/java/org/talend/sdk/component/tools/CarBundler.java

See this annotation in the file changed.

@sonar-rnd sonar-rnd / SonarQube Code Analysis

component-tools/src/main/java/org/talend/sdk/component/tools/CarBundler.java#L61

Replace this instanceof check and cast with 'instanceof Log log'

Check notice on line 98 in component-tools/src/main/java/org/talend/sdk/component/tools/DocBaseGenerator.java

See this annotation in the file changed.

@sonar-rnd sonar-rnd / SonarQube Code Analysis

component-tools/src/main/java/org/talend/sdk/component/tools/DocBaseGenerator.java#L98

Replace this instanceof check and cast with 'instanceof Log log'

Check notice on line 573 in component-tools/src/main/java/org/talend/sdk/component/tools/DocBaseGenerator.java

See this annotation in the file changed.

@sonar-rnd sonar-rnd / SonarQube Code Analysis

component-tools/src/main/java/org/talend/sdk/component/tools/DocBaseGenerator.java#L573

Replace this instanceof check and cast with 'instanceof Collection collection'

Check notice on line 47 in component-tools/src/main/java/org/talend/sdk/component/tools/SVG2Png.java

See this annotation in the file changed.

@sonar-rnd sonar-rnd / SonarQube Code Analysis

component-tools/src/main/java/org/talend/sdk/component/tools/SVG2Png.java#L47

Replace this instanceof check and cast with 'instanceof Log log'

Check notice on line 137 in component-tools/src/test/java/org/talend/sdk/component/tools/ComponentValidatorTest.java

See this annotation in the file changed.

@sonar-rnd sonar-rnd / SonarQube Code Analysis

component-tools/src/test/java/org/talend/sdk/component/tools/ComponentValidatorTest.java#L137

Remove this use of "TemporaryFolder"; it is deprecated.

Check notice on line 137 in component-tools/src/test/java/org/talend/sdk/component/tools/ComponentValidatorTest.java

See this annotation in the file changed.

@sonar-rnd sonar-rnd / SonarQube Code Analysis

component-tools/src/test/java/org/talend/sdk/component/tools/ComponentValidatorTest.java#L137

Remove this use of "TemporaryFolder"; it is deprecated.

Check notice on line 145 in component-tools/src/test/java/org/talend/sdk/component/tools/ComponentValidatorTest.java

See this annotation in the file changed.

@sonar-rnd sonar-rnd / SonarQube Code Analysis

component-tools/src/test/java/org/talend/sdk/component/tools/ComponentValidatorTest.java#L145

Remove this use of "TemporaryFolder"; it is deprecated.

Check notice on line 145 in component-tools/src/test/java/org/talend/sdk/component/tools/ComponentValidatorTest.java

See this annotation in the file changed.

@sonar-rnd sonar-rnd / SonarQube Code Analysis

component-tools/src/test/java/org/talend/sdk/component/tools/ComponentValidatorTest.java#L145

Remove this use of "TemporaryFolder"; it is deprecated.

Check notice on line 133 in component-runtime-design-extension/src/main/java/org/talend/sdk/component/design/extension/repository/RepositoryModelBuilder.java

See this annotation in the file changed.

@sonar-rnd sonar-rnd / SonarQube Code Analysis

component-runtime-design-extension/src/main/java/org/talend/sdk/component/design/extension/repository/RepositoryModelBuilder.java#L133

Replace this instanceof check and cast with 'instanceof Class class'

Check failure on line 141 in component-runtime-manager/src/main/java/org/talend/sdk/component/runtime/manager/reflect/visibility/VisibilityService.java

See this annotation in the file changed.

@sonar-rnd sonar-rnd / SonarQube Code Analysis

component-runtime-manager/src/main/java/org/talend/sdk/component/runtime/manager/reflect/visibility/VisibilityService.java#L141

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

Check notice on line 151 in component-runtime-manager/src/main/java/org/talend/sdk/component/runtime/manager/reflect/visibility/VisibilityService.java

See this annotation in the file changed.

@sonar-rnd sonar-rnd / SonarQube Code Analysis

component-runtime-manager/src/main/java/org/talend/sdk/component/runtime/manager/reflect/visibility/VisibilityService.java#L151

Replace this instanceof check and cast with 'instanceof Collection collection'

Check notice on line 157 in component-runtime-manager/src/main/java/org/talend/sdk/component/runtime/manager/reflect/visibility/VisibilityService.java

See this annotation in the file changed.

@sonar-rnd sonar-rnd / SonarQube Code Analysis

component-runtime-manager/src/main/java/org/talend/sdk/component/runtime/manager/reflect/visibility/VisibilityService.java#L157

Replace this instanceof check and cast with 'instanceof String string'

Check notice on line 193 in component-runtime-manager/src/main/java/org/talend/sdk/component/runtime/manager/reflect/visibility/VisibilityService.java

See this annotation in the file changed.

@sonar-rnd sonar-rnd / SonarQube Code Analysis

component-runtime-manager/src/main/java/org/talend/sdk/component/runtime/manager/reflect/visibility/VisibilityService.java#L193

Replace this instanceof check and cast with 'instanceof Collection collection'

Check notice on line 45 in component-runtime-manager/src/main/java/org/talend/sdk/component/runtime/manager/reflect/parameterenricher/ConditionParameterEnricher.java

See this annotation in the file changed.

@sonar-rnd sonar-rnd / SonarQube Code Analysis

component-runtime-manager/src/main/java/org/talend/sdk/component/runtime/manager/reflect/parameterenricher/ConditionParameterEnricher.java#L45

Replace this instanceof check and cast with 'instanceof ActiveIfs activeIfs'

Check notice on line 76 in component-runtime-manager/src/main/java/org/talend/sdk/component/runtime/manager/reflect/parameterenricher/ConditionParameterEnricher.java

See this annotation in the file changed.

@sonar-rnd sonar-rnd / SonarQube Code Analysis

component-runtime-manager/src/main/java/org/talend/sdk/component/runtime/manager/reflect/parameterenricher/ConditionParameterEnricher.java#L76

Replace this instanceof check and cast with 'instanceof String[] string[]'

Check notice on line 52 in component-runtime-manager/src/main/java/org/talend/sdk/component/runtime/manager/reflect/parameterenricher/ValidationParameterEnricher.java

See this annotation in the file changed.

@sonar-rnd sonar-rnd / SonarQube Code Analysis

component-runtime-manager/src/main/java/org/talend/sdk/component/runtime/manager/reflect/parameterenricher/ValidationParameterEnricher.java#L52

Replace this instanceof check and cast with 'instanceof ParameterizedType parameterizedtype'