From bdb3a7ebe617d52a37694b0b99f9ed04d82cb2b8 Mon Sep 17 00:00:00 2001 From: hanna Date: Wed, 25 Aug 2010 22:01:32 +0000 Subject: [PATCH] The tagger was automatically combining identical tags, but this is a problem for the ROD system. Eliminate tag combine operation. git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@4121 348d0f76-0448-11de-a6fe-93d51630548a --- .../sting/commandline/ArgumentTypeDescriptor.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/java/src/org/broadinstitute/sting/commandline/ArgumentTypeDescriptor.java b/java/src/org/broadinstitute/sting/commandline/ArgumentTypeDescriptor.java index 8c2a454e3..091ab78a4 100644 --- a/java/src/org/broadinstitute/sting/commandline/ArgumentTypeDescriptor.java +++ b/java/src/org/broadinstitute/sting/commandline/ArgumentTypeDescriptor.java @@ -230,11 +230,11 @@ public abstract class ArgumentTypeDescriptor { * @return The value of the argument if available, or null if not present. */ protected List getArgumentTags(ArgumentMatches matches) { - Set tags = new LinkedHashSet(); + List tags = new ArrayList(); for( ArgumentMatch match: matches ) { tags.addAll(match.tags); } - return new ArrayList(tags); + return tags; } /** @@ -395,7 +395,7 @@ class CompoundArgumentTypeDescriptor extends ArgumentTypeDescriptor { public Object parse(ParsingEngine parsingEngine,ArgumentSource source, Class type, ArgumentMatches matches) { Class componentType; Object result; - Set tags = new LinkedHashSet(); + List tags = new ArrayList(); if( Collection.class.isAssignableFrom(type) ) { @@ -456,7 +456,7 @@ class CompoundArgumentTypeDescriptor extends ArgumentTypeDescriptor { throw new StingException("Unsupported compound argument type: " + type); // WARNING: Side effect! - parsingEngine.addTags(result,new ArrayList(tags)); + parsingEngine.addTags(result,tags); return result; }