{"action":"created","issue":{"url":"https://api.github.com/repos/yegor256/takes/issues/120","labels_url":"https://api.github.com/repos/yegor256/takes/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/yegor256/takes/issues/120/comments","events_url":"https://api.github.com/repos/yegor256/takes/issues/120/events","html_url":"https://github.com/yegor256/takes/issues/120","id":66239394,"number":120,"title":"RqFake equals does not work as expected ","user":{"login":"ekondrashev","id":114910,"avatar_url":"https://avatars.githubusercontent.com/u/114910?v=3","gravatar_id":"","url":"https://api.github.com/users/ekondrashev","html_url":"https://github.com/ekondrashev","followers_url":"https://api.github.com/users/ekondrashev/followers","following_url":"https://api.github.com/users/ekondrashev/following{/other_user}","gists_url":"https://api.github.com/users/ekondrashev/gists{/gist_id}","starred_url":"https://api.github.com/users/ekondrashev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekondrashev/subscriptions","organizations_url":"https://api.github.com/users/ekondrashev/orgs","repos_url":"https://api.github.com/users/ekondrashev/repos","events_url":"https://api.github.com/users/ekondrashev/events{/privacy}","received_events_url":"https://api.github.com/users/ekondrashev/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yegor256/takes/labels/30%20mins","name":"30 mins","color":"eb6421"},{"url":"https://api.github.com/repos/yegor256/takes/labels/@bdragan","name":"@bdragan","color":"009801"},{"url":"https://api.github.com/repos/yegor256/takes/labels/DEV","name":"DEV","color":"bfd4f3"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/yegor256/takes/milestones/1","html_url":"https://github.com/yegor256/takes/milestones/1.0","labels_url":"https://api.github.com/repos/yegor256/takes/milestones/1/labels","id":1069705,"number":1,"title":"1.0","description":"first fully working version","creator":{"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},"open_issues":24,"closed_issues":89,"state":"open","created_at":"2015-04-16T00:55:10Z","updated_at":"2015-10-13T09:29:43Z","due_on":"2015-05-14T07:00:00Z","closed_at":null},"comments":23,"created_at":"2015-04-03T22:22:56Z","updated_at":"2015-10-13T12:29:06Z","closed_at":null,"body":"When several RqFake objects inited with the same head and body they return false on equals call, please see the test\r\n\r\n```\r\npackage org.takes.rq;\r\n\r\nimport com.google.common.base.Joiner;\r\nimport org.junit.Assert;\r\nimport org.junit.Test;\r\nimport java.util.Arrays;\r\nimport java.util.List;\r\n\r\n/**\r\n * Created by ekondrashev on 4/4/15.\r\n */\r\npublic class RqFakeTest {\r\n    \r\n    \r\n    @Test\r\n    public void equalsTrue() {\r\n        List<String> head = Arrays.asList(\r\n                \"POST /h?a=3 HTTP/1.1\",\r\n                \"Host: www.example.com\",\r\n                \"Content-Type: multipart/form-data; boundary=AaB03x\",\r\n                \"Content-Length: 10000\"\r\n        );\r\n        String body = Joiner.on(\"\\r\\n\").join(\r\n                \"--AaB03x\",\r\n                \"Content-Disposition: form-data; name=\\\"address\\\"\",\r\n                \"\",\r\n                \"440 N Wolfe Rd, Sunnyvale, CA 94085\",\r\n                \"--AaB03x\",\r\n                // @checkstyle LineLength (1 line)\r\n                \"Content-Disposition: form-data; name=\\\"data\\\"; filename=\\\"a.bin\\\"\",\r\n                \"Content-Transfer-Encoding: utf-8\",\r\n                \"\",\r\n                \"\\r\\t\\n\\u20ac\\n\\n\\n\\t\\r\\t\\n\\n\\n\\r\\nthe end\",\r\n                \"--AaB03x--\"\r\n        );\r\n        Assert.assertEquals(new RqFake(head, body), new RqFake(head, body));\r\n    }\r\n}\r\n```\r\n\r\nResult\r\n```\r\njava.lang.AssertionError: \r\nExpected :org.takes.rq.RqFake@364e3420\r\nActual   :org.takes.rq.RqFake@4821fa36\r\n```"},"comment":{"url":"https://api.github.com/repos/yegor256/takes/issues/comments/147700918","html_url":"https://github.com/yegor256/takes/issues/120#issuecomment-147700918","issue_url":"https://api.github.com/repos/yegor256/takes/issues/120","id":147700918,"user":{"login":"ekondrashev","id":114910,"avatar_url":"https://avatars.githubusercontent.com/u/114910?v=3","gravatar_id":"","url":"https://api.github.com/users/ekondrashev","html_url":"https://github.com/ekondrashev","followers_url":"https://api.github.com/users/ekondrashev/followers","following_url":"https://api.github.com/users/ekondrashev/following{/other_user}","gists_url":"https://api.github.com/users/ekondrashev/gists{/gist_id}","starred_url":"https://api.github.com/users/ekondrashev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekondrashev/subscriptions","organizations_url":"https://api.github.com/users/ekondrashev/orgs","repos_url":"https://api.github.com/users/ekondrashev/repos","events_url":"https://api.github.com/users/ekondrashev/events{/privacy}","received_events_url":"https://api.github.com/users/ekondrashev/received_events","type":"User","site_admin":false},"created_at":"2015-10-13T12:29:06Z","updated_at":"2015-10-13T12:29:06Z","body":"@bdragan it is not about `Request`, but rather about the situation when we pass any anonymous class and expect equals/hashCode to work properly. So it is an issue that can appear anytime one uses a combinationof lombok and anonymous classes. This issue is dangerous enough doe to having this common nature, see?"}}