{"action":"created","issue":{"url":"https://api.github.com/repos/pmd/pmd/issues/215","repository_url":"https://api.github.com/repos/pmd/pmd","labels_url":"https://api.github.com/repos/pmd/pmd/issues/215/labels{/name}","comments_url":"https://api.github.com/repos/pmd/pmd/issues/215/comments","events_url":"https://api.github.com/repos/pmd/pmd/issues/215/events","html_url":"https://github.com/pmd/pmd/issues/215","id":203847284,"number":215,"title":"[java] Incorrect RedundantFieldInitializer report for final fields","user":{"login":"SUPERCILEX","id":9490724,"avatar_url":"https://avatars.githubusercontent.com/u/9490724?v=3","gravatar_id":"","url":"https://api.github.com/users/SUPERCILEX","html_url":"https://github.com/SUPERCILEX","followers_url":"https://api.github.com/users/SUPERCILEX/followers","following_url":"https://api.github.com/users/SUPERCILEX/following{/other_user}","gists_url":"https://api.github.com/users/SUPERCILEX/gists{/gist_id}","starred_url":"https://api.github.com/users/SUPERCILEX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SUPERCILEX/subscriptions","organizations_url":"https://api.github.com/users/SUPERCILEX/orgs","repos_url":"https://api.github.com/users/SUPERCILEX/repos","events_url":"https://api.github.com/users/SUPERCILEX/events{/privacy}","received_events_url":"https://api.github.com/users/SUPERCILEX/received_events","type":"User","site_admin":false},"labels":[{"id":9035844,"url":"https://api.github.com/repos/pmd/pmd/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":{"login":"jsotuyod","id":802626,"avatar_url":"https://avatars.githubusercontent.com/u/802626?v=3","gravatar_id":"","url":"https://api.github.com/users/jsotuyod","html_url":"https://github.com/jsotuyod","followers_url":"https://api.github.com/users/jsotuyod/followers","following_url":"https://api.github.com/users/jsotuyod/following{/other_user}","gists_url":"https://api.github.com/users/jsotuyod/gists{/gist_id}","starred_url":"https://api.github.com/users/jsotuyod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsotuyod/subscriptions","organizations_url":"https://api.github.com/users/jsotuyod/orgs","repos_url":"https://api.github.com/users/jsotuyod/repos","events_url":"https://api.github.com/users/jsotuyod/events{/privacy}","received_events_url":"https://api.github.com/users/jsotuyod/received_events","type":"User","site_admin":false},"assignees":[{"login":"jsotuyod","id":802626,"avatar_url":"https://avatars.githubusercontent.com/u/802626?v=3","gravatar_id":"","url":"https://api.github.com/users/jsotuyod","html_url":"https://github.com/jsotuyod","followers_url":"https://api.github.com/users/jsotuyod/followers","following_url":"https://api.github.com/users/jsotuyod/following{/other_user}","gists_url":"https://api.github.com/users/jsotuyod/gists{/gist_id}","starred_url":"https://api.github.com/users/jsotuyod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsotuyod/subscriptions","organizations_url":"https://api.github.com/users/jsotuyod/orgs","repos_url":"https://api.github.com/users/jsotuyod/repos","events_url":"https://api.github.com/users/jsotuyod/events{/privacy}","received_events_url":"https://api.github.com/users/jsotuyod/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/pmd/pmd/milestones/5","html_url":"https://github.com/pmd/pmd/milestone/5","labels_url":"https://api.github.com/repos/pmd/pmd/milestones/5/labels","id":2282659,"number":5,"title":"5.4.5","description":"","creator":{"login":"adangel","id":1573684,"avatar_url":"https://avatars.githubusercontent.com/u/1573684?v=3","gravatar_id":"","url":"https://api.github.com/users/adangel","html_url":"https://github.com/adangel","followers_url":"https://api.github.com/users/adangel/followers","following_url":"https://api.github.com/users/adangel/following{/other_user}","gists_url":"https://api.github.com/users/adangel/gists{/gist_id}","starred_url":"https://api.github.com/users/adangel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adangel/subscriptions","organizations_url":"https://api.github.com/users/adangel/orgs","repos_url":"https://api.github.com/users/adangel/repos","events_url":"https://api.github.com/users/adangel/events{/privacy}","received_events_url":"https://api.github.com/users/adangel/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2017-01-27T16:29:16Z","updated_at":"2017-01-29T06:34:17Z","due_on":"2017-02-25T08:00:00Z","closed_at":null},"comments":1,"created_at":"2017-01-29T03:07:10Z","updated_at":"2017-01-29T06:38:12Z","closed_at":null,"body":"**Rule Set:** `optimizations.html#RedundantFieldInitializer`\r\n\r\n**Description:** PMD incorrectly reports a redundant field initializer for final fields in an interface.\r\n\r\n**Code Sample demonstrating the issue:**\r\n\r\n```java\r\n@IntDef({MetricType.CHECKBOX, MetricType.COUNTER, MetricType.SPINNER, MetricType.NOTE})\r\n@Retention(RetentionPolicy.SOURCE)\r\npublic @interface MetricType {\r\n    int CHECKBOX = 0; // <<<<<<<< incorrectly reported as a redundant field initializer\r\n    int COUNTER = 1;\r\n    int SPINNER = 2;\r\n    int NOTE = 3;\r\n}\r\n```\r\n\r\n**Running PMD through:** Gradle\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/pmd/pmd/issues/comments/275897148","html_url":"https://github.com/pmd/pmd/issues/215#issuecomment-275897148","issue_url":"https://api.github.com/repos/pmd/pmd/issues/215","id":275897148,"user":{"login":"SUPERCILEX","id":9490724,"avatar_url":"https://avatars.githubusercontent.com/u/9490724?v=3","gravatar_id":"","url":"https://api.github.com/users/SUPERCILEX","html_url":"https://github.com/SUPERCILEX","followers_url":"https://api.github.com/users/SUPERCILEX/followers","following_url":"https://api.github.com/users/SUPERCILEX/following{/other_user}","gists_url":"https://api.github.com/users/SUPERCILEX/gists{/gist_id}","starred_url":"https://api.github.com/users/SUPERCILEX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SUPERCILEX/subscriptions","organizations_url":"https://api.github.com/users/SUPERCILEX/orgs","repos_url":"https://api.github.com/users/SUPERCILEX/repos","events_url":"https://api.github.com/users/SUPERCILEX/events{/privacy}","received_events_url":"https://api.github.com/users/SUPERCILEX/received_events","type":"User","site_admin":false},"created_at":"2017-01-29T06:38:12Z","updated_at":"2017-01-29T06:38:12Z","body":"@jsotuyod Awesome!"}}
{"actor":{"display_login":"SUPERCILEX"}}