{"action":"created","issue":{"url":"https://api.github.com/repos/teamed/qulice/issues/724","repository_url":"https://api.github.com/repos/teamed/qulice","labels_url":"https://api.github.com/repos/teamed/qulice/issues/724/labels{/name}","comments_url":"https://api.github.com/repos/teamed/qulice/issues/724/comments","events_url":"https://api.github.com/repos/teamed/qulice/issues/724/events","html_url":"https://github.com/teamed/qulice/issues/724","id":135082285,"number":724,"title":"Allow public nonstatic methods without references to this object","user":{"login":"vkuchyn","id":3267621,"avatar_url":"https://avatars.githubusercontent.com/u/3267621?v=3","gravatar_id":"","url":"https://api.github.com/users/vkuchyn","html_url":"https://github.com/vkuchyn","followers_url":"https://api.github.com/users/vkuchyn/followers","following_url":"https://api.github.com/users/vkuchyn/following{/other_user}","gists_url":"https://api.github.com/users/vkuchyn/gists{/gist_id}","starred_url":"https://api.github.com/users/vkuchyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkuchyn/subscriptions","organizations_url":"https://api.github.com/users/vkuchyn/orgs","repos_url":"https://api.github.com/users/vkuchyn/repos","events_url":"https://api.github.com/users/vkuchyn/events{/privacy}","received_events_url":"https://api.github.com/users/vkuchyn/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-20T14:38:11Z","updated_at":"2016-03-02T15:50:51Z","closed_at":"2016-03-02T15:50:51Z","body":"In task #659 a new rule was added to prohibit public static methods.\r\nFrom other side in checkstyle rules we have NonStaticMethod that requires make method static if there are no references to this object. \r\nThis is conflict of rules and may confuse developer. \r\nMy proposition - modify NonStaticMethodCheck class to allow non static public methods if method has no references to this object. \r\nExample:\r\nValid \r\n`public int sum(int a, int b) {\r\n    return a + b;\r\n }`\r\n\r\nNot valid - required to be static\r\n`protected int sum(int a, int b) {\r\n    return a + b;\r\n }`"},"comment":{"url":"https://api.github.com/repos/teamed/qulice/issues/comments/191297278","html_url":"https://github.com/teamed/qulice/issues/724#issuecomment-191297278","issue_url":"https://api.github.com/repos/teamed/qulice/issues/724","id":191297278,"user":{"login":"vkuchyn","id":3267621,"avatar_url":"https://avatars.githubusercontent.com/u/3267621?v=3","gravatar_id":"","url":"https://api.github.com/users/vkuchyn","html_url":"https://github.com/vkuchyn","followers_url":"https://api.github.com/users/vkuchyn/followers","following_url":"https://api.github.com/users/vkuchyn/following{/other_user}","gists_url":"https://api.github.com/users/vkuchyn/gists{/gist_id}","starred_url":"https://api.github.com/users/vkuchyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkuchyn/subscriptions","organizations_url":"https://api.github.com/users/vkuchyn/orgs","repos_url":"https://api.github.com/users/vkuchyn/repos","events_url":"https://api.github.com/users/vkuchyn/events{/privacy}","received_events_url":"https://api.github.com/users/vkuchyn/received_events","type":"User","site_admin":false},"created_at":"2016-03-02T15:50:51Z","updated_at":"2016-03-02T15:50:51Z","body":"@krzyk thanks, seems it is good point"}}