{"action":"created","comment":{"url":"https://api.github.com/repos/yegor256/takes/pulls/comments/52841501","id":52841501,"diff_hunk":"@@ -44,77 +43,50 @@\n  * AES codec which supports 128 bits key.\n  *\n  * <p>The class is immutable and thread-safe.\n- *\n  * @author Jason Wong (super132j@yahoo.com)\n  * @version $Id$\n  * @since 0.13.8\n  */\n-@EqualsAndHashCode(of = { \"origin\", \"secret\", \"enc\", \"dec\" })\n+@EqualsAndHashCode(of = {\"origin\", \"key\"})\n public final class CcAES implements Codec {\n-\n     /**\n-     * The cipher for encryption.\n+     * The block size constant.\n      */\n-    private final transient Cipher enc;\n+    private static final int BLOCK = 16;\n \n     /**\n-     * The cipher for decryption.\n+     * Original codec.\n      */\n-    private final transient Cipher dec;\n+    private final transient Codec origin;","path":"src/main/java/org/takes/facets/auth/codecs/CcAES.java","position":42,"original_position":42,"commit_id":"a43115ce52fc49b4de7b0b37f84c5bbb40361c14","original_commit_id":"c7f65a1bdd7a421b150e06964ec906bca02c00a4","user":{"login":"mkordas","id":5467276,"avatar_url":"https://avatars.githubusercontent.com/u/5467276?v=3","gravatar_id":"","url":"https://api.github.com/users/mkordas","html_url":"https://github.com/mkordas","followers_url":"https://api.github.com/users/mkordas/followers","following_url":"https://api.github.com/users/mkordas/following{/other_user}","gists_url":"https://api.github.com/users/mkordas/gists{/gist_id}","starred_url":"https://api.github.com/users/mkordas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkordas/subscriptions","organizations_url":"https://api.github.com/users/mkordas/orgs","repos_url":"https://api.github.com/users/mkordas/repos","events_url":"https://api.github.com/users/mkordas/events{/privacy}","received_events_url":"https://api.github.com/users/mkordas/received_events","type":"User","site_admin":false},"body":"@sebing thanks for explanation, I'm ok with `origin`","created_at":"2016-02-14T11:54:31Z","updated_at":"2016-02-14T11:54:31Z","html_url":"https://github.com/yegor256/takes/pull/599#discussion_r52841501","pull_request_url":"https://api.github.com/repos/yegor256/takes/pulls/599","_links":{"self":{"href":"https://api.github.com/repos/yegor256/takes/pulls/comments/52841501"},"html":{"href":"https://github.com/yegor256/takes/pull/599#discussion_r52841501"},"pull_request":{"href":"https://api.github.com/repos/yegor256/takes/pulls/599"}}},"pull_request":{"url":"https://api.github.com/repos/yegor256/takes/pulls/599","id":59058838,"html_url":"https://github.com/yegor256/takes/pull/599","diff_url":"https://github.com/yegor256/takes/pull/599.diff","patch_url":"https://github.com/yegor256/takes/pull/599.patch","issue_url":"https://api.github.com/repos/yegor256/takes/issues/599","number":599,"state":"open","locked":false,"title":"Removing the warning suppression(ConstructorOnlyInitializesOrCallOtherConstructors )","user":{"login":"sebing","id":5242384,"avatar_url":"https://avatars.githubusercontent.com/u/5242384?v=3","gravatar_id":"","url":"https://api.github.com/users/sebing","html_url":"https://github.com/sebing","followers_url":"https://api.github.com/users/sebing/followers","following_url":"https://api.github.com/users/sebing/following{/other_user}","gists_url":"https://api.github.com/users/sebing/gists{/gist_id}","starred_url":"https://api.github.com/users/sebing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebing/subscriptions","organizations_url":"https://api.github.com/users/sebing/orgs","repos_url":"https://api.github.com/users/sebing/repos","events_url":"https://api.github.com/users/sebing/events{/privacy}","received_events_url":"https://api.github.com/users/sebing/received_events","type":"User","site_admin":false},"body":"Refactored the class according to this article:\r\n\r\nhttp://www.yegor256.com/2015/05/07/ctors-must-be-code-free.htm\r\n\r\nFixing the issue(https://github.com/yegor256/takes/issues/595).","created_at":"2016-02-11T16:46:50Z","updated_at":"2016-02-14T11:54:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"620dd5664ca784f9ff045d079ce5c75fdf7a05a7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yegor256/takes/pulls/599/commits","review_comments_url":"https://api.github.com/repos/yegor256/takes/pulls/599/comments","review_comment_url":"https://api.github.com/repos/yegor256/takes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yegor256/takes/issues/599/comments","statuses_url":"https://api.github.com/repos/yegor256/takes/statuses/a43115ce52fc49b4de7b0b37f84c5bbb40361c14","head":{"label":"sebing:issue595","ref":"issue595","sha":"a43115ce52fc49b4de7b0b37f84c5bbb40361c14","user":{"login":"sebing","id":5242384,"avatar_url":"https://avatars.githubusercontent.com/u/5242384?v=3","gravatar_id":"","url":"https://api.github.com/users/sebing","html_url":"https://github.com/sebing","followers_url":"https://api.github.com/users/sebing/followers","following_url":"https://api.github.com/users/sebing/following{/other_user}","gists_url":"https://api.github.com/users/sebing/gists{/gist_id}","starred_url":"https://api.github.com/users/sebing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebing/subscriptions","organizations_url":"https://api.github.com/users/sebing/orgs","repos_url":"https://api.github.com/users/sebing/repos","events_url":"https://api.github.com/users/sebing/events{/privacy}","received_events_url":"https://api.github.com/users/sebing/received_events","type":"User","site_admin":false},"repo":{"id":50434733,"name":"takes","full_name":"sebing/takes","owner":{"login":"sebing","id":5242384,"avatar_url":"https://avatars.githubusercontent.com/u/5242384?v=3","gravatar_id":"","url":"https://api.github.com/users/sebing","html_url":"https://github.com/sebing","followers_url":"https://api.github.com/users/sebing/followers","following_url":"https://api.github.com/users/sebing/following{/other_user}","gists_url":"https://api.github.com/users/sebing/gists{/gist_id}","starred_url":"https://api.github.com/users/sebing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebing/subscriptions","organizations_url":"https://api.github.com/users/sebing/orgs","repos_url":"https://api.github.com/users/sebing/repos","events_url":"https://api.github.com/users/sebing/events{/privacy}","received_events_url":"https://api.github.com/users/sebing/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sebing/takes","description":"True Object-Oriented and Immutable Java Web Framework","fork":true,"url":"https://api.github.com/repos/sebing/takes","forks_url":"https://api.github.com/repos/sebing/takes/forks","keys_url":"https://api.github.com/repos/sebing/takes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sebing/takes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sebing/takes/teams","hooks_url":"https://api.github.com/repos/sebing/takes/hooks","issue_events_url":"https://api.github.com/repos/sebing/takes/issues/events{/number}","events_url":"https://api.github.com/repos/sebing/takes/events","assignees_url":"https://api.github.com/repos/sebing/takes/assignees{/user}","branches_url":"https://api.github.com/repos/sebing/takes/branches{/branch}","tags_url":"https://api.github.com/repos/sebing/takes/tags","blobs_url":"https://api.github.com/repos/sebing/takes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sebing/takes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sebing/takes/git/refs{/sha}","trees_url":"https://api.github.com/repos/sebing/takes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sebing/takes/statuses/{sha}","languages_url":"https://api.github.com/repos/sebing/takes/languages","stargazers_url":"https://api.github.com/repos/sebing/takes/stargazers","contributors_url":"https://api.github.com/repos/sebing/takes/contributors","subscribers_url":"https://api.github.com/repos/sebing/takes/subscribers","subscription_url":"https://api.github.com/repos/sebing/takes/subscription","commits_url":"https://api.github.com/repos/sebing/takes/commits{/sha}","git_commits_url":"https://api.github.com/repos/sebing/takes/git/commits{/sha}","comments_url":"https://api.github.com/repos/sebing/takes/comments{/number}","issue_comment_url":"https://api.github.com/repos/sebing/takes/issues/comments{/number}","contents_url":"https://api.github.com/repos/sebing/takes/contents/{+path}","compare_url":"https://api.github.com/repos/sebing/takes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sebing/takes/merges","archive_url":"https://api.github.com/repos/sebing/takes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sebing/takes/downloads","issues_url":"https://api.github.com/repos/sebing/takes/issues{/number}","pulls_url":"https://api.github.com/repos/sebing/takes/pulls{/number}","milestones_url":"https://api.github.com/repos/sebing/takes/milestones{/number}","notifications_url":"https://api.github.com/repos/sebing/takes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sebing/takes/labels{/name}","releases_url":"https://api.github.com/repos/sebing/takes/releases{/id}","deployments_url":"https://api.github.com/repos/sebing/takes/deployments","created_at":"2016-01-26T14:40:54Z","updated_at":"2016-01-26T14:40:56Z","pushed_at":"2016-02-13T23:21:05Z","git_url":"git://github.com/sebing/takes.git","ssh_url":"git@github.com:sebing/takes.git","clone_url":"https://github.com/sebing/takes.git","svn_url":"https://github.com/sebing/takes","homepage":"http://www.takes.org","size":28831,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"yegor256:master","ref":"master","sha":"8e11dde706109f3125c29d413d1a146ee6380eea","user":{"login":"yegor256","id":526301,"avatar_url":"https://avatars.githubusercontent.com/u/526301?v=3","gravatar_id":"","url":"https://api.github.com/users/yegor256","html_url":"https://github.com/yegor256","followers_url":"https://api.github.com/users/yegor256/followers","following_url":"https://api.github.com/users/yegor256/following{/other_user}","gists_url":"https://api.github.com/users/yegor256/gists{/gist_id}","starred_url":"https://api.github.com/users/yegor256/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yegor256/subscriptions","organizations_url":"https://api.github.com/users/yegor256/orgs","repos_url":"https://api.github.com/users/yegor256/repos","events_url":"https://api.github.com/users/yegor256/events{/privacy}","received_events_url":"https://api.github.com/users/yegor256/received_events","type":"User","site_admin":false},"repo":{"id":28924109,"name":"takes","full_name":"yegor256/takes","owner":{"login":"yegor256","id":526301,"avatar_url":"https://avatars.githubusercontent.com/u/526301?v=3","gravatar_id":"","url":"https://api.github.com/users/yegor256","html_url":"https://github.com/yegor256","followers_url":"https://api.github.com/users/yegor256/followers","following_url":"https://api.github.com/users/yegor256/following{/other_user}","gists_url":"https://api.github.com/users/yegor256/gists{/gist_id}","starred_url":"https://api.github.com/users/yegor256/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yegor256/subscriptions","organizations_url":"https://api.github.com/users/yegor256/orgs","repos_url":"https://api.github.com/users/yegor256/repos","events_url":"https://api.github.com/users/yegor256/events{/privacy}","received_events_url":"https://api.github.com/users/yegor256/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yegor256/takes","description":"True Object-Oriented and Immutable Java Web Framework","fork":false,"url":"https://api.github.com/repos/yegor256/takes","forks_url":"https://api.github.com/repos/yegor256/takes/forks","keys_url":"https://api.github.com/repos/yegor256/takes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yegor256/takes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yegor256/takes/teams","hooks_url":"https://api.github.com/repos/yegor256/takes/hooks","issue_events_url":"https://api.github.com/repos/yegor256/takes/issues/events{/number}","events_url":"https://api.github.com/repos/yegor256/takes/events","assignees_url":"https://api.github.com/repos/yegor256/takes/assignees{/user}","branches_url":"https://api.github.com/repos/yegor256/takes/branches{/branch}","tags_url":"https://api.github.com/repos/yegor256/takes/tags","blobs_url":"https://api.github.com/repos/yegor256/takes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yegor256/takes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yegor256/takes/git/refs{/sha}","trees_url":"https://api.github.com/repos/yegor256/takes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yegor256/takes/statuses/{sha}","languages_url":"https://api.github.com/repos/yegor256/takes/languages","stargazers_url":"https://api.github.com/repos/yegor256/takes/stargazers","contributors_url":"https://api.github.com/repos/yegor256/takes/contributors","subscribers_url":"https://api.github.com/repos/yegor256/takes/subscribers","subscription_url":"https://api.github.com/repos/yegor256/takes/subscription","commits_url":"https://api.github.com/repos/yegor256/takes/commits{/sha}","git_commits_url":"https://api.github.com/repos/yegor256/takes/git/commits{/sha}","comments_url":"https://api.github.com/repos/yegor256/takes/comments{/number}","issue_comment_url":"https://api.github.com/repos/yegor256/takes/issues/comments{/number}","contents_url":"https://api.github.com/repos/yegor256/takes/contents/{+path}","compare_url":"https://api.github.com/repos/yegor256/takes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yegor256/takes/merges","archive_url":"https://api.github.com/repos/yegor256/takes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yegor256/takes/downloads","issues_url":"https://api.github.com/repos/yegor256/takes/issues{/number}","pulls_url":"https://api.github.com/repos/yegor256/takes/pulls{/number}","milestones_url":"https://api.github.com/repos/yegor256/takes/milestones{/number}","notifications_url":"https://api.github.com/repos/yegor256/takes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yegor256/takes/labels{/name}","releases_url":"https://api.github.com/repos/yegor256/takes/releases{/id}","deployments_url":"https://api.github.com/repos/yegor256/takes/deployments","created_at":"2015-01-07T16:57:47Z","updated_at":"2016-02-12T16:25:52Z","pushed_at":"2016-02-14T06:40:10Z","git_url":"git://github.com/yegor256/takes.git","ssh_url":"git@github.com:yegor256/takes.git","clone_url":"https://github.com/yegor256/takes.git","svn_url":"https://github.com/yegor256/takes","homepage":"http://www.takes.org","size":30059,"stargazers_count":146,"watchers_count":146,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":82,"mirror_url":null,"open_issues_count":77,"forks":82,"open_issues":77,"watchers":146,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yegor256/takes/pulls/599"},"html":{"href":"https://github.com/yegor256/takes/pull/599"},"issue":{"href":"https://api.github.com/repos/yegor256/takes/issues/599"},"comments":{"href":"https://api.github.com/repos/yegor256/takes/issues/599/comments"},"review_comments":{"href":"https://api.github.com/repos/yegor256/takes/pulls/599/comments"},"review_comment":{"href":"https://api.github.com/repos/yegor256/takes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yegor256/takes/pulls/599/commits"},"statuses":{"href":"https://api.github.com/repos/yegor256/takes/statuses/a43115ce52fc49b4de7b0b37f84c5bbb40361c14"}}}}