FP: squid:S1192 false positive in interface classes (Java)

156 views
Skip to first unread message

Franz van Betteraey

unread,
Aug 20, 2015, 6:35:26 AM8/20/15
to SonarQube
The Java rule squid:S1192 (String literals should not be duplicated) should not be applied in interface classes because the suggested fix (define a constant) is a squid:S1214 (Constants should not be defined in interfaces) rule validation.

Same String literals in interface classes may appear in default methods since Java 8.

Language: Java
SonarQube: 4.5.5
JavaPlugin: 3.4

Michael Gumowski

unread,
Aug 24, 2015, 12:56:14 PM8/24/15
to SonarQube
Hello Franz!

Thanks for your feedback!
Ticket created to handle the issue : https://jira.sonarsource.com/browse/SONARJAVA-1231

Regards,

Michael GUMOWSKI | SonarSource
Software Developer @ Language Team
http://sonarsource.com

--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/5fb3e771-9309-457e-b16f-fc50f07e5cef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Reply all
Reply to author
Forward
0 new messages