{"action":"created","issue":{"url":"https://api.github.com/repos/checkstyle/checkstyle/issues/1743","labels_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/1743/labels{/name}","comments_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/1743/comments","events_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/1743/events","html_url":"https://github.com/checkstyle/checkstyle/pull/1743","id":101418840,"number":1743,"title":"Issue #1243: SuppressWarnings(deprecated) has been removed","user":{"login":"baratali","id":3431491,"avatar_url":"https://avatars.githubusercontent.com/u/3431491?v=3","gravatar_id":"","url":"https://api.github.com/users/baratali","html_url":"https://github.com/baratali","followers_url":"https://api.github.com/users/baratali/followers","following_url":"https://api.github.com/users/baratali/following{/other_user}","gists_url":"https://api.github.com/users/baratali/gists{/gist_id}","starred_url":"https://api.github.com/users/baratali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baratali/subscriptions","organizations_url":"https://api.github.com/users/baratali/orgs","repos_url":"https://api.github.com/users/baratali/repos","events_url":"https://api.github.com/users/baratali/events{/privacy}","received_events_url":"https://api.github.com/users/baratali/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-17T13:17:36Z","updated_at":"2015-08-18T08:02:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/checkstyle/checkstyle/pulls/1743","html_url":"https://github.com/checkstyle/checkstyle/pull/1743","diff_url":"https://github.com/checkstyle/checkstyle/pull/1743.diff","patch_url":"https://github.com/checkstyle/checkstyle/pull/1743.patch"},"body":"This Eclipse violation actually is not false-positive. JDK compiler doesn't warns inner class that uses outer deprecated class.\r\n**Example:**\r\n*File1:*\r\n```java\r\n@Deprecated\r\npublic class MyDeprecated{\r\n\tclass AA {\r\n\t\tMyDeprecated a = new MyDeprecated();\r\n\t}\r\n}\r\n```\r\n*File 2:*\r\n```java\r\npublic class B {\r\n\tclass BB {\r\n\t\tMyDeprecated a = new MyDeprecated();\r\n\t}\r\n}\r\n```\r\n*Compiler output:*\r\n```\r\nbizmailov@bizmailov-VirtualBox:~/test$ javac MyDeprecated.java -Xlint:deprecation\r\nbizmailov@bizmailov-VirtualBox:~/test$ javac B.java -Xlint:deprecation\r\nB.java:3: warning: [deprecation] MyDeprecated in unnamed package has been deprecated\r\n\t\tMyDeprecated a = new MyDeprecated();\r\n\t\t^\r\nB.java:3: warning: [deprecation] MyDeprecated in unnamed package has been deprecated\r\n\t\tMyDeprecated a = new MyDeprecated();\r\n\t\t                     ^\r\n2 warnings\r\nbizmailov@bizmailov-VirtualBox:~/test$ \r\n```\r\n\r\nAs we can see, there are warnings only in second file.\r\n\r\nReported bug about similar situation: https://bugs.eclipse.org/bugs/show_bug.cgi?id=376425\r\n"},"comment":{"url":"https://api.github.com/repos/checkstyle/checkstyle/issues/comments/132112944","html_url":"https://github.com/checkstyle/checkstyle/pull/1743#issuecomment-132112944","issue_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/1743","id":132112944,"user":{"login":"rdiachenko","id":875939,"avatar_url":"https://avatars.githubusercontent.com/u/875939?v=3","gravatar_id":"","url":"https://api.github.com/users/rdiachenko","html_url":"https://github.com/rdiachenko","followers_url":"https://api.github.com/users/rdiachenko/followers","following_url":"https://api.github.com/users/rdiachenko/following{/other_user}","gists_url":"https://api.github.com/users/rdiachenko/gists{/gist_id}","starred_url":"https://api.github.com/users/rdiachenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdiachenko/subscriptions","organizations_url":"https://api.github.com/users/rdiachenko/orgs","repos_url":"https://api.github.com/users/rdiachenko/repos","events_url":"https://api.github.com/users/rdiachenko/events{/privacy}","received_events_url":"https://api.github.com/users/rdiachenko/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T08:02:57Z","updated_at":"2015-08-18T08:02:57Z","body":"As for me we should go along with the compiler. Idea and Eclipse are not the only ones IDEs which are used for development. I'm for leaving the warning in Idea as it is specific only for Idea."}}