This is an automated email from the ASF dual-hosted git repository. madhan pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/atlas.git
The following commit(s) were added to refs/heads/master by this push: new 0a5eb91 ATLAS-3160: remove unthrown exception specified in AtlasRelationshipDef constructors 0a5eb91 is described below commit 0a5eb916e48d514fadd802bf5c4ed671d4de91cc Author: Diego Marino Monetti <dmari...@gmail.com> AuthorDate: Tue Apr 23 20:35:40 2019 +0200 ATLAS-3160: remove unthrown exception specified in AtlasRelationshipDef constructors Signed-off-by: Madhan Neethiraj <mad...@apache.org> --- .../apache/atlas/model/typedef/AtlasRelationshipDef.java | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) 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 76caf35..2156aec 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 @@ -19,11 +19,9 @@ package org.apache.atlas.model.typedef; import com.fasterxml.jackson.annotation.JsonAutoDetect; -import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import org.apache.atlas.exception.AtlasBaseException; import org.apache.atlas.model.TypeCategory; import javax.xml.bind.annotation.XmlAccessType; @@ -124,9 +122,8 @@ public class AtlasRelationshipDef extends AtlasStructDef implements java.io.Seri /** * AtlasRelationshipDef contructor - * @throws AtlasBaseException */ - public AtlasRelationshipDef() throws AtlasBaseException { + public AtlasRelationshipDef() { this(null, null, null, null,null, null, null); } @@ -158,8 +155,7 @@ public class AtlasRelationshipDef extends AtlasStructDef implements java.io.Seri PropagateTags propagatetags, AtlasRelationshipEndDef endDef1, AtlasRelationshipEndDef endDef2) { - this(name, description, typeVersion, relationshipCategory,propagatetags, endDef1, endDef2, - new ArrayList<AtlasAttributeDef>()); + this(name, description, typeVersion, relationshipCategory,propagatetags, endDef1, endDef2, new ArrayList<>()); } /** @@ -185,16 +181,13 @@ public class AtlasRelationshipDef extends AtlasStructDef implements java.io.Seri * the relationship instance * * The ends are defined as 1 and 2 to avoid implying a direction. So we do not use to and from. - * - * @throws AtlasBaseException */ public AtlasRelationshipDef(String name, String description, String typeVersion, String serviceType, RelationshipCategory relationshipCategory, PropagateTags propagatetags, AtlasRelationshipEndDef endDef1, - AtlasRelationshipEndDef endDef2) throws AtlasBaseException { - this(name, description, typeVersion, relationshipCategory,propagatetags, endDef1, endDef2, - new ArrayList<AtlasAttributeDef>()); + AtlasRelationshipEndDef endDef2) { + this(name, description, typeVersion, serviceType, relationshipCategory,propagatetags, endDef1, endDef2, new ArrayList<>()); }