[JAVA] Classes should not be compared by name - False Positives with StackTraceElement

171 views
Skip to first unread message

Adam Gabryś

unread,
Nov 20, 2015, 11:02:13 AM11/20/15
to SonarQube
Hi,
I get False Positive for S1872 Classes should not be compared by name when check class name of StackTraceElement.
 
StackTraceElement is a special object and probably this rule should ignore all instructions with it.
 
 
 
stack-trace-element-and-instance-of
 
Regards,
    Adam Gabryś
stack-trace-element-and-instance-of[3].png

Michael Gumowski

unread,
Feb 10, 2016, 4:21:09 AM2/10/16
to Adam Gabryś, SonarQube
Hello Adam,
Sorry for the late reply, and thank you for your feedback as well as the reproducer!
I created the following ticket to handle the issue: https://jira.sonarsource.com/browse/SONARJAVA-1533

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/DUB124-DS220E9722F81B779C9D2F4981A0%40phx.gbl.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages