{"action":"opened","number":12,"pull_request":{"url":"https://api.github.com/repos/opprop/generic-type-inference-solver/pulls/12","id":94258987,"html_url":"https://github.com/opprop/generic-type-inference-solver/pull/12","diff_url":"https://github.com/opprop/generic-type-inference-solver/pull/12.diff","patch_url":"https://github.com/opprop/generic-type-inference-solver/pull/12.patch","issue_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/issues/12","number":12,"state":"open","locked":false,"title":"using finally block to avoid losing statistic when exception happens","user":{"login":"CharlesZ-Chen","id":7701109,"avatar_url":"https://avatars.githubusercontent.com/u/7701109?v=3","gravatar_id":"","url":"https://api.github.com/users/CharlesZ-Chen","html_url":"https://github.com/CharlesZ-Chen","followers_url":"https://api.github.com/users/CharlesZ-Chen/followers","following_url":"https://api.github.com/users/CharlesZ-Chen/following{/other_user}","gists_url":"https://api.github.com/users/CharlesZ-Chen/gists{/gist_id}","starred_url":"https://api.github.com/users/CharlesZ-Chen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CharlesZ-Chen/subscriptions","organizations_url":"https://api.github.com/users/CharlesZ-Chen/orgs","repos_url":"https://api.github.com/users/CharlesZ-Chen/repos","events_url":"https://api.github.com/users/CharlesZ-Chen/events{/privacy}","received_events_url":"https://api.github.com/users/CharlesZ-Chen/received_events","type":"User","site_admin":false},"body":"Small modification: using try-finally blocks wrap the solving process in `ConstraintSolver#solve()`, and print statistic in finally block.\r\n\r\nThis would ensure we have the statistic informations even if some exceptions has been thrown during the solving process.","created_at":"2016-11-17T21:54:14Z","updated_at":"2016-11-17T21:54:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/pulls/12/commits","review_comments_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/pulls/12/comments","review_comment_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/pulls/comments{/number}","comments_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/issues/12/comments","statuses_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/statuses/a6306fb54aca8ebfddc78ae76e76ba89f3846d1c","head":{"label":"opprop:opprop-statistic","ref":"opprop-statistic","sha":"a6306fb54aca8ebfddc78ae76e76ba89f3846d1c","user":{"login":"opprop","id":20308424,"avatar_url":"https://avatars.githubusercontent.com/u/20308424?v=3","gravatar_id":"","url":"https://api.github.com/users/opprop","html_url":"https://github.com/opprop","followers_url":"https://api.github.com/users/opprop/followers","following_url":"https://api.github.com/users/opprop/following{/other_user}","gists_url":"https://api.github.com/users/opprop/gists{/gist_id}","starred_url":"https://api.github.com/users/opprop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opprop/subscriptions","organizations_url":"https://api.github.com/users/opprop/orgs","repos_url":"https://api.github.com/users/opprop/repos","events_url":"https://api.github.com/users/opprop/events{/privacy}","received_events_url":"https://api.github.com/users/opprop/received_events","type":"Organization","site_admin":false},"repo":{"id":62673420,"name":"generic-type-inference-solver","full_name":"opprop/generic-type-inference-solver","owner":{"login":"opprop","id":20308424,"avatar_url":"https://avatars.githubusercontent.com/u/20308424?v=3","gravatar_id":"","url":"https://api.github.com/users/opprop","html_url":"https://github.com/opprop","followers_url":"https://api.github.com/users/opprop/followers","following_url":"https://api.github.com/users/opprop/following{/other_user}","gists_url":"https://api.github.com/users/opprop/gists{/gist_id}","starred_url":"https://api.github.com/users/opprop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opprop/subscriptions","organizations_url":"https://api.github.com/users/opprop/orgs","repos_url":"https://api.github.com/users/opprop/repos","events_url":"https://api.github.com/users/opprop/events{/privacy}","received_events_url":"https://api.github.com/users/opprop/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/opprop/generic-type-inference-solver","description":null,"fork":true,"url":"https://api.github.com/repos/opprop/generic-type-inference-solver","forks_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/forks","keys_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/teams","hooks_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/hooks","issue_events_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/issues/events{/number}","events_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/events","assignees_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/assignees{/user}","branches_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/branches{/branch}","tags_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/tags","blobs_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/git/refs{/sha}","trees_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/statuses/{sha}","languages_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/languages","stargazers_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/stargazers","contributors_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/contributors","subscribers_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/subscribers","subscription_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/subscription","commits_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/commits{/sha}","git_commits_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/git/commits{/sha}","comments_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/comments{/number}","issue_comment_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/issues/comments{/number}","contents_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/contents/{+path}","compare_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/merges","archive_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/downloads","issues_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/issues{/number}","pulls_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/pulls{/number}","milestones_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/milestones{/number}","notifications_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/labels{/name}","releases_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/releases{/id}","deployments_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/deployments","created_at":"2016-07-05T22:19:57Z","updated_at":"2016-11-10T18:33:23Z","pushed_at":"2016-11-17T21:54:14Z","git_url":"git://github.com/opprop/generic-type-inference-solver.git","ssh_url":"git@github.com:opprop/generic-type-inference-solver.git","clone_url":"https://github.com/opprop/generic-type-inference-solver.git","svn_url":"https://github.com/opprop/generic-type-inference-solver","homepage":null,"size":669,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"opprop:master","ref":"master","sha":"df004b908f4d74a4f65fb2777b3f7b96b9e1aa95","user":{"login":"opprop","id":20308424,"avatar_url":"https://avatars.githubusercontent.com/u/20308424?v=3","gravatar_id":"","url":"https://api.github.com/users/opprop","html_url":"https://github.com/opprop","followers_url":"https://api.github.com/users/opprop/followers","following_url":"https://api.github.com/users/opprop/following{/other_user}","gists_url":"https://api.github.com/users/opprop/gists{/gist_id}","starred_url":"https://api.github.com/users/opprop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opprop/subscriptions","organizations_url":"https://api.github.com/users/opprop/orgs","repos_url":"https://api.github.com/users/opprop/repos","events_url":"https://api.github.com/users/opprop/events{/privacy}","received_events_url":"https://api.github.com/users/opprop/received_events","type":"Organization","site_admin":false},"repo":{"id":62673420,"name":"generic-type-inference-solver","full_name":"opprop/generic-type-inference-solver","owner":{"login":"opprop","id":20308424,"avatar_url":"https://avatars.githubusercontent.com/u/20308424?v=3","gravatar_id":"","url":"https://api.github.com/users/opprop","html_url":"https://github.com/opprop","followers_url":"https://api.github.com/users/opprop/followers","following_url":"https://api.github.com/users/opprop/following{/other_user}","gists_url":"https://api.github.com/users/opprop/gists{/gist_id}","starred_url":"https://api.github.com/users/opprop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opprop/subscriptions","organizations_url":"https://api.github.com/users/opprop/orgs","repos_url":"https://api.github.com/users/opprop/repos","events_url":"https://api.github.com/users/opprop/events{/privacy}","received_events_url":"https://api.github.com/users/opprop/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/opprop/generic-type-inference-solver","description":null,"fork":true,"url":"https://api.github.com/repos/opprop/generic-type-inference-solver","forks_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/forks","keys_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/teams","hooks_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/hooks","issue_events_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/issues/events{/number}","events_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/events","assignees_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/assignees{/user}","branches_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/branches{/branch}","tags_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/tags","blobs_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/git/refs{/sha}","trees_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/statuses/{sha}","languages_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/languages","stargazers_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/stargazers","contributors_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/contributors","subscribers_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/subscribers","subscription_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/subscription","commits_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/commits{/sha}","git_commits_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/git/commits{/sha}","comments_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/comments{/number}","issue_comment_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/issues/comments{/number}","contents_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/contents/{+path}","compare_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/merges","archive_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/downloads","issues_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/issues{/number}","pulls_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/pulls{/number}","milestones_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/milestones{/number}","notifications_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/labels{/name}","releases_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/releases{/id}","deployments_url":"https://api.github.com/repos/opprop/generic-type-inference-solver/deployments","created_at":"2016-07-05T22:19:57Z","updated_at":"2016-11-10T18:33:23Z","pushed_at":"2016-11-17T21:54:14Z","git_url":"git://github.com/opprop/generic-type-inference-solver.git","ssh_url":"git@github.com:opprop/generic-type-inference-solver.git","clone_url":"https://github.com/opprop/generic-type-inference-solver.git","svn_url":"https://github.com/opprop/generic-type-inference-solver","homepage":null,"size":669,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/opprop/generic-type-inference-solver/pulls/12"},"html":{"href":"https://github.com/opprop/generic-type-inference-solver/pull/12"},"issue":{"href":"https://api.github.com/repos/opprop/generic-type-inference-solver/issues/12"},"comments":{"href":"https://api.github.com/repos/opprop/generic-type-inference-solver/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/opprop/generic-type-inference-solver/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/opprop/generic-type-inference-solver/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/opprop/generic-type-inference-solver/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/opprop/generic-type-inference-solver/statuses/a6306fb54aca8ebfddc78ae76e76ba89f3846d1c"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":30,"deletions":23,"changed_files":1}}
{"actor":{"display_login":"CharlesZ-Chen"}}