sonarqube - Sonar ThreadGroup error on IllegalArgumentException -
sonar shows "threadgroup" error on line illegalargumentexception thrown. why issue here?
here code snippet, issue found sonar:
public static resolutionelection fromvalue(string value) { (resolutionelection election : resolutionelection.values()) { if (election.getvalue().equals(value)) { homecoming election; } } throw new java.lang.illegalargumentexception(); } sonar error description:
avoid thread group avoid using threadgroup; although intended used in threaded environment contains methods not thread safe.
this known issue relating underlying analyzer pmd : http://jira.codehaus.org/browse/sonarpmd-5
as per bug report, bug should prepare if utilize latest version of sonar-pmd plugin (2.2 of writing) relies on pmd 5.1.1
sonarqube illegalargumentexception threadgroup
No comments:
Post a Comment