From f870fa638d3cb9ba7da34a01fee06da801c9da50 Mon Sep 17 00:00:00 2001 From: Britton Isbell Date: Wed, 12 Nov 2008 20:47:14 +0000 Subject: [PATCH] Dedup interpolator property in list. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@713505 13f79535-47bb-0310-9956-ffa450edef68 --- .../maven/shared/model/ModelTransformerContext.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/maven-shared-model/src/main/java/org/apache/maven/shared/model/ModelTransformerContext.java b/maven-shared-model/src/main/java/org/apache/maven/shared/model/ModelTransformerContext.java index 792af4b23b..282d1ab908 100644 --- a/maven-shared-model/src/main/java/org/apache/maven/shared/model/ModelTransformerContext.java +++ b/maven-shared-model/src/main/java/org/apache/maven/shared/model/ModelTransformerContext.java @@ -120,7 +120,14 @@ public final class ModelTransformerContext } } } - return interpolatorProperties; + + List ips = new ArrayList(); + for(InterpolatorProperty ip : interpolatorProperties) { + if(!ips.contains(ip)) { + ips.add(ip); + } + } + return ips; } public static void interpolateModelProperties(List modelProperties,