Use remove instead of setting the value to null

This commit is contained in:
Eric Banks 2012-01-25 14:41:34 -05:00
parent 05816955aa
commit 8e2d372ab0
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}