{"action":"created","issue":{"url":"https://api.github.com/repos/INRIA/spoon/issues/1152","repository_url":"https://api.github.com/repos/INRIA/spoon","labels_url":"https://api.github.com/repos/INRIA/spoon/issues/1152/labels{/name}","comments_url":"https://api.github.com/repos/INRIA/spoon/issues/1152/comments","events_url":"https://api.github.com/repos/INRIA/spoon/issues/1152/events","html_url":"https://github.com/INRIA/spoon/issues/1152","id":203906026,"number":1152,"title":"How could I disable static imports in the v55 output?","user":{"login":"yanOnGithub","id":25423046,"avatar_url":"https://avatars.githubusercontent.com/u/25423046?v=3","gravatar_id":"","url":"https://api.github.com/users/yanOnGithub","html_url":"https://github.com/yanOnGithub","followers_url":"https://api.github.com/users/yanOnGithub/followers","following_url":"https://api.github.com/users/yanOnGithub/following{/other_user}","gists_url":"https://api.github.com/users/yanOnGithub/gists{/gist_id}","starred_url":"https://api.github.com/users/yanOnGithub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanOnGithub/subscriptions","organizations_url":"https://api.github.com/users/yanOnGithub/orgs","repos_url":"https://api.github.com/users/yanOnGithub/repos","events_url":"https://api.github.com/users/yanOnGithub/events{/privacy}","received_events_url":"https://api.github.com/users/yanOnGithub/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-01-29T23:46:06Z","updated_at":"2017-01-30T09:10:41Z","closed_at":null,"body":"I found v53+ are producing static imports.\r\n\r\n```\r\n# input/Constants.java\r\npackage com.company.framework;\r\npublic class Constants {\r\n\tpublic static int READY = 0x1;\r\n\tpublic static int RUNNING = 0x2;\r\n}\r\n\r\n# input/Main.java\r\npackage com.company;\r\nimport com.company.framework.Constants;\r\npublic class Main {\r\n\tpublic static void main(String[] args) throws Exception {\r\n\t\tSystem.out.println(Constants.READY);\r\n\t}\r\n}\r\n\r\n# output/v52/Main.java\r\npackage com.company;\r\nimport com.company.framework.Constants;\r\npublic class Main {\r\n\tpublic static void main(String[] args) throws Exception {\r\n\t\tSystem.out.println(Constants.READY);\r\n\t}\r\n}\r\n\r\n# output/v52/Constants.java\r\npackage com.company;\r\npublic class Constants {\r\n\tpublic static int READY = 1;\r\n\tpublic static int RUNNING = 2;\r\n}\r\n\r\n# output/v55/Main.java\r\npackage com.company;\r\nimport com.company.framework.Constants;\r\nimport static com.company.framework.Constants.READY;\r\nimport static java.lang.System.out;\r\npublic class Main {\r\n\tpublic static void main(String[] args) throws Exception {\r\n\t\tout.println(READY);\r\n\t}\r\n}\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/INRIA/spoon/issues/comments/276011441","html_url":"https://github.com/INRIA/spoon/issues/1152#issuecomment-276011441","issue_url":"https://api.github.com/repos/INRIA/spoon/issues/1152","id":276011441,"user":{"login":"yanOnGithub","id":25423046,"avatar_url":"https://avatars.githubusercontent.com/u/25423046?v=3","gravatar_id":"","url":"https://api.github.com/users/yanOnGithub","html_url":"https://github.com/yanOnGithub","followers_url":"https://api.github.com/users/yanOnGithub/followers","following_url":"https://api.github.com/users/yanOnGithub/following{/other_user}","gists_url":"https://api.github.com/users/yanOnGithub/gists{/gist_id}","starred_url":"https://api.github.com/users/yanOnGithub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanOnGithub/subscriptions","organizations_url":"https://api.github.com/users/yanOnGithub/orgs","repos_url":"https://api.github.com/users/yanOnGithub/repos","events_url":"https://api.github.com/users/yanOnGithub/events{/privacy}","received_events_url":"https://api.github.com/users/yanOnGithub/received_events","type":"User","site_admin":false},"created_at":"2017-01-30T09:10:41Z","updated_at":"2017-01-30T09:10:41Z","body":"Can I have this behavior?\r\n\r\n```\r\n// import doesnt work. should be fully-qualified in the code\r\nimport java.util.Date\r\nimport java.sql.Date\r\nimport com.company.framework1.Constants\r\nimport com.company.framework2.Constants\r\n\r\n// ok, no fully-qualified class names\r\nimport java.util.ArrayList;\r\n\r\n```"}}
{"actor":{"display_login":"yanOnGithub"}}