kotlinpoet icon indicating copy to clipboard operation
kotlinpoet copied to clipboard

Use consistent collection type in builders for modifiers and type variables.

Open GlassBricks opened this issue 5 years ago • 0 comments

Right now, modifiers are represented using a MutableSet in TypeAliasSpec.Builder, TypeSpec.Builder, but using aMutableList in FunSpec.Builder, ParameterSpec.Builder, PropertySpec.Builder. It would make always use a Set to match the Specs.

Type Variables are represented using a MutableList in FunSpec.Builder, PropertySpec.Builder, and TypeSpec.Builder, but a MutableSet in TypeAlias.Builder. It would make always use a List (to match the Specs).

This would be backwards incompatible so it will have to wait until 2.0

GlassBricks avatar Aug 28 '20 01:08 GlassBricks