{"action":"created","issue":{"url":"https://api.github.com/repos/javaparser/javaparser/issues/1461","repository_url":"https://api.github.com/repos/javaparser/javaparser","labels_url":"https://api.github.com/repos/javaparser/javaparser/issues/1461/labels{/name}","comments_url":"https://api.github.com/repos/javaparser/javaparser/issues/1461/comments","events_url":"https://api.github.com/repos/javaparser/javaparser/issues/1461/events","html_url":"https://github.com/javaparser/javaparser/issues/1461","id":303832785,"number":1461,"title":"Wrong indentation when adding a new annotation","user":{"login":"nguyentruongtho","id":1457567,"avatar_url":"https://avatars1.githubusercontent.com/u/1457567?v=4","gravatar_id":"","url":"https://api.github.com/users/nguyentruongtho","html_url":"https://github.com/nguyentruongtho","followers_url":"https://api.github.com/users/nguyentruongtho/followers","following_url":"https://api.github.com/users/nguyentruongtho/following{/other_user}","gists_url":"https://api.github.com/users/nguyentruongtho/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyentruongtho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyentruongtho/subscriptions","organizations_url":"https://api.github.com/users/nguyentruongtho/orgs","repos_url":"https://api.github.com/users/nguyentruongtho/repos","events_url":"https://api.github.com/users/nguyentruongtho/events{/privacy}","received_events_url":"https://api.github.com/users/nguyentruongtho/received_events","type":"User","site_admin":false},"labels":[{"id":182392494,"url":"https://api.github.com/repos/javaparser/javaparser/labels/Bug%20report","name":"Bug report","color":"e11d21","default":false},{"id":553554866,"url":"https://api.github.com/repos/javaparser/javaparser/labels/Lexical%20Preservation","name":"Lexical Preservation","color":"c2e0c6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-09T12:57:21Z","updated_at":"2018-03-09T18:21:58Z","closed_at":null,"author_association":"NONE","body":"I am using java-parser for adding a new annotation:\r\n```\r\nunitTestCase.addSingleMemberAnnotation(\r\n                    IGNORE_ANNOTATION,\r\n                    new StringLiteralExpr(\"flaky test\"))\r\n```\r\nand I also use `LexicalPreservingPrinter` to preserve the code that doesn't change.\r\n\r\nThis ended up giving me a wrong format code as following:\r\n\r\nbefore:\r\n``` \r\n  @Test\r\n  public void testCase() {\r\n...\r\n```\r\n\r\nafter:\r\n``` \r\n  @Test\r\n @org.junit.Ignore(\"flaky test\")\r\n public void testCase() {\r\n...\r\n```\r\n\r\nexpect:\r\n``` \r\n  @Test\r\n  @org.junit.Ignore(\"flaky test\")\r\n  public void testCase() {\r\n...\r\n```\r\n\r\nJavaparser version: `3.5.12`"},"comment":{"url":"https://api.github.com/repos/javaparser/javaparser/issues/comments/371901318","html_url":"https://github.com/javaparser/javaparser/issues/1461#issuecomment-371901318","issue_url":"https://api.github.com/repos/javaparser/javaparser/issues/1461","id":371901318,"user":{"login":"matozoid","id":55701,"avatar_url":"https://avatars3.githubusercontent.com/u/55701?v=4","gravatar_id":"","url":"https://api.github.com/users/matozoid","html_url":"https://github.com/matozoid","followers_url":"https://api.github.com/users/matozoid/followers","following_url":"https://api.github.com/users/matozoid/following{/other_user}","gists_url":"https://api.github.com/users/matozoid/gists{/gist_id}","starred_url":"https://api.github.com/users/matozoid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matozoid/subscriptions","organizations_url":"https://api.github.com/users/matozoid/orgs","repos_url":"https://api.github.com/users/matozoid/repos","events_url":"https://api.github.com/users/matozoid/events{/privacy}","received_events_url":"https://api.github.com/users/matozoid/received_events","type":"User","site_admin":false},"created_at":"2018-03-09T18:21:58Z","updated_at":"2018-03-09T18:21:58Z","author_association":"OWNER","body":"Interesting!"}}
{"actor":{"display_login":"matozoid"}}