Skip to content

SONARJAVA-6758: Fix FPs in S5673 for controllers without mappings and redundant annotations - #5925

Merged
romainbrenguier merged 3 commits into
masterfrom
romain/sonarjava-6758
Aug 17, 2026
Merged

SONARJAVA-6758: Fix FPs in S5673 for controllers without mappings and redundant annotations#5925
romainbrenguier merged 3 commits into
masterfrom
romain/sonarjava-6758

SONARJAVA-6758: Fix FPs in S5673 for controllers without mappings and…

e70fd0f
Select commit
Loading
Failed to load commit list.
SonarQube-Next / SonarQube Code Analysis failed Aug 14, 2026 in 49s

Quality Gate failed

Failed conditions
2 New issues
88.3% Coverage on New Code (required ≥ 90%)

See analysis details on SonarQube

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE SonarQube for IDE

Annotations

Check failure on line 95 in java-checks/src/main/java/org/sonar/java/checks/spring/SpringComponentSpecializationCheck.java

See this annotation in the file changed.

@sonarqube-next sonarqube-next / SonarQube Code Analysis

Define a constant instead of duplicating this literal "RestController" 3 times.

[S1192] String literals should not be duplicated
 See more on https://next.sonarqube.com/sonarqube/project/issues?id=org.sonarsource.java%3Ajava&pullRequest=5925&issues=75a50427-9c88-4c94-add4-a2c7a51871c0&open=75a50427-9c88-4c94-add4-a2c7a51871c0

Check failure on line 95 in java-checks/src/main/java/org/sonar/java/checks/spring/SpringComponentSpecializationCheck.java

See this annotation in the file changed.

@sonarqube-next sonarqube-next / SonarQube Code Analysis

Define a constant instead of duplicating this literal "Controller" 3 times.

[S1192] String literals should not be duplicated
 See more on https://next.sonarqube.com/sonarqube/project/issues?id=org.sonarsource.java%3Ajava&pullRequest=5925&issues=4328add1-11b1-4d76-ae83-b80deb0c8ab4&open=4328add1-11b1-4d76-ae83-b80deb0c8ab4