Repository: atlas Updated Branches: refs/heads/master b02238491 -> d5ecfee50
ATLAS-2803: Improvements to toString methods Signed-off-by: Graham Wallis <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/a7119179 Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/a7119179 Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/a7119179 Branch: refs/heads/master Commit: a7119179e7972b799b476b1866e3fe23f64be42e Parents: d1b3f21 Author: Graham Wallis <[email protected]> Authored: Thu Aug 2 12:16:12 2018 +0100 Committer: Graham Wallis <[email protected]> Committed: Thu Aug 2 16:22:14 2018 +0100 ---------------------------------------------------------------------- .../org/apache/atlas/model/typedef/AtlasEnumDef.java | 3 +++ .../atlas/model/typedef/AtlasRelationshipDef.java | 14 ++++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/atlas/blob/a7119179/intg/src/main/java/org/apache/atlas/model/typedef/AtlasEnumDef.java ---------------------------------------------------------------------- diff --git a/intg/src/main/java/org/apache/atlas/model/typedef/AtlasEnumDef.java b/intg/src/main/java/org/apache/atlas/model/typedef/AtlasEnumDef.java index c723003..a7e870c 100644 --- a/intg/src/main/java/org/apache/atlas/model/typedef/AtlasEnumDef.java +++ b/intg/src/main/java/org/apache/atlas/model/typedef/AtlasEnumDef.java @@ -217,6 +217,9 @@ public class AtlasEnumDef extends AtlasBaseTypeDef implements Serializable { sb.append(", elementDefs=["); dumpObjects(elementDefs, sb); sb.append("]"); + sb.append(", defaultValue {"); + sb.append(defaultValue); + sb.append('}'); sb.append('}'); return sb; http://git-wip-us.apache.org/repos/asf/atlas/blob/a7119179/intg/src/main/java/org/apache/atlas/model/typedef/AtlasRelationshipDef.java ---------------------------------------------------------------------- diff --git a/intg/src/main/java/org/apache/atlas/model/typedef/AtlasRelationshipDef.java b/intg/src/main/java/org/apache/atlas/model/typedef/AtlasRelationshipDef.java index 8b94b43..d76f7fa 100644 --- a/intg/src/main/java/org/apache/atlas/model/typedef/AtlasRelationshipDef.java +++ b/intg/src/main/java/org/apache/atlas/model/typedef/AtlasRelationshipDef.java @@ -255,9 +255,19 @@ public class AtlasRelationshipDef extends AtlasStructDef implements java.io.Seri sb.append(','); sb.append(this.propagateTags); sb.append(','); - sb.append(this.endDef1.toString()); + if (this.endDef1 != null) { + sb.append(this.endDef1.toString()); + } + else { + sb.append(" end1 is null!"); + } sb.append(','); - sb.append(this.endDef2.toString()); + if (this.endDef2 != null) { + sb.append(this.endDef2.toString()); + } + else { + sb.append(" end2 is null!"); + } sb.append('}'); return sb; }
