Commit 0a5eb916 by Diego Marino Monetti Committed by Madhan Neethiraj

ATLAS-3160: remove unthrown exception specified in AtlasRelationshipDef constructors

parent c37656cc
...@@ -19,11 +19,9 @@ package org.apache.atlas.model.typedef; ...@@ -19,11 +19,9 @@ package org.apache.atlas.model.typedef;
import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.apache.atlas.exception.AtlasBaseException;
import org.apache.atlas.model.TypeCategory; import org.apache.atlas.model.TypeCategory;
import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessType;
...@@ -124,9 +122,8 @@ public class AtlasRelationshipDef extends AtlasStructDef implements java.io.Seri ...@@ -124,9 +122,8 @@ public class AtlasRelationshipDef extends AtlasStructDef implements java.io.Seri
/** /**
* AtlasRelationshipDef contructor * AtlasRelationshipDef contructor
* @throws AtlasBaseException
*/ */
public AtlasRelationshipDef() throws AtlasBaseException { public AtlasRelationshipDef() {
this(null, null, null, null,null, null, null); this(null, null, null, null,null, null, null);
} }
...@@ -158,8 +155,7 @@ public class AtlasRelationshipDef extends AtlasStructDef implements java.io.Seri ...@@ -158,8 +155,7 @@ public class AtlasRelationshipDef extends AtlasStructDef implements java.io.Seri
PropagateTags propagatetags, PropagateTags propagatetags,
AtlasRelationshipEndDef endDef1, AtlasRelationshipEndDef endDef1,
AtlasRelationshipEndDef endDef2) { AtlasRelationshipEndDef endDef2) {
this(name, description, typeVersion, relationshipCategory,propagatetags, endDef1, endDef2, this(name, description, typeVersion, relationshipCategory,propagatetags, endDef1, endDef2, new ArrayList<>());
new ArrayList<AtlasAttributeDef>());
} }
/** /**
...@@ -185,16 +181,13 @@ public class AtlasRelationshipDef extends AtlasStructDef implements java.io.Seri ...@@ -185,16 +181,13 @@ public class AtlasRelationshipDef extends AtlasStructDef implements java.io.Seri
* the relationship instance * the relationship instance
* *
* The ends are defined as 1 and 2 to avoid implying a direction. So we do not use to and from. * 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, public AtlasRelationshipDef(String name, String description, String typeVersion, String serviceType,
RelationshipCategory relationshipCategory, RelationshipCategory relationshipCategory,
PropagateTags propagatetags, PropagateTags propagatetags,
AtlasRelationshipEndDef endDef1, AtlasRelationshipEndDef endDef1,
AtlasRelationshipEndDef endDef2) throws AtlasBaseException { AtlasRelationshipEndDef endDef2) {
this(name, description, typeVersion, relationshipCategory,propagatetags, endDef1, endDef2, this(name, description, typeVersion, serviceType, relationshipCategory,propagatetags, endDef1, endDef2, new ArrayList<>());
new ArrayList<AtlasAttributeDef>());
} }
......
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