swagger-api/swagger-codegen

[Java] Generate copy constructor in models

オープン

#3,883 opened on 2016/09/28

 (6 件のコメント) (6 件のリアクション) (0 人の担当者)HTML (5,474 件のフォーク)batch import
Client: JavaEnhancement: Generalhelp wanted

Repository metrics

Stars
 (12,701 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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?

コントリビューターガイド