sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1796601 - /sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/LinkOperation.java
Date Mon, 29 May 2017 09:15:37 GMT
Author: desruisseaux
Date: Mon May 29 09:15:36 2017
New Revision: 1796601

URL: http://svn.apache.org/viewvc?rev=1796601&view=rev
Log:
LinkOperation should check if the referenced property is itself another LinkOperation.

Modified:
    sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/LinkOperation.java

Modified: sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/LinkOperation.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/LinkOperation.java?rev=1796601&r1=1796600&r2=1796601&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/LinkOperation.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-feature/src/main/java/org/apache/sis/feature/LinkOperation.java
[UTF-8] Mon May 29 09:15:36 2017
@@ -70,8 +70,11 @@ final class LinkOperation extends Abstra
      *
      * @see FeatureOperations#link(Map, PropertyType)
      */
-    LinkOperation(final Map<String,?> identification, final PropertyType referent)
{
+    LinkOperation(final Map<String,?> identification, PropertyType referent) {
         super(identification);
+        if (referent instanceof LinkOperation) {
+            referent = ((LinkOperation) referent).result;
+        }
         result = referent;
         referentName = referent.getName().toString();
     }



Mime
View raw message