fix default needToImport

This commit is contained in:
wing328
2015-12-21 14:12:19 +08:00
parent 391d0b9f9d
commit aa55c95d1b
18 changed files with 64 additions and 20 deletions

View File

@@ -1714,8 +1714,7 @@ public class DefaultCodegen {
*/
protected boolean needToImport(String type) {
return !defaultIncludes.contains(type)
&& !languageSpecificPrimitives.contains(type)
&& type.indexOf(".") < 0;
&& !languageSpecificPrimitives.contains(type);
}
protected List<Map<String, Object>> toExamples(Map<String, Object> examples) {