Hi, In a recent PR, the order of imports came up as a discussion point. The reason behind this is that it’s not always possible to not sort imports. Added to that, we do have some rules w.r.t. imports for people that read code directly, for example to never use * imports.
As noted in the PR, choosing any import order will change at least half of all source files: https://github.com/apache/avro/pull/3150#discussion_r1773516333 To solve the issue, and prevent unnecessary changes in PRs, I propose to fix the order of imports. As I see it, there are two “easy” options: 1. Use the default order imposed by the spotless plugin (two groups, static first, each ordered lexicographically) 2. The same, but sort JDK imports (the java/javax packages) separately in a third group Do you have a preference? Kind regards, Oscar -- Oscar Westra van Holthe - Kind <opw...@apache.org>