There was an error while loading. Please reload this page.
1 parent 87596f8 commit edc6dbaCopy full SHA for edc6dba
1 file changed
src/main/kotlin/org/hiero/gradle/spotless/SortModuleInfoRequiresStep.kt
@@ -97,26 +97,7 @@ class SortModuleInfoRequiresStep {
97
}
98
99
// Sort exports alphabetically by the exported package name
100
- val exportsComparator =
101
- Comparator<List<String>> { a, b ->
102
- val nameA =
103
- a.first()
104
- .trim()
105
- .removePrefix("exports")
106
107
- .split(Regex("[\\s;]"))
108
- .first()
109
- val nameB =
110
- b.first()
111
112
113
114
115
116
- nameA.compareTo(nameB)
117
- }
118
-
119
- exports.sortWith(exportsComparator)
+ exports.sortBy { it.first() }
120
requiresTransitive.sortWith(requiresComparator)
121
requires.sortWith(requiresComparator)
122
requiresStaticTransitive.sortWith(requiresComparator)
0 commit comments