swagger-api/swagger-codegen

[Java] Generate copy constructor in models

Open

#3 883 ouverte le 28 sept. 2016

Voir sur GitHub
 (6 commentaires) (6 réactions) (0 assignés)HTML (5 474 forks)batch import
Client: JavaEnhancement: Generalhelp wanted

Métriques du dépôt

Stars
 (12 701 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Description

Java models should have a way to easily create a clone or copy. Cloneable seems like a bad idea so I think we're probably left with a copy function or copy constructor.

I couldn't find anything in issues search. Has this been suggested before?

Guide contributeur