{"action":"created","comment":{"url":"https://api.github.com/repos/typetools/checker-framework/pulls/comments/45116235","id":45116235,"diff_hunk":"@@ -0,0 +1,36 @@\n+#!/bin/bash\n+","path":"framework/jaif-inference-scripts/insert-annotations.sh","position":null,"original_position":2,"commit_id":"c341da0918d50cde577f6226dcf830427aae9da0","original_commit_id":"621583e038463228f2908d5d83650b3984f7ab11","user":{"login":"dbrosoft","id":12601251,"avatar_url":"https://avatars.githubusercontent.com/u/12601251?v=3","gravatar_id":"","url":"https://api.github.com/users/dbrosoft","html_url":"https://github.com/dbrosoft","followers_url":"https://api.github.com/users/dbrosoft/followers","following_url":"https://api.github.com/users/dbrosoft/following{/other_user}","gists_url":"https://api.github.com/users/dbrosoft/gists{/gist_id}","starred_url":"https://api.github.com/users/dbrosoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbrosoft/subscriptions","organizations_url":"https://api.github.com/users/dbrosoft/orgs","repos_url":"https://api.github.com/users/dbrosoft/repos","events_url":"https://api.github.com/users/dbrosoft/events{/privacy}","received_events_url":"https://api.github.com/users/dbrosoft/received_events","type":"User","site_admin":false},"body":"Yes, you can provide an unlimited number of each, in any order you like.","created_at":"2015-11-17T20:32:34Z","updated_at":"2015-11-17T20:32:34Z","html_url":"https://github.com/typetools/checker-framework/pull/477#discussion_r45116235","pull_request_url":"https://api.github.com/repos/typetools/checker-framework/pulls/477","_links":{"self":{"href":"https://api.github.com/repos/typetools/checker-framework/pulls/comments/45116235"},"html":{"href":"https://github.com/typetools/checker-framework/pull/477#discussion_r45116235"},"pull_request":{"href":"https://api.github.com/repos/typetools/checker-framework/pulls/477"}}},"pull_request":{"url":"https://api.github.com/repos/typetools/checker-framework/pulls/477","id":45806315,"html_url":"https://github.com/typetools/checker-framework/pull/477","diff_url":"https://github.com/typetools/checker-framework/pull/477.diff","patch_url":"https://github.com/typetools/checker-framework/pull/477.patch","issue_url":"https://api.github.com/repos/typetools/checker-framework/issues/477","number":477,"state":"open","locked":false,"title":"Whole-program type inference using .jaif files","user":{"login":"pbsf","id":4238254,"avatar_url":"https://avatars.githubusercontent.com/u/4238254?v=3","gravatar_id":"","url":"https://api.github.com/users/pbsf","html_url":"https://github.com/pbsf","followers_url":"https://api.github.com/users/pbsf/followers","following_url":"https://api.github.com/users/pbsf/following{/other_user}","gists_url":"https://api.github.com/users/pbsf/gists{/gist_id}","starred_url":"https://api.github.com/users/pbsf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbsf/subscriptions","organizations_url":"https://api.github.com/users/pbsf/orgs","repos_url":"https://api.github.com/users/pbsf/repos","events_url":"https://api.github.com/users/pbsf/events{/privacy}","received_events_url":"https://api.github.com/users/pbsf/received_events","type":"User","site_admin":false},"body":"Added a behavior to the CFAbstractTransfer that enables a whole-program type inference using .jaif files. \r\nTo enable this feature the argument -auseJaifInference must be passed to javac.\r\n\r\nWith this feature on, method return types and field types are stored in .jaif files. The types in the .jaif files get updated at return statements and assignments. Note that this works for both private and non-private methods and fields.\r\n\r\nAfter generating the .jaif files, the insert-annotations-to-source tool can be used to add annotations to .java files. I created scripts to help with that in framework/jaif-inference-scripts.\r\n\r\nExample of usage:\r\n$CHECKERFRAMEWORK/framework/jaif-inference-scripts/infer-and-annotate.sh org.checkerframework.common.value.ValueChecker $PROJECT_CP $PROJECT_SRC/ $EXTRA_PROCESSOR_ARGS\r\n\r\nTesting done:\r\nant jaif-inference-tests\r\nant javadoc\r\nant dist (Since AFU is now added to the classpath, it made sense to test this.)\r\n","created_at":"2015-09-23T17:19:51Z","updated_at":"2015-11-17T20:32:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"043f52a035b76382d8784b569506d1a091fc25f7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/typetools/checker-framework/pulls/477/commits","review_comments_url":"https://api.github.com/repos/typetools/checker-framework/pulls/477/comments","review_comment_url":"https://api.github.com/repos/typetools/checker-framework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/typetools/checker-framework/issues/477/comments","statuses_url":"https://api.github.com/repos/typetools/checker-framework/statuses/c341da0918d50cde577f6226dcf830427aae9da0","head":{"label":"pbsf:master","ref":"master","sha":"c341da0918d50cde577f6226dcf830427aae9da0","user":{"login":"pbsf","id":4238254,"avatar_url":"https://avatars.githubusercontent.com/u/4238254?v=3","gravatar_id":"","url":"https://api.github.com/users/pbsf","html_url":"https://github.com/pbsf","followers_url":"https://api.github.com/users/pbsf/followers","following_url":"https://api.github.com/users/pbsf/following{/other_user}","gists_url":"https://api.github.com/users/pbsf/gists{/gist_id}","starred_url":"https://api.github.com/users/pbsf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbsf/subscriptions","organizations_url":"https://api.github.com/users/pbsf/orgs","repos_url":"https://api.github.com/users/pbsf/repos","events_url":"https://api.github.com/users/pbsf/events{/privacy}","received_events_url":"https://api.github.com/users/pbsf/received_events","type":"User","site_admin":false},"repo":{"id":42934530,"name":"checker-framework","full_name":"pbsf/checker-framework","owner":{"login":"pbsf","id":4238254,"avatar_url":"https://avatars.githubusercontent.com/u/4238254?v=3","gravatar_id":"","url":"https://api.github.com/users/pbsf","html_url":"https://github.com/pbsf","followers_url":"https://api.github.com/users/pbsf/followers","following_url":"https://api.github.com/users/pbsf/following{/other_user}","gists_url":"https://api.github.com/users/pbsf/gists{/gist_id}","starred_url":"https://api.github.com/users/pbsf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbsf/subscriptions","organizations_url":"https://api.github.com/users/pbsf/orgs","repos_url":"https://api.github.com/users/pbsf/repos","events_url":"https://api.github.com/users/pbsf/events{/privacy}","received_events_url":"https://api.github.com/users/pbsf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pbsf/checker-framework","description":"Pluggable type-checking for Java","fork":true,"url":"https://api.github.com/repos/pbsf/checker-framework","forks_url":"https://api.github.com/repos/pbsf/checker-framework/forks","keys_url":"https://api.github.com/repos/pbsf/checker-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pbsf/checker-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pbsf/checker-framework/teams","hooks_url":"https://api.github.com/repos/pbsf/checker-framework/hooks","issue_events_url":"https://api.github.com/repos/pbsf/checker-framework/issues/events{/number}","events_url":"https://api.github.com/repos/pbsf/checker-framework/events","assignees_url":"https://api.github.com/repos/pbsf/checker-framework/assignees{/user}","branches_url":"https://api.github.com/repos/pbsf/checker-framework/branches{/branch}","tags_url":"https://api.github.com/repos/pbsf/checker-framework/tags","blobs_url":"https://api.github.com/repos/pbsf/checker-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pbsf/checker-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pbsf/checker-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/pbsf/checker-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pbsf/checker-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/pbsf/checker-framework/languages","stargazers_url":"https://api.github.com/repos/pbsf/checker-framework/stargazers","contributors_url":"https://api.github.com/repos/pbsf/checker-framework/contributors","subscribers_url":"https://api.github.com/repos/pbsf/checker-framework/subscribers","subscription_url":"https://api.github.com/repos/pbsf/checker-framework/subscription","commits_url":"https://api.github.com/repos/pbsf/checker-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/pbsf/checker-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/pbsf/checker-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/pbsf/checker-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/pbsf/checker-framework/contents/{+path}","compare_url":"https://api.github.com/repos/pbsf/checker-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pbsf/checker-framework/merges","archive_url":"https://api.github.com/repos/pbsf/checker-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pbsf/checker-framework/downloads","issues_url":"https://api.github.com/repos/pbsf/checker-framework/issues{/number}","pulls_url":"https://api.github.com/repos/pbsf/checker-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/pbsf/checker-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/pbsf/checker-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pbsf/checker-framework/labels{/name}","releases_url":"https://api.github.com/repos/pbsf/checker-framework/releases{/id}","created_at":"2015-09-22T13:12:51Z","updated_at":"2015-09-22T13:13:07Z","pushed_at":"2015-11-17T20:26:37Z","git_url":"git://github.com/pbsf/checker-framework.git","ssh_url":"git@github.com:pbsf/checker-framework.git","clone_url":"https://github.com/pbsf/checker-framework.git","svn_url":"https://github.com/pbsf/checker-framework","homepage":"http://checkerframework.org/","size":164963,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"typetools:master","ref":"master","sha":"aa8beda966c73336048d66f31adfff63d1825be0","user":{"login":"typetools","id":12883499,"avatar_url":"https://avatars.githubusercontent.com/u/12883499?v=3","gravatar_id":"","url":"https://api.github.com/users/typetools","html_url":"https://github.com/typetools","followers_url":"https://api.github.com/users/typetools/followers","following_url":"https://api.github.com/users/typetools/following{/other_user}","gists_url":"https://api.github.com/users/typetools/gists{/gist_id}","starred_url":"https://api.github.com/users/typetools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/typetools/subscriptions","organizations_url":"https://api.github.com/users/typetools/orgs","repos_url":"https://api.github.com/users/typetools/repos","events_url":"https://api.github.com/users/typetools/events{/privacy}","received_events_url":"https://api.github.com/users/typetools/received_events","type":"Organization","site_admin":false},"repo":{"id":38488726,"name":"checker-framework","full_name":"typetools/checker-framework","owner":{"login":"typetools","id":12883499,"avatar_url":"https://avatars.githubusercontent.com/u/12883499?v=3","gravatar_id":"","url":"https://api.github.com/users/typetools","html_url":"https://github.com/typetools","followers_url":"https://api.github.com/users/typetools/followers","following_url":"https://api.github.com/users/typetools/following{/other_user}","gists_url":"https://api.github.com/users/typetools/gists{/gist_id}","starred_url":"https://api.github.com/users/typetools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/typetools/subscriptions","organizations_url":"https://api.github.com/users/typetools/orgs","repos_url":"https://api.github.com/users/typetools/repos","events_url":"https://api.github.com/users/typetools/events{/privacy}","received_events_url":"https://api.github.com/users/typetools/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/typetools/checker-framework","description":"Pluggable type-checking for Java","fork":false,"url":"https://api.github.com/repos/typetools/checker-framework","forks_url":"https://api.github.com/repos/typetools/checker-framework/forks","keys_url":"https://api.github.com/repos/typetools/checker-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/typetools/checker-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/typetools/checker-framework/teams","hooks_url":"https://api.github.com/repos/typetools/checker-framework/hooks","issue_events_url":"https://api.github.com/repos/typetools/checker-framework/issues/events{/number}","events_url":"https://api.github.com/repos/typetools/checker-framework/events","assignees_url":"https://api.github.com/repos/typetools/checker-framework/assignees{/user}","branches_url":"https://api.github.com/repos/typetools/checker-framework/branches{/branch}","tags_url":"https://api.github.com/repos/typetools/checker-framework/tags","blobs_url":"https://api.github.com/repos/typetools/checker-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/typetools/checker-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/typetools/checker-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/typetools/checker-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/typetools/checker-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/typetools/checker-framework/languages","stargazers_url":"https://api.github.com/repos/typetools/checker-framework/stargazers","contributors_url":"https://api.github.com/repos/typetools/checker-framework/contributors","subscribers_url":"https://api.github.com/repos/typetools/checker-framework/subscribers","subscription_url":"https://api.github.com/repos/typetools/checker-framework/subscription","commits_url":"https://api.github.com/repos/typetools/checker-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/typetools/checker-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/typetools/checker-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/typetools/checker-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/typetools/checker-framework/contents/{+path}","compare_url":"https://api.github.com/repos/typetools/checker-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/typetools/checker-framework/merges","archive_url":"https://api.github.com/repos/typetools/checker-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/typetools/checker-framework/downloads","issues_url":"https://api.github.com/repos/typetools/checker-framework/issues{/number}","pulls_url":"https://api.github.com/repos/typetools/checker-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/typetools/checker-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/typetools/checker-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/typetools/checker-framework/labels{/name}","releases_url":"https://api.github.com/repos/typetools/checker-framework/releases{/id}","created_at":"2015-07-03T11:09:17Z","updated_at":"2015-11-17T16:15:08Z","pushed_at":"2015-11-17T20:26:37Z","git_url":"git://github.com/typetools/checker-framework.git","ssh_url":"git@github.com:typetools/checker-framework.git","clone_url":"https://github.com/typetools/checker-framework.git","svn_url":"https://github.com/typetools/checker-framework","homepage":"http://checkerframework.org/","size":167478,"stargazers_count":55,"watchers_count":55,"language":"Java","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":142,"forks":20,"open_issues":142,"watchers":55,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/typetools/checker-framework/pulls/477"},"html":{"href":"https://github.com/typetools/checker-framework/pull/477"},"issue":{"href":"https://api.github.com/repos/typetools/checker-framework/issues/477"},"comments":{"href":"https://api.github.com/repos/typetools/checker-framework/issues/477/comments"},"review_comments":{"href":"https://api.github.com/repos/typetools/checker-framework/pulls/477/comments"},"review_comment":{"href":"https://api.github.com/repos/typetools/checker-framework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/typetools/checker-framework/pulls/477/commits"},"statuses":{"href":"https://api.github.com/repos/typetools/checker-framework/statuses/c341da0918d50cde577f6226dcf830427aae9da0"}}}}