Repository: atlas
Updated Branches:
  refs/heads/branch-0.8 7826a2674 -> 833b31e29


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

Signed-off-by: Madhan Neethiraj <mad...@apache.org>
(cherry picked from commit 914da6ee8b3cc506e50e52ffd1d8be31ba88ff87)


Project: http://git-wip-us.apache.org/repos/asf/atlas/repo
Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/833b31e2
Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/833b31e2
Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/833b31e2

Branch: refs/heads/branch-0.8
Commit: 833b31e297b0c6b7670ef5b5bde18a755cb95c01
Parents: 7826a26
Author: rdsolani <rdsol...@gmail.com>
Authored: Mon Dec 4 16:29:44 2017 +0530
Committer: Madhan Neethiraj <mad...@apache.org>
Committed: Mon Dec 4 07:37:06 2017 -0800

----------------------------------------------------------------------
 .../java/org/apache/atlas/model/typedef/AtlasStructDef.java | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/atlas/blob/833b31e2/intg/src/main/java/org/apache/atlas/model/typedef/AtlasStructDef.java
----------------------------------------------------------------------
diff --git 
a/intg/src/main/java/org/apache/atlas/model/typedef/AtlasStructDef.java 
b/intg/src/main/java/org/apache/atlas/model/typedef/AtlasStructDef.java
index aee4907..c3c85d3 100644
--- a/intg/src/main/java/org/apache/atlas/model/typedef/AtlasStructDef.java
+++ b/intg/src/main/java/org/apache/atlas/model/typedef/AtlasStructDef.java
@@ -280,8 +280,13 @@ public class AtlasStructDef extends AtlasBaseTypeDef 
implements Serializable {
         }
 
         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, null);
+        }
+
+        public AtlasAttributeDef(String name, String typeName, boolean 
isOptional, Cardinality cardinality,
+                                 int valuesMinCount, int valuesMaxCount, 
boolean isUnique, boolean isIndexable, String defaultValue,
+                                 List<AtlasConstraintDef> constraints, String 
description) {
             setName(name);
             setTypeName(typeName);
             setIsOptional(isOptional);

Reply via email to