Opened 22 months ago

Last modified 22 months ago

#23747 new enhancement

Java import order preference — at Version 1

Reported by: gaben Owned by: team
Priority: trivial Milestone:
Component: Wiki content Version:
Keywords: Cc:

Description (last modified by gaben)

This is a long standing question of mine. What is the import order preference?

There are:

  • static imports
  • java.*
  • javax.*
  • org.openstreetmap.*
  • jakarta.*
  • org.apache.commons.*
  • other utility classes mostly in tests

Once we settle on something, I'd like to document it on the DevelopersGuide/StyleGuide. Reason is that, every time I create a new dev env, I forgot what was the import order setting.

Change History (1)

comment:1 by gaben, 22 months ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.