Reformatting of partial qualified typenames 关注
已回答
Dear IntelliJ Team,
I work intensively with nested types, here IntelliJ reformats (according to JLS naming rules) partial qualified type names to simple type identifiers (if possible), as illustrated in the example. Is there a way to prevent this? Partial qualification keeps nested type structures more expressive. I hope my request is somewhat understandable.
With kind regards, Tobi
interface Reduce<VALUE, TAIL extends Pipeline.Stage<?, ?>> extends Pipeline.Sink<VALUE, TAIL, VALUE> {
interface Left<VALUE, TAIL extends Stage<?, ?>> extends Reduce<VALUE, TAIL> {
static Fn1<TAIL, Reduce.Left<A, TAIL>> build(...) { ... }
| (Can this reformatting be suppressed?)
v
static Fn1<TAIL, Left<A, TAIL>> build(...) { ... }
}
interface Right<VALUE, TAIL extends Stage<?, ?>> extends Reduce<VALUE, TAIL> {
static Fn1<TAIL, Reduce.Right<A, TAIL>> build(...) { ... }
| (Can this reformatting be suppressed?)
v
static Fn1<TAIL, Right<A, TAIL>> build(...) { ... }
}
}
请先登录再写评论。
Tobias Herb could you please specify when exactly reformat happens? I tried the similar code and it doesn't occur for me on when I type "static Fn1<TAIL, Left..." and so on. Maybe you can provide a compilable sample code and steps to reproduce or a video example?