{"action":"created","issue":{"url":"https://api.github.com/repos/datastax/java-driver/issues/474","labels_url":"https://api.github.com/repos/datastax/java-driver/issues/474/labels{/name}","comments_url":"https://api.github.com/repos/datastax/java-driver/issues/474/comments","events_url":"https://api.github.com/repos/datastax/java-driver/issues/474/events","html_url":"https://github.com/datastax/java-driver/pull/474","id":110302221,"number":474,"title":"JAVA-932: Remove default codecs from public API.","user":{"login":"adutra","id":463876,"avatar_url":"https://avatars.githubusercontent.com/u/463876?v=3","gravatar_id":"","url":"https://api.github.com/users/adutra","html_url":"https://github.com/adutra","followers_url":"https://api.github.com/users/adutra/followers","following_url":"https://api.github.com/users/adutra/following{/other_user}","gists_url":"https://api.github.com/users/adutra/gists{/gist_id}","starred_url":"https://api.github.com/users/adutra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adutra/subscriptions","organizations_url":"https://api.github.com/users/adutra/orgs","repos_url":"https://api.github.com/users/adutra/repos","events_url":"https://api.github.com/users/adutra/events{/privacy}","received_events_url":"https://api.github.com/users/adutra/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-07T19:45:29Z","updated_at":"2015-10-11T16:05:12Z","closed_at":"2015-10-11T16:05:12Z","pull_request":{"url":"https://api.github.com/repos/datastax/java-driver/pulls/474","html_url":"https://github.com/datastax/java-driver/pull/474","diff_url":"https://github.com/datastax/java-driver/pull/474.diff","patch_url":"https://github.com/datastax/java-driver/pull/474.patch"},"body":"This pretty much removes everything public in TypeCodec:\r\n\r\n* default codecs\r\n* extra convenience codecs\r\n* equals and hashcode \r\n\r\nNote that the `PrimitiveXCodec` interfaces remain public. I think legit that users could retrieve a codec from CodecRegistry and test if they implement them to avoid the boxing/unboxing overhead.\r\n\r\nNew static methods allow to retrieve the default codecs for every CQL type. I don't think it is very useful for the average user (CodecRegistry should be the way to go in most cases), but they could prove useful in some situations:\r\n\r\n* if we allow users to override default codecs (JAVA-933)\r\n* if one really doesn't have access to a CodecRegistry\r\n\r\nI did not include a `DataType.getDefaultCodec()` instance method. Do you think it would be useful?"},"comment":{"url":"https://api.github.com/repos/datastax/java-driver/issues/comments/147213993","html_url":"https://github.com/datastax/java-driver/pull/474#issuecomment-147213993","issue_url":"https://api.github.com/repos/datastax/java-driver/issues/474","id":147213993,"user":{"login":"olim7t","id":259423,"avatar_url":"https://avatars.githubusercontent.com/u/259423?v=3","gravatar_id":"","url":"https://api.github.com/users/olim7t","html_url":"https://github.com/olim7t","followers_url":"https://api.github.com/users/olim7t/followers","following_url":"https://api.github.com/users/olim7t/following{/other_user}","gists_url":"https://api.github.com/users/olim7t/gists{/gist_id}","starred_url":"https://api.github.com/users/olim7t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olim7t/subscriptions","organizations_url":"https://api.github.com/users/olim7t/orgs","repos_url":"https://api.github.com/users/olim7t/repos","events_url":"https://api.github.com/users/olim7t/events{/privacy}","received_events_url":"https://api.github.com/users/olim7t/received_events","type":"User","site_admin":false},"created_at":"2015-10-11T16:05:12Z","updated_at":"2015-10-11T16:05:12Z","body":"Closed in favor of #485 (which targets 3.0)"}}