Merge pull request #4191 from cbornet/fix_import_order

Fix order of imports in operations
This commit is contained in:
wing328 2016-11-16 11:02:40 +08:00 committed by GitHub
commit 113843bb88

View File

@ -840,7 +840,7 @@ public class DefaultGenerator extends AbstractGenerator implements Generator {
operations.put("package", config.apiPackage());
Set<String> allImports = new LinkedHashSet<String>();
Set<String> allImports = new TreeSet<String>();
for (CodegenOperation op : ops) {
allImports.addAll(op.imports);
}