{"action":"opened","issue":{"url":"https://api.github.com/repos/fxleyu/west-world/issues/49","repository_url":"https://api.github.com/repos/fxleyu/west-world","labels_url":"https://api.github.com/repos/fxleyu/west-world/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/fxleyu/west-world/issues/49/comments","events_url":"https://api.github.com/repos/fxleyu/west-world/issues/49/events","html_url":"https://github.com/fxleyu/west-world/issues/49","id":338906823,"node_id":"MDU6SXNzdWUzMzg5MDY4MjM=","number":49,"title":"[阅读笔记][EJ] 第 2 章 创建和销毁对象","user":{"login":"fxleyu","id":3362121,"node_id":"MDQ6VXNlcjMzNjIxMjE=","avatar_url":"https://avatars1.githubusercontent.com/u/3362121?v=4","gravatar_id":"","url":"https://api.github.com/users/fxleyu","html_url":"https://github.com/fxleyu","followers_url":"https://api.github.com/users/fxleyu/followers","following_url":"https://api.github.com/users/fxleyu/following{/other_user}","gists_url":"https://api.github.com/users/fxleyu/gists{/gist_id}","starred_url":"https://api.github.com/users/fxleyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxleyu/subscriptions","organizations_url":"https://api.github.com/users/fxleyu/orgs","repos_url":"https://api.github.com/users/fxleyu/repos","events_url":"https://api.github.com/users/fxleyu/events{/privacy}","received_events_url":"https://api.github.com/users/fxleyu/received_events","type":"User","site_admin":false},"labels":[{"id":945250877,"node_id":"MDU6TGFiZWw5NDUyNTA4Nzc=","url":"https://api.github.com/repos/fxleyu/west-world/labels/%E4%B9%A6%E7%B1%8D","name":"书籍","color":"0e8a16","default":false},{"id":945253219,"node_id":"MDU6TGFiZWw5NDUyNTMyMTk=","url":"https://api.github.com/repos/fxleyu/west-world/labels/%E7%AC%94%E8%AE%B0","name":"笔记","color":"c2e0c6","default":false}],"state":"open","locked":false,"assignee":{"login":"fxleyu","id":3362121,"node_id":"MDQ6VXNlcjMzNjIxMjE=","avatar_url":"https://avatars1.githubusercontent.com/u/3362121?v=4","gravatar_id":"","url":"https://api.github.com/users/fxleyu","html_url":"https://github.com/fxleyu","followers_url":"https://api.github.com/users/fxleyu/followers","following_url":"https://api.github.com/users/fxleyu/following{/other_user}","gists_url":"https://api.github.com/users/fxleyu/gists{/gist_id}","starred_url":"https://api.github.com/users/fxleyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxleyu/subscriptions","organizations_url":"https://api.github.com/users/fxleyu/orgs","repos_url":"https://api.github.com/users/fxleyu/repos","events_url":"https://api.github.com/users/fxleyu/events{/privacy}","received_events_url":"https://api.github.com/users/fxleyu/received_events","type":"User","site_admin":false},"assignees":[{"login":"fxleyu","id":3362121,"node_id":"MDQ6VXNlcjMzNjIxMjE=","avatar_url":"https://avatars1.githubusercontent.com/u/3362121?v=4","gravatar_id":"","url":"https://api.github.com/users/fxleyu","html_url":"https://github.com/fxleyu","followers_url":"https://api.github.com/users/fxleyu/followers","following_url":"https://api.github.com/users/fxleyu/following{/other_user}","gists_url":"https://api.github.com/users/fxleyu/gists{/gist_id}","starred_url":"https://api.github.com/users/fxleyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxleyu/subscriptions","organizations_url":"https://api.github.com/users/fxleyu/orgs","repos_url":"https://api.github.com/users/fxleyu/repos","events_url":"https://api.github.com/users/fxleyu/events{/privacy}","received_events_url":"https://api.github.com/users/fxleyu/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-07-06T11:36:56Z","updated_at":"2018-07-06T11:36:56Z","closed_at":null,"author_association":"OWNER","body":"> 来自《Effective Java》 #43  的阅读笔记。\r\n\r\n本章的主题是创建和销毁对象：\r\n- 何时以及如何创建对象\r\n- 何时以及如何避免创建对象\r\n- 如何确保它们能够适时地销毁\r\n- 如何管理对象销毁之前必须进行的各种清理动作\r\n\r\n## 本章目录\r\n- [ ] 第 1 条：考虑用静态工厂方法代替构造器\r\n- [ ] 第 2 条：遇到多个构造器参数时要考虑用构建器\r\n- [ ] 第 3 条：用私有构造器或枚举类型强化 Singleton 属性\r\n- [ ] 第 4 条：通过私有构造器强化不可实例化的能力\r\n- [x] 第 5 条：避免创建不必要的对象\r\n- [ ] 第 6 条：消除过期的对象引用\r\n- [ ] 第 7 条：避免使用终结方法\r\n"}}
{"actor":{"display_login":"fxleyu"}}