Dedup interpolator property in list.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@713505 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Britton Isbell 2008-11-12 20:47:14 +00:00
parent c46e4fd97c
commit f870fa638d
1 changed files with 8 additions and 1 deletions

View File

@ -120,7 +120,14 @@ public final class ModelTransformerContext
} }
} }
} }
return interpolatorProperties;
List<InterpolatorProperty> ips = new ArrayList<InterpolatorProperty>();
for(InterpolatorProperty ip : interpolatorProperties) {
if(!ips.contains(ip)) {
ips.add(ip);
}
}
return ips;
} }
public static void interpolateModelProperties(List<ModelProperty> modelProperties, public static void interpolateModelProperties(List<ModelProperty> modelProperties,