You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by ma...@apache.org on 2019/04/27 17:34:51 UTC
[atlas] branch branch-1.0 updated: ATLAS-3160: remove unthrown
exception specified in AtlasRelationshipDef constructors
This is an automated email from the ASF dual-hosted git repository.
madhan pushed a commit to branch branch-1.0
in repository https://gitbox.apache.org/repos/asf/atlas.git
The following commit(s) were added to refs/heads/branch-1.0 by this push:
new 8f41eb6 ATLAS-3160: remove unthrown exception specified in AtlasRelationshipDef constructors
8f41eb6 is described below
commit 8f41eb6f7fb9883ccf86a747b4532a9722333d15
Author: Diego Marino Monetti <dm...@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 <ma...@apache.org>
(cherry picked from commit 0a5eb916e48d514fadd802bf5c4ed671d4de91cc)
---
.../atlas/model/typedef/AtlasRelationshipDef.java | 19 +++++--------------
1 file changed, 5 insertions(+), 14 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 98fbde5..bff62ca 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);
}
@@ -151,16 +148,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,
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, relationshipCategory,propagatetags, endDef1, endDef2, new ArrayList<>());
}
/**
@@ -186,16 +180,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<>());
}