{"action":"closed","issue":{"url":"https://api.github.com/repos/playframework/play1/issues/1064","repository_url":"https://api.github.com/repos/playframework/play1","labels_url":"https://api.github.com/repos/playframework/play1/issues/1064/labels{/name}","comments_url":"https://api.github.com/repos/playframework/play1/issues/1064/comments","events_url":"https://api.github.com/repos/playframework/play1/issues/1064/events","html_url":"https://github.com/playframework/play1/issues/1064","id":197624709,"number":1064,"title":"Initialize play static field early","user":{"login":"asolntsev","id":279773,"avatar_url":"https://avatars.githubusercontent.com/u/279773?v=3","gravatar_id":"","url":"https://api.github.com/users/asolntsev","html_url":"https://github.com/asolntsev","followers_url":"https://api.github.com/users/asolntsev/followers","following_url":"https://api.github.com/users/asolntsev/following{/other_user}","gists_url":"https://api.github.com/users/asolntsev/gists{/gist_id}","starred_url":"https://api.github.com/users/asolntsev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asolntsev/subscriptions","organizations_url":"https://api.github.com/users/asolntsev/orgs","repos_url":"https://api.github.com/users/asolntsev/repos","events_url":"https://api.github.com/users/asolntsev/events{/privacy}","received_events_url":"https://api.github.com/users/asolntsev/received_events","type":"User","site_admin":false},"labels":[{"id":392339005,"url":"https://api.github.com/repos/playframework/play1/labels/has-pr","name":"has-pr","color":"D4C5F9","default":false},{"id":392339041,"url":"https://api.github.com/repos/playframework/play1/labels/improvement","name":"improvement","color":"0B02E1","default":false}],"state":"closed","locked":false,"assignee":{"login":"asolntsev","id":279773,"avatar_url":"https://avatars.githubusercontent.com/u/279773?v=3","gravatar_id":"","url":"https://api.github.com/users/asolntsev","html_url":"https://github.com/asolntsev","followers_url":"https://api.github.com/users/asolntsev/followers","following_url":"https://api.github.com/users/asolntsev/following{/other_user}","gists_url":"https://api.github.com/users/asolntsev/gists{/gist_id}","starred_url":"https://api.github.com/users/asolntsev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asolntsev/subscriptions","organizations_url":"https://api.github.com/users/asolntsev/orgs","repos_url":"https://api.github.com/users/asolntsev/repos","events_url":"https://api.github.com/users/asolntsev/events{/privacy}","received_events_url":"https://api.github.com/users/asolntsev/received_events","type":"User","site_admin":false},"assignees":[{"login":"asolntsev","id":279773,"avatar_url":"https://avatars.githubusercontent.com/u/279773?v=3","gravatar_id":"","url":"https://api.github.com/users/asolntsev","html_url":"https://github.com/asolntsev","followers_url":"https://api.github.com/users/asolntsev/followers","following_url":"https://api.github.com/users/asolntsev/following{/other_user}","gists_url":"https://api.github.com/users/asolntsev/gists{/gist_id}","starred_url":"https://api.github.com/users/asolntsev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asolntsev/subscriptions","organizations_url":"https://api.github.com/users/asolntsev/orgs","repos_url":"https://api.github.com/users/asolntsev/repos","events_url":"https://api.github.com/users/asolntsev/events{/privacy}","received_events_url":"https://api.github.com/users/asolntsev/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/playframework/play1/milestones/3","html_url":"https://github.com/playframework/play1/milestone/3","labels_url":"https://api.github.com/repos/playframework/play1/milestones/3/labels","id":1849223,"number":3,"title":"1.4.4","description":null,"creator":{"login":"asolntsev","id":279773,"avatar_url":"https://avatars.githubusercontent.com/u/279773?v=3","gravatar_id":"","url":"https://api.github.com/users/asolntsev","html_url":"https://github.com/asolntsev","followers_url":"https://api.github.com/users/asolntsev/followers","following_url":"https://api.github.com/users/asolntsev/following{/other_user}","gists_url":"https://api.github.com/users/asolntsev/gists{/gist_id}","starred_url":"https://api.github.com/users/asolntsev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asolntsev/subscriptions","organizations_url":"https://api.github.com/users/asolntsev/orgs","repos_url":"https://api.github.com/users/asolntsev/repos","events_url":"https://api.github.com/users/asolntsev/events{/privacy}","received_events_url":"https://api.github.com/users/asolntsev/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":45,"state":"open","created_at":"2016-06-26T23:15:15Z","updated_at":"2016-12-27T02:14:03Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-12-26T22:48:03Z","updated_at":"2016-12-27T02:14:03Z","closed_at":"2016-12-27T02:14:03Z","body":"... to avoid `NullPointerException`s and make writing plain unit-tests easier.\r\n\r\nProblem description: \r\n* Play has lot of `public static` field - first of all, `Play.configuration`\r\n* Many classes do use these `public static` fields\r\n* When writing unit-test or main method, developers always need to write null checks and boilerplate code for Play initialization, e.g.: \r\n`if (Play.configuration == null) Play.coniguration = new Properties();`\r\n\r\nWe want to improve it.\r\nLet's initialize **early** as many Play fields as possible."}}
{"actor":{"display_login":"xael-fry"}}