{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1348","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1348/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1348/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1348/events","html_url":"https://github.com/swagger-api/swagger-codegen/issues/1348","id":110233680,"number":1348,"title":"[Java] Useless generation of fields when using allOf","user":{"login":"cbornet","id":11633333,"avatar_url":"https://avatars.githubusercontent.com/u/11633333?v=3","gravatar_id":"","url":"https://api.github.com/users/cbornet","html_url":"https://github.com/cbornet","followers_url":"https://api.github.com/users/cbornet/followers","following_url":"https://api.github.com/users/cbornet/following{/other_user}","gists_url":"https://api.github.com/users/cbornet/gists{/gist_id}","starred_url":"https://api.github.com/users/cbornet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbornet/subscriptions","organizations_url":"https://api.github.com/users/cbornet/orgs","repos_url":"https://api.github.com/users/cbornet/repos","events_url":"https://api.github.com/users/cbornet/events{/privacy}","received_events_url":"https://api.github.com/users/cbornet/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/labels/Client:%20Java","name":"Client: Java","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-07T14:09:39Z","updated_at":"2015-10-10T23:31:42Z","closed_at":null,"body":"When using composition with ```allOf```, the child class contains un-needed attributes which are already in the parent class."},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/comments/147136387","html_url":"https://github.com/swagger-api/swagger-codegen/issues/1348#issuecomment-147136387","issue_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1348","id":147136387,"user":{"login":"cbornet","id":11633333,"avatar_url":"https://avatars.githubusercontent.com/u/11633333?v=3","gravatar_id":"","url":"https://api.github.com/users/cbornet","html_url":"https://github.com/cbornet","followers_url":"https://api.github.com/users/cbornet/followers","following_url":"https://api.github.com/users/cbornet/following{/other_user}","gists_url":"https://api.github.com/users/cbornet/gists{/gist_id}","starred_url":"https://api.github.com/users/cbornet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbornet/subscriptions","organizations_url":"https://api.github.com/users/cbornet/orgs","repos_url":"https://api.github.com/users/cbornet/repos","events_url":"https://api.github.com/users/cbornet/events{/privacy}","received_events_url":"https://api.github.com/users/cbornet/received_events","type":"User","site_admin":false},"created_at":"2015-10-10T23:31:42Z","updated_at":"2015-10-10T23:31:42Z","body":"The issue is also debated in #1120 . We need to have class extension or copy but not both as it fails with gson."}}