Commit 914da6ee by rdsolani Committed by Madhan Neethiraj

Atlas-2294: type creation populates description field with empty string when no value is provided

parent 1f8e2146
...@@ -126,7 +126,7 @@ public class AtlasRelationshipEndDef implements Serializable { ...@@ -126,7 +126,7 @@ public class AtlasRelationshipEndDef implements Serializable {
* - whether this is a legacy attribute * - whether this is a legacy attribute
*/ */
public AtlasRelationshipEndDef(String typeName, String name, Cardinality cardinality, boolean isContainer, boolean isLegacyAttribute) { public AtlasRelationshipEndDef(String typeName, String name, Cardinality cardinality, boolean isContainer, boolean isLegacyAttribute) {
this(typeName, name, cardinality, isContainer, isLegacyAttribute,""); this(typeName, name, cardinality, isContainer, isLegacyAttribute, null);
} }
/** /**
* *
......
...@@ -286,7 +286,7 @@ public class AtlasStructDef extends AtlasBaseTypeDef implements Serializable { ...@@ -286,7 +286,7 @@ public class AtlasStructDef extends AtlasBaseTypeDef implements Serializable {
public AtlasAttributeDef(String name, String typeName, boolean isOptional, Cardinality cardinality, public AtlasAttributeDef(String name, String typeName, boolean isOptional, Cardinality cardinality,
int valuesMinCount, int valuesMaxCount, boolean isUnique, boolean isIndexable, List<AtlasConstraintDef> constraints) { int valuesMinCount, int valuesMaxCount, boolean isUnique, boolean isIndexable, List<AtlasConstraintDef> constraints) {
this(name, typeName, isOptional, cardinality, valuesMinCount, valuesMaxCount, isUnique, isIndexable, null, constraints, ""); this(name, typeName, isOptional, cardinality, valuesMinCount, valuesMaxCount, isUnique, isIndexable, null, constraints, null);
} }
public AtlasAttributeDef(String name, String typeName, boolean isOptional, Cardinality cardinality, public AtlasAttributeDef(String name, String typeName, boolean isOptional, Cardinality cardinality,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment