swagger-api/swagger-codegen

[Java] Generate copy constructor in models

Open

#3,883 创建于 2016年9月28日

在 GitHub 查看
 (6 评论) (6 反应) (0 负责人)HTML (5,474 fork)batch import
Client: JavaEnhancement: Generalhelp wanted

仓库指标

Star
 (12,701 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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?

贡献者指南