mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-04-20 09:36:55 -04:00
Use naming convention for comparator
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user