From 8e2d372ab0649a003745ffbd319e64e6f5df2e25 Mon Sep 17 00:00:00 2001 From: Eric Banks Date: Wed, 25 Jan 2012 14:41:34 -0500 Subject: [PATCH] Use remove instead of setting the value to null --- .../sting/gatk/walkers/genotyper/ExactAFCalculationModel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/java/src/org/broadinstitute/sting/gatk/walkers/genotyper/ExactAFCalculationModel.java b/public/java/src/org/broadinstitute/sting/gatk/walkers/genotyper/ExactAFCalculationModel.java index 24d7696b5..aee003089 100755 --- a/public/java/src/org/broadinstitute/sting/gatk/walkers/genotyper/ExactAFCalculationModel.java +++ b/public/java/src/org/broadinstitute/sting/gatk/walkers/genotyper/ExactAFCalculationModel.java @@ -214,7 +214,7 @@ public class ExactAFCalculationModel extends AlleleFrequencyCalculationModel { // clean up memory if ( !preserveData ) { for ( ExactACcounts index : set.dependentACsetsToDelete ) { - indexesToACset.put(index, null); + indexesToACset.remove(index); //if ( DEBUG ) // System.out.printf(" *** removing used set=%s after seeing final dependent set=%s%n", index, set.ACcounts); } @@ -229,7 +229,7 @@ public class ExactAFCalculationModel extends AlleleFrequencyCalculationModel { // no reason to keep this data around because nothing depends on it if ( !preserveData ) - indexesToACset.put(set.ACcounts, null); + indexesToACset.remove(set.ACcounts); return log10LofK; }