Do not read feature twice 69/79469/1
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 11 Jan 2019 12:13:53 +0000 (13:13 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 11 Jan 2019 12:14:19 +0000 (13:14 +0100)
We have already read the feature, there is no point in unmarshalling
it yet again.

Change-Id: Id34dc83165b0479e12abdb915ec8dc42cfa9853a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
karaf-plugin/src/main/java/org/opendaylight/odlparent/FeatureUtil.java

index 01bcecb661efd45c82786f08e4c15ecdf5cfa41b..81c7a2aba7c919b931c0c1c290d3ae12e06964c9 100644 (file)
@@ -332,7 +332,7 @@ public final class FeatureUtil {
                 Features feature = readFeature(coord);
                 result.add(feature);
                 LOG.debug("findAllFeaturesRecursively() added {}", coord);
-                result.addAll(findAllFeaturesRecursively(readFeature(coord), existingCoords));
+                result.addAll(findAllFeaturesRecursively(feature, existingCoords));
             } else {
                 LOG.trace("findAllFeaturesRecursively() skips known {}", coord);
             }