Minor code improvements
This commit is contained in:
parent
43dea89dae
commit
bf55aaf7d5
2 changed files with 9 additions and 9 deletions
|
@ -411,7 +411,7 @@ public class AddAssociatedConceptGenerator extends VivoBaseGenerator implements
|
||||||
|
|
||||||
|
|
||||||
private void sortConcepts(List<AssociatedConceptInfo> concepts) {
|
private void sortConcepts(List<AssociatedConceptInfo> concepts) {
|
||||||
Collections.sort(concepts, new AssociatedConceptInfoComparator());
|
concepts.sort(new AssociatedConceptInfoComparator());
|
||||||
log.debug("Concepts should be sorted now" + concepts.toString());
|
log.debug("Concepts should be sorted now" + concepts.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -301,7 +301,7 @@ public class ManageLabelsForPersonGenerator extends BaseEditConfigurationGenerat
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//Sort list by language label and return
|
//Sort list by language label and return
|
||||||
Collections.sort(availableLocales, new Comparator<HashMap<String, String>>() {
|
availableLocales.sort(new Comparator<HashMap<String, String>>() {
|
||||||
public int compare(HashMap<String, String> h1, HashMap<String, String> h2) {
|
public int compare(HashMap<String, String> h1, HashMap<String, String> h2) {
|
||||||
String languageName1 = (String) h1.get("label");
|
String languageName1 = (String) h1.get("label");
|
||||||
String languageName2 = (String) h2.get("label");
|
String languageName2 = (String) h2.get("label");
|
||||||
|
@ -397,7 +397,7 @@ public class ManageLabelsForPersonGenerator extends BaseEditConfigurationGenerat
|
||||||
LabelInformationComparator lic = new LabelInformationComparator();
|
LabelInformationComparator lic = new LabelInformationComparator();
|
||||||
for(String languageName: labelsHash.keySet()) {
|
for(String languageName: labelsHash.keySet()) {
|
||||||
List<LabelInformation> labelInfo = labelsHash.get(languageName);
|
List<LabelInformation> labelInfo = labelsHash.get(languageName);
|
||||||
Collections.sort(labelInfo, lic);
|
labelInfo.sort(lic);
|
||||||
}
|
}
|
||||||
return labelsHash;
|
return labelsHash;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue