Use remove instead of setting the value to null
This commit is contained in:
parent
05816955aa
commit
8e2d372ab0
|
|
@ -214,7 +214,7 @@ public class ExactAFCalculationModel extends AlleleFrequencyCalculationModel {
|
||||||
// clean up memory
|
// clean up memory
|
||||||
if ( !preserveData ) {
|
if ( !preserveData ) {
|
||||||
for ( ExactACcounts index : set.dependentACsetsToDelete ) {
|
for ( ExactACcounts index : set.dependentACsetsToDelete ) {
|
||||||
indexesToACset.put(index, null);
|
indexesToACset.remove(index);
|
||||||
//if ( DEBUG )
|
//if ( DEBUG )
|
||||||
// System.out.printf(" *** removing used set=%s after seeing final dependent set=%s%n", index, set.ACcounts);
|
// 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
|
// no reason to keep this data around because nothing depends on it
|
||||||
if ( !preserveData )
|
if ( !preserveData )
|
||||||
indexesToACset.put(set.ACcounts, null);
|
indexesToACset.remove(set.ACcounts);
|
||||||
|
|
||||||
return log10LofK;
|
return log10LofK;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue