Specify how -overrideCollectionClass is created
Opened this issue · 1 comments
haxney commented
The -overrideCollectionClass
argument for the -Ximmutable
plugin assumes that the chosen class can be constructed directly using new OverrideCollectionClassName(args)
, but this is not the case for Guava's ImmutableList
, which must be built using a builder or a static method, such as copyOf(Iterable)
.
There should be some way of specifying how the collection class should be created.
mklemm commented
Maybe it is possible to pass the whole collection construction expression as a command-line parameter