From 317e1011e63ce36155558cf69896b40e089f01c6 Mon Sep 17 00:00:00 2001 From: Yaohai Zheng Date: Sun, 21 Jul 2019 00:13:38 +0800 Subject: [PATCH] Fix empty import. --- .../Model/FluentCommon/Model/ModelLocalProperties.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/azurefluent/Model/FluentCommon/Model/ModelLocalProperties.cs b/src/azurefluent/Model/FluentCommon/Model/ModelLocalProperties.cs index 293ad3eee7..95b2dee50d 100644 --- a/src/azurefluent/Model/FluentCommon/Model/ModelLocalProperties.cs +++ b/src/azurefluent/Model/FluentCommon/Model/ModelLocalProperties.cs @@ -264,7 +264,11 @@ private IEnumerable PropertyImportsForImpl(PropertyJv property) { yield return $"java.util.ArrayList"; } - yield return $"{this.package}.{this.ModelJavaInterfaceName(modelTypeName)}"; + var modelInterfaceName = this.ModelJavaInterfaceName(modelTypeName); + if (!String.IsNullOrWhiteSpace(modelInterfaceName)) + { + yield return $"{this.package}.{modelInterfaceName}"; + } } foreach (string import in property.Imports)