return nameRelationship
authorAndreas Müller <a.mueller@bgbm.org>
Tue, 21 Oct 2014 05:51:06 +0000 (05:51 +0000)
committerAndreas Müller <a.mueller@bgbm.org>
Tue, 21 Oct 2014 05:51:06 +0000 (05:51 +0000)
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/name/TaxonNameBase.java

index 5701b7e7113865d199e4312d810cf9e575254134..de97cfb2c6b16d27095b7acbf2e8a796354d7a30 100644 (file)
@@ -440,11 +440,9 @@ public abstract class TaxonNameBase<T extends TaxonNameBase<?,?>, S extends INam
      * @see                                      #addRelationshipToName(TaxonNameBase, NameRelationshipType, String)
      * @see                                      #addNameRelationship(NameRelationship)
      */
-    public void addRelationshipFromName(TaxonNameBase fromName, NameRelationshipType type, String ruleConsidered){
+    public NameRelationship addRelationshipFromName(TaxonNameBase fromName, NameRelationshipType type, String ruleConsidered){
         //fromName.addRelationshipToName(this, type, null, null, ruleConsidered);
-        NameRelationship rel = this.addRelationshipFromName(fromName, type, null, null, ruleConsidered);
-        
-//             NameRelationship rel = new NameRelationship(this, fromName, type, ruleConsidered);
+        return this.addRelationshipFromName(fromName, type, null, null, ruleConsidered);
     }
     /**
      * Creates a new {@link NameRelationship#NameRelationship(TaxonNameBase, TaxonNameBase, NameRelationshipType, String) name relationship} from another taxon name to <i>this</i> taxon name