mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
resource bundles: sorting (in editor and inspection) use case insensitive order now
This commit is contained in:
+2
-2
@@ -125,8 +125,8 @@ public class AlphaUnsortedPropertiesFileInspection extends LocalInspectionTool {
|
||||
|
||||
Collections.sort(properties, new Comparator<IProperty>() {
|
||||
@Override
|
||||
public int compare(IProperty p1, IProperty p2) {
|
||||
return Comparing.compare(p1.getKey(), p2.getKey());
|
||||
public int compare(@NotNull IProperty p1, @NotNull IProperty p2) {
|
||||
return Comparing.compare(p1.getKey(), p2.getKey(), String.CASE_INSENSITIVE_ORDER);
|
||||
}
|
||||
});
|
||||
final char delimiter = PropertiesCodeStyleSettings.getInstance(file.getProject()).KEY_VALUE_DELIMITER;
|
||||
|
||||
+1
-1
@@ -164,7 +164,7 @@ public class ResourceBundlePropertiesUpdateManager {
|
||||
if (acyclic) {
|
||||
if (isEdgesProperlyDirection[0]) {
|
||||
final List<String> sortedNodes = new ArrayList<String>(generator.getNodes());
|
||||
Collections.sort(sortedNodes);
|
||||
Collections.sort(sortedNodes, String.CASE_INSENSITIVE_ORDER);
|
||||
return Pair.create(sortedNodes, true);
|
||||
} else {
|
||||
final List<String> dfsNodes = dfstBuilder.getSortedNodes();
|
||||
|
||||
Reference in New Issue
Block a user