forked from pool/tesla-polyglot-common
24 lines
1.4 KiB
Diff
24 lines
1.4 KiB
Diff
diff -urEbwB polyglot-maven-polyglot-0.2.1/polyglot-yaml/src/main/java/org/sonatype/maven/polyglot/yaml/ModelRepresenter.java polyglot-maven-polyglot-0.2.1.new/polyglot-yaml/src/main/java/org/sonatype/maven/polyglot/yaml/ModelRepresenter.java
|
|
--- polyglot-maven-polyglot-0.2.1/polyglot-yaml/src/main/java/org/sonatype/maven/polyglot/yaml/ModelRepresenter.java 2017-09-06 19:21:53.000000000 +0200
|
|
+++ polyglot-maven-polyglot-0.2.1.new/polyglot-yaml/src/main/java/org/sonatype/maven/polyglot/yaml/ModelRepresenter.java 2019-11-10 20:22:59.071312361 +0100
|
|
@@ -205,8 +205,7 @@
|
|
* Change the default order. Important data goes first.
|
|
*/
|
|
@Override
|
|
- protected Set<Property> getProperties(Class<? extends Object> type)
|
|
- throws IntrospectionException {
|
|
+ protected Set<Property> getProperties(Class<? extends Object> type) {
|
|
if (type.isAssignableFrom(Model.class)) {
|
|
return sortTypeWithOrder(type, ORDER_MODEL);
|
|
} else if (type.isAssignableFrom(Developer.class)) {
|
|
@@ -222,8 +221,7 @@
|
|
}
|
|
}
|
|
|
|
- private Set<Property> sortTypeWithOrder(Class<? extends Object> type, List<String> order)
|
|
- throws IntrospectionException {
|
|
+ private Set<Property> sortTypeWithOrder(Class<? extends Object> type, List<String> order) {
|
|
Set<Property> standard = super.getProperties(type);
|
|
Set<Property> sorted = new TreeSet<Property>(new ModelPropertyComparator(order));
|
|
sorted.addAll(standard);
|