diff --git a/src/main/java/org/broadinstitute/barclay/argparser/CommandLineArgumentParser.java b/src/main/java/org/broadinstitute/barclay/argparser/CommandLineArgumentParser.java index f0198aa2..5ba2c1c5 100644 --- a/src/main/java/org/broadinstitute/barclay/argparser/CommandLineArgumentParser.java +++ b/src/main/java/org/broadinstitute/barclay/argparser/CommandLineArgumentParser.java @@ -600,7 +600,7 @@ private void setPositionalArgument(final String stringValue) { c.add(value); } - @SuppressWarnings("unchecked") + @SuppressWarnings({"unchecked", "rawtypes"}) private void setArgument(ArgumentDefinition argumentDefinition, List values) { //special treatment for flags if (argumentDefinition.isFlag() && values.isEmpty()){ @@ -685,6 +685,7 @@ private void setArgument(ArgumentDefinition argumentDefinition, List val } } + @SuppressWarnings({"unchecked", "rawtypes"}) private void setParsedArgumentValue(final ArgumentDefinition argumentDefinition, final Object value) { if (argumentDefinition.isCollection) { if (value == null) { @@ -700,6 +701,7 @@ private void setParsedArgumentValue(final ArgumentDefinition argumentDefinition, } // apply a function to a collection, catching UnsuportedOperationException into a more informative + @SuppressWarnings("rawtypes") private void applyToCollection(final ArgumentDefinition argumentDefinitionCollection, final Consumer function) { final Collection c = (Collection) argumentDefinitionCollection.getFieldValue();