minor code clean up
This commit is contained in:
parent
f6482c5a87
commit
438a228fc3
|
@ -210,21 +210,19 @@ public class ServiceDiscoveryResult {
|
||||||
.append("<");
|
.append("<");
|
||||||
}
|
}
|
||||||
|
|
||||||
List<String> features = this.getFeatures();
|
final List<String> features = this.getFeatures();
|
||||||
Collections.sort(features);
|
Collections.sort(features);
|
||||||
|
for (final String feature : features) {
|
||||||
for (String feature : features) {
|
|
||||||
s.append(clean(feature)).append("<");
|
s.append(clean(feature)).append("<");
|
||||||
}
|
}
|
||||||
|
|
||||||
Collections.sort(forms, Comparator.comparing(Data::getFormType));
|
Collections.sort(forms, Comparator.comparing(Data::getFormType));
|
||||||
|
for (final Data form : forms) {
|
||||||
for (Data form : forms) {
|
|
||||||
s.append(clean(form.getFormType())).append("<");
|
s.append(clean(form.getFormType())).append("<");
|
||||||
List<Field> fields = form.getFields();
|
final List<Field> fields = form.getFields();
|
||||||
Collections.sort(
|
Collections.sort(
|
||||||
fields, Comparator.comparing(lhs -> Strings.nullToEmpty(lhs.getFieldName())));
|
fields, Comparator.comparing(lhs -> Strings.nullToEmpty(lhs.getFieldName())));
|
||||||
for (Field field : fields) {
|
for (final Field field : fields) {
|
||||||
s.append(Strings.nullToEmpty(field.getFieldName())).append("<");
|
s.append(Strings.nullToEmpty(field.getFieldName())).append("<");
|
||||||
final List<String> values = field.getValues();
|
final List<String> values = field.getValues();
|
||||||
Collections.sort(values, Comparator.comparing(ServiceDiscoveryResult::blankNull));
|
Collections.sort(values, Comparator.comparing(ServiceDiscoveryResult::blankNull));
|
||||||
|
|
Loading…
Reference in a new issue