[DEV] correct input order
This commit is contained in:
parent
148bdcbabd
commit
9d5c3c01db
@ -11,6 +11,7 @@ import java.lang.reflect.Parameter;
|
|||||||
import java.lang.reflect.ParameterizedType;
|
import java.lang.reflect.ParameterizedType;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Collections;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -79,6 +80,7 @@ public class DataFactoryTsApi {
|
|||||||
final APIModel api = createSingleApi(clazz, includeModel, includeCheckerModel, previous);
|
final APIModel api = createSingleApi(clazz, includeModel, includeCheckerModel, previous);
|
||||||
final StringBuilder generatedData = new StringBuilder();
|
final StringBuilder generatedData = new StringBuilder();
|
||||||
generatedData.append(globalheader);
|
generatedData.append(globalheader);
|
||||||
|
final List<String> includedElements = new ArrayList<>();
|
||||||
for (final Class<?> elem : includeModel) {
|
for (final Class<?> elem : includeModel) {
|
||||||
if (elem == null) {
|
if (elem == null) {
|
||||||
continue;
|
continue;
|
||||||
@ -87,8 +89,12 @@ public class DataFactoryTsApi {
|
|||||||
if (classElement.nativeType) {
|
if (classElement.nativeType) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
includedElements.add(classElement.tsTypeName);
|
||||||
|
}
|
||||||
|
Collections.sort(includedElements);
|
||||||
|
for (final String elem : includedElements) {
|
||||||
generatedData.append("\n ");
|
generatedData.append("\n ");
|
||||||
generatedData.append(classElement.tsTypeName);
|
generatedData.append(elem);
|
||||||
generatedData.append(",");
|
generatedData.append(",");
|
||||||
}
|
}
|
||||||
for (final Class<?> elem : includeCheckerModel) {
|
for (final Class<?> elem : includeCheckerModel) {
|
||||||
|
Loading…
Reference in New Issue
Block a user