Use naming convention for comparator

This commit is contained in:
Armin Schrenk
2024-01-19 10:04:15 +01:00
committed by GitHub
parent bfdb23785e
commit 830bb5776f

View File

@@ -165,13 +165,13 @@ public class CreateNewVaultLocationController implements FxController {
});
}
private int compareLocationPresets(Node n1, Node n2) {
if (customLocationRadioBtn.getId().equals(n1.getId())) {
private int compareLocationPresets(Node left, Node right) {
if (customLocationRadioBtn.getId().equals(left.getId())) {
return 1;
} else if (customLocationRadioBtn.getId().equals(n2.getId())) {
} else if (customLocationRadioBtn.getId().equals(right.getId())) {
return -1;
} else {
return ((RadioButton) n1).getText().compareToIgnoreCase(((RadioButton) n2).getText());
return ((RadioButton) left).getText().compareToIgnoreCase(((RadioButton) right).getText());
}
}