As per the TODO message, I removed a check that was no longer necessary. Now ID is an allowable INFO field key.
This commit is contained in:
parent
ed50814ccb
commit
4f2229d399
|
|
@ -184,9 +184,6 @@ public class VariantContext implements Feature { // to enable tribble integratio
|
|||
protected CommonInfo commonInfo = null;
|
||||
public final static double NO_LOG10_PERROR = CommonInfo.NO_LOG10_PERROR;
|
||||
|
||||
@Deprecated // ID is no longer stored in the attributes map
|
||||
private final static String ID_KEY = "ID";
|
||||
|
||||
public final static Set<String> PASSES_FILTERS = Collections.unmodifiableSet(new LinkedHashSet<String>());
|
||||
|
||||
/** The location of this VariantContext */
|
||||
|
|
@ -287,10 +284,6 @@ public class VariantContext implements Feature { // to enable tribble integratio
|
|||
|
||||
this.commonInfo = new CommonInfo(source, log10PError, filters, attributes);
|
||||
|
||||
// todo -- remove me when this check is no longer necessary
|
||||
if ( this.commonInfo.hasAttribute(ID_KEY) )
|
||||
throw new IllegalArgumentException("Trying to create a VariantContext with a ID key. Please use provided constructor argument ID");
|
||||
|
||||
if ( alleles == null ) { throw new IllegalArgumentException("Alleles cannot be null"); }
|
||||
|
||||
// we need to make this a LinkedHashSet in case the user prefers a given ordering of alleles
|
||||
|
|
|
|||
Loading…
Reference in New Issue