Add a special ordering/location for jakarta.* imports

Hi devs,

Currently, according to https://dev.xwiki.org/xwiki/bin/view/Community/CodeStyle/JavaCodeStyle/#HImports jakarta.* imports end up in the big “<any other imports>” section.

@MichaelHamann reminded me that we have a special location for javax.* and that it would probably make sense to do the same for its replacement, jakarta.*.

  1. So, first, do you agree that we need a special location for jakarta.* imports ?

  2. Where should we put it ? I can think of the following choices:
    a. first
    b. between java and javax
    c. after javax

WDYT ?

  1. +1
  2. a. it seems strange to me to not have java.* first, so -0
    b. I would expect “javax” to immediately follow “java”
    c. so my +1 goes to after javax

+1 for 1 and option 2.c. Thank you!

+1, it makes sense to have a rule similar to javax

+1 for c.
The groups are not ordered alphabetically anyways so there’s not really any advantage to a. . c. has the advantage of showing groups in a somewhat chronological way.
I have no strong preference and am definitely not the one impacted the most by this choice though :slight_smile:

Thanks!
Lucas C.

Same here.

Thanks,
Marius