Sonar Methods should not be empty at the constructor

Ismael G. picture Ismael G. · Sep 16, 2015 · Viewed 19.2k times · Source

I updated my Sonar to Version 5.1.2, and the issue Methods should not be empty appears on this code:

public User() {}

public User (String login) {
   this.login = login;
}

It seems to be a bug. Am I right? Because this didn't happen before.

Answer

Ismael G. picture Ismael G. · Sep 17, 2015

I found this jira, It's a Sonar's Bug.

https://jira.sonarsource.com/browse/SONARJAVA-1138