{"action":"created","comment":{"url":"https://api.github.com/repos/square/javapoet/pulls/comments/25302952","id":25302952,"diff_hunk":"@@ -234,6 +242,10 @@ void emit(CodeWriter codeWriter, String enumName, Set<Modifier> implicitModifier\n     }\n   }\n \n+  public boolean isAnnotationDeclaration() {","path":"src/main/java/com/squareup/javapoet/TypeSpec.java","position":null,"original_position":28,"commit_id":"4fc892ca820e1fc1ad6291cab2640615472f3614","original_commit_id":"db97b7edb5a977464af1b2b067d476da239547eb","user":{"login":"swankjesse","id":133019,"avatar_url":"https://avatars.githubusercontent.com/u/133019?v=3","gravatar_id":"","url":"https://api.github.com/users/swankjesse","html_url":"https://github.com/swankjesse","followers_url":"https://api.github.com/users/swankjesse/followers","following_url":"https://api.github.com/users/swankjesse/following{/other_user}","gists_url":"https://api.github.com/users/swankjesse/gists{/gist_id}","starred_url":"https://api.github.com/users/swankjesse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swankjesse/subscriptions","organizations_url":"https://api.github.com/users/swankjesse/orgs","repos_url":"https://api.github.com/users/swankjesse/repos","events_url":"https://api.github.com/users/swankjesse/events{/privacy}","received_events_url":"https://api.github.com/users/swankjesse/received_events","type":"User","site_admin":false},"body":"We might as well just make it public. This API doesn't try very hard to encapsulate things.","created_at":"2015-02-24T23:06:46Z","updated_at":"2015-02-24T23:06:46Z","html_url":"https://github.com/square/javapoet/pull/233#discussion_r25302952","pull_request_url":"https://api.github.com/repos/square/javapoet/pulls/233","_links":{"self":{"href":"https://api.github.com/repos/square/javapoet/pulls/comments/25302952"},"html":{"href":"https://github.com/square/javapoet/pull/233#discussion_r25302952"},"pull_request":{"href":"https://api.github.com/repos/square/javapoet/pulls/233"}}},"pull_request":{"url":"https://api.github.com/repos/square/javapoet/pulls/233","id":29903221,"html_url":"https://github.com/square/javapoet/pull/233","diff_url":"https://github.com/square/javapoet/pull/233.diff","patch_url":"https://github.com/square/javapoet/pull/233.patch","issue_url":"https://api.github.com/repos/square/javapoet/issues/233","number":233,"state":"open","locked":false,"title":"Creates annotation type from TypeSpec.","user":{"login":"GerardPaligot","id":1913901,"avatar_url":"https://avatars.githubusercontent.com/u/1913901?v=3","gravatar_id":"","url":"https://api.github.com/users/GerardPaligot","html_url":"https://github.com/GerardPaligot","followers_url":"https://api.github.com/users/GerardPaligot/followers","following_url":"https://api.github.com/users/GerardPaligot/following{/other_user}","gists_url":"https://api.github.com/users/GerardPaligot/gists{/gist_id}","starred_url":"https://api.github.com/users/GerardPaligot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GerardPaligot/subscriptions","organizations_url":"https://api.github.com/users/GerardPaligot/orgs","repos_url":"https://api.github.com/users/GerardPaligot/repos","events_url":"https://api.github.com/users/GerardPaligot/events{/privacy}","received_events_url":"https://api.github.com/users/GerardPaligot/received_events","type":"User","site_admin":false},"body":"Adds a new Kind in TypeSpec to represent an annotation and adds an initializer in MethodSpec used to initialize methods of annotation type.\r\n\r\nCloses #232","created_at":"2015-02-24T14:51:40Z","updated_at":"2015-02-24T23:06:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2dbe411501d63dc828b26c57b30210620354a4cf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/square/javapoet/pulls/233/commits","review_comments_url":"https://api.github.com/repos/square/javapoet/pulls/233/comments","review_comment_url":"https://api.github.com/repos/square/javapoet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/square/javapoet/issues/233/comments","statuses_url":"https://api.github.com/repos/square/javapoet/statuses/4fc892ca820e1fc1ad6291cab2640615472f3614","head":{"label":"GerardPaligot:fix_232","ref":"fix_232","sha":"4fc892ca820e1fc1ad6291cab2640615472f3614","user":{"login":"GerardPaligot","id":1913901,"avatar_url":"https://avatars.githubusercontent.com/u/1913901?v=3","gravatar_id":"","url":"https://api.github.com/users/GerardPaligot","html_url":"https://github.com/GerardPaligot","followers_url":"https://api.github.com/users/GerardPaligot/followers","following_url":"https://api.github.com/users/GerardPaligot/following{/other_user}","gists_url":"https://api.github.com/users/GerardPaligot/gists{/gist_id}","starred_url":"https://api.github.com/users/GerardPaligot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GerardPaligot/subscriptions","organizations_url":"https://api.github.com/users/GerardPaligot/orgs","repos_url":"https://api.github.com/users/GerardPaligot/repos","events_url":"https://api.github.com/users/GerardPaligot/events{/privacy}","received_events_url":"https://api.github.com/users/GerardPaligot/received_events","type":"User","site_admin":false},"repo":{"id":31260822,"name":"javapoet","full_name":"GerardPaligot/javapoet","owner":{"login":"GerardPaligot","id":1913901,"avatar_url":"https://avatars.githubusercontent.com/u/1913901?v=3","gravatar_id":"","url":"https://api.github.com/users/GerardPaligot","html_url":"https://github.com/GerardPaligot","followers_url":"https://api.github.com/users/GerardPaligot/followers","following_url":"https://api.github.com/users/GerardPaligot/following{/other_user}","gists_url":"https://api.github.com/users/GerardPaligot/gists{/gist_id}","starred_url":"https://api.github.com/users/GerardPaligot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GerardPaligot/subscriptions","organizations_url":"https://api.github.com/users/GerardPaligot/orgs","repos_url":"https://api.github.com/users/GerardPaligot/repos","events_url":"https://api.github.com/users/GerardPaligot/events{/privacy}","received_events_url":"https://api.github.com/users/GerardPaligot/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GerardPaligot/javapoet","description":"A Java API for generating .java source files.","fork":true,"url":"https://api.github.com/repos/GerardPaligot/javapoet","forks_url":"https://api.github.com/repos/GerardPaligot/javapoet/forks","keys_url":"https://api.github.com/repos/GerardPaligot/javapoet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GerardPaligot/javapoet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GerardPaligot/javapoet/teams","hooks_url":"https://api.github.com/repos/GerardPaligot/javapoet/hooks","issue_events_url":"https://api.github.com/repos/GerardPaligot/javapoet/issues/events{/number}","events_url":"https://api.github.com/repos/GerardPaligot/javapoet/events","assignees_url":"https://api.github.com/repos/GerardPaligot/javapoet/assignees{/user}","branches_url":"https://api.github.com/repos/GerardPaligot/javapoet/branches{/branch}","tags_url":"https://api.github.com/repos/GerardPaligot/javapoet/tags","blobs_url":"https://api.github.com/repos/GerardPaligot/javapoet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GerardPaligot/javapoet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GerardPaligot/javapoet/git/refs{/sha}","trees_url":"https://api.github.com/repos/GerardPaligot/javapoet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GerardPaligot/javapoet/statuses/{sha}","languages_url":"https://api.github.com/repos/GerardPaligot/javapoet/languages","stargazers_url":"https://api.github.com/repos/GerardPaligot/javapoet/stargazers","contributors_url":"https://api.github.com/repos/GerardPaligot/javapoet/contributors","subscribers_url":"https://api.github.com/repos/GerardPaligot/javapoet/subscribers","subscription_url":"https://api.github.com/repos/GerardPaligot/javapoet/subscription","commits_url":"https://api.github.com/repos/GerardPaligot/javapoet/commits{/sha}","git_commits_url":"https://api.github.com/repos/GerardPaligot/javapoet/git/commits{/sha}","comments_url":"https://api.github.com/repos/GerardPaligot/javapoet/comments{/number}","issue_comment_url":"https://api.github.com/repos/GerardPaligot/javapoet/issues/comments{/number}","contents_url":"https://api.github.com/repos/GerardPaligot/javapoet/contents/{+path}","compare_url":"https://api.github.com/repos/GerardPaligot/javapoet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GerardPaligot/javapoet/merges","archive_url":"https://api.github.com/repos/GerardPaligot/javapoet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GerardPaligot/javapoet/downloads","issues_url":"https://api.github.com/repos/GerardPaligot/javapoet/issues{/number}","pulls_url":"https://api.github.com/repos/GerardPaligot/javapoet/pulls{/number}","milestones_url":"https://api.github.com/repos/GerardPaligot/javapoet/milestones{/number}","notifications_url":"https://api.github.com/repos/GerardPaligot/javapoet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GerardPaligot/javapoet/labels{/name}","releases_url":"https://api.github.com/repos/GerardPaligot/javapoet/releases{/id}","created_at":"2015-02-24T13:18:08Z","updated_at":"2015-02-24T13:18:09Z","pushed_at":"2015-02-24T20:40:18Z","git_url":"git://github.com/GerardPaligot/javapoet.git","ssh_url":"git@github.com:GerardPaligot/javapoet.git","clone_url":"https://github.com/GerardPaligot/javapoet.git","svn_url":"https://github.com/GerardPaligot/javapoet","homepage":"","size":3922,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"square:master","ref":"master","sha":"4e9ad1ea4f3aeeb8cb4201161b9673302fec4c9e","user":{"login":"square","id":82592,"avatar_url":"https://avatars.githubusercontent.com/u/82592?v=3","gravatar_id":"","url":"https://api.github.com/users/square","html_url":"https://github.com/square","followers_url":"https://api.github.com/users/square/followers","following_url":"https://api.github.com/users/square/following{/other_user}","gists_url":"https://api.github.com/users/square/gists{/gist_id}","starred_url":"https://api.github.com/users/square/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/square/subscriptions","organizations_url":"https://api.github.com/users/square/orgs","repos_url":"https://api.github.com/users/square/repos","events_url":"https://api.github.com/users/square/events{/privacy}","received_events_url":"https://api.github.com/users/square/received_events","type":"Organization","site_admin":false},"repo":{"id":7961991,"name":"javapoet","full_name":"square/javapoet","owner":{"login":"square","id":82592,"avatar_url":"https://avatars.githubusercontent.com/u/82592?v=3","gravatar_id":"","url":"https://api.github.com/users/square","html_url":"https://github.com/square","followers_url":"https://api.github.com/users/square/followers","following_url":"https://api.github.com/users/square/following{/other_user}","gists_url":"https://api.github.com/users/square/gists{/gist_id}","starred_url":"https://api.github.com/users/square/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/square/subscriptions","organizations_url":"https://api.github.com/users/square/orgs","repos_url":"https://api.github.com/users/square/repos","events_url":"https://api.github.com/users/square/events{/privacy}","received_events_url":"https://api.github.com/users/square/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/square/javapoet","description":"A Java API for generating .java source files.","fork":false,"url":"https://api.github.com/repos/square/javapoet","forks_url":"https://api.github.com/repos/square/javapoet/forks","keys_url":"https://api.github.com/repos/square/javapoet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/square/javapoet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/square/javapoet/teams","hooks_url":"https://api.github.com/repos/square/javapoet/hooks","issue_events_url":"https://api.github.com/repos/square/javapoet/issues/events{/number}","events_url":"https://api.github.com/repos/square/javapoet/events","assignees_url":"https://api.github.com/repos/square/javapoet/assignees{/user}","branches_url":"https://api.github.com/repos/square/javapoet/branches{/branch}","tags_url":"https://api.github.com/repos/square/javapoet/tags","blobs_url":"https://api.github.com/repos/square/javapoet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/square/javapoet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/square/javapoet/git/refs{/sha}","trees_url":"https://api.github.com/repos/square/javapoet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/square/javapoet/statuses/{sha}","languages_url":"https://api.github.com/repos/square/javapoet/languages","stargazers_url":"https://api.github.com/repos/square/javapoet/stargazers","contributors_url":"https://api.github.com/repos/square/javapoet/contributors","subscribers_url":"https://api.github.com/repos/square/javapoet/subscribers","subscription_url":"https://api.github.com/repos/square/javapoet/subscription","commits_url":"https://api.github.com/repos/square/javapoet/commits{/sha}","git_commits_url":"https://api.github.com/repos/square/javapoet/git/commits{/sha}","comments_url":"https://api.github.com/repos/square/javapoet/comments{/number}","issue_comment_url":"https://api.github.com/repos/square/javapoet/issues/comments{/number}","contents_url":"https://api.github.com/repos/square/javapoet/contents/{+path}","compare_url":"https://api.github.com/repos/square/javapoet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/square/javapoet/merges","archive_url":"https://api.github.com/repos/square/javapoet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/square/javapoet/downloads","issues_url":"https://api.github.com/repos/square/javapoet/issues{/number}","pulls_url":"https://api.github.com/repos/square/javapoet/pulls{/number}","milestones_url":"https://api.github.com/repos/square/javapoet/milestones{/number}","notifications_url":"https://api.github.com/repos/square/javapoet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/square/javapoet/labels{/name}","releases_url":"https://api.github.com/repos/square/javapoet/releases{/id}","created_at":"2013-02-01T16:56:30Z","updated_at":"2015-02-24T18:37:12Z","pushed_at":"2015-02-24T00:16:42Z","git_url":"git://github.com/square/javapoet.git","ssh_url":"git@github.com:square/javapoet.git","clone_url":"https://github.com/square/javapoet.git","svn_url":"https://github.com/square/javapoet","homepage":"","size":3922,"stargazers_count":756,"watchers_count":756,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":126,"mirror_url":null,"open_issues_count":8,"forks":126,"open_issues":8,"watchers":756,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/square/javapoet/pulls/233"},"html":{"href":"https://github.com/square/javapoet/pull/233"},"issue":{"href":"https://api.github.com/repos/square/javapoet/issues/233"},"comments":{"href":"https://api.github.com/repos/square/javapoet/issues/233/comments"},"review_comments":{"href":"https://api.github.com/repos/square/javapoet/pulls/233/comments"},"review_comment":{"href":"https://api.github.com/repos/square/javapoet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/square/javapoet/pulls/233/commits"},"statuses":{"href":"https://api.github.com/repos/square/javapoet/statuses/4fc892ca820e1fc1ad6291cab2640615472f3614"}}}}