{"action":"created","issue":{"url":"https://api.github.com/repos/rharter/auto-value-parcel/issues/38","repository_url":"https://api.github.com/repos/rharter/auto-value-parcel","labels_url":"https://api.github.com/repos/rharter/auto-value-parcel/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/rharter/auto-value-parcel/issues/38/comments","events_url":"https://api.github.com/repos/rharter/auto-value-parcel/issues/38/events","html_url":"https://github.com/rharter/auto-value-parcel/issues/38","id":143237767,"number":38,"title":"Compile error when using same TypeAdapter twice","user":{"login":"jush","id":691172,"avatar_url":"https://avatars.githubusercontent.com/u/691172?v=3","gravatar_id":"","url":"https://api.github.com/users/jush","html_url":"https://github.com/jush","followers_url":"https://api.github.com/users/jush/followers","following_url":"https://api.github.com/users/jush/following{/other_user}","gists_url":"https://api.github.com/users/jush/gists{/gist_id}","starred_url":"https://api.github.com/users/jush/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jush/subscriptions","organizations_url":"https://api.github.com/users/jush/orgs","repos_url":"https://api.github.com/users/jush/repos","events_url":"https://api.github.com/users/jush/events{/privacy}","received_events_url":"https://api.github.com/users/jush/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-24T12:59:38Z","updated_at":"2016-03-24T13:30:26Z","closed_at":null,"body":"I have the following class:\r\n```Java\r\nimport com.google.android.gms.maps.model.LatLng;\r\n...\r\n@AutoValue\r\npublic abstract class RouteSegment implements Parcelable {\r\n    @ParcelAdapter(LatLngTypeAdapter.class)\r\n    public abstract LatLng startPoint();\r\n    @ParcelAdapter(LatLngTypeAdapter.class)\r\n    public abstract LatLng endPoint();\r\n    ...\r\n    public static class LatLngTypeAdapter implements\r\n        com.ryanharter.auto.value.parcel.TypeAdapter<LatLng> {\r\n        @Override\r\n        public LatLng fromParcel(Parcel in) {\r\n            return in.readParcelable(RouteSegment.class.getClassLoader());\r\n        }\r\n\r\n        @Override\r\n        public void toParcel(LatLng value, Parcel dest) {\r\n            dest.writeParcelable(value, 0);\r\n        }\r\n    }\r\n}\r\n```\r\n\r\nThat generates the following error:\r\n`AutoValue_RouteSegment.java:14: error: variable latLngTypeAdapter is already defined in method createFromParcel(Parcel)`\r\n\r\nIf I remove the `ParcelAdapter` to `endPoint` I get the following error:\r\n`error: AutoValue property endPoint is not a supported Parcelable type.`\r\n\r\nHow should `ParcelAdapter` be used in this scenario?"},"comment":{"url":"https://api.github.com/repos/rharter/auto-value-parcel/issues/comments/200834599","html_url":"https://github.com/rharter/auto-value-parcel/issues/38#issuecomment-200834599","issue_url":"https://api.github.com/repos/rharter/auto-value-parcel/issues/38","id":200834599,"user":{"login":"solcott","id":547325,"avatar_url":"https://avatars.githubusercontent.com/u/547325?v=3","gravatar_id":"","url":"https://api.github.com/users/solcott","html_url":"https://github.com/solcott","followers_url":"https://api.github.com/users/solcott/followers","following_url":"https://api.github.com/users/solcott/following{/other_user}","gists_url":"https://api.github.com/users/solcott/gists{/gist_id}","starred_url":"https://api.github.com/users/solcott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solcott/subscriptions","organizations_url":"https://api.github.com/users/solcott/orgs","repos_url":"https://api.github.com/users/solcott/repos","events_url":"https://api.github.com/users/solcott/events{/privacy}","received_events_url":"https://api.github.com/users/solcott/received_events","type":"User","site_admin":false},"created_at":"2016-03-24T13:30:26Z","updated_at":"2016-03-24T13:30:26Z","body":"This was fixed by #34.  Will be out whenever the next release happens."}}