Another round of FindBugs fixes. Object returns its internal reference to an externally mutable array. Very dangerous.

This commit is contained in:
Ryan Poplin 2012-08-21 09:35:55 -04:00
parent 605acaae9c
commit 10961db3ce
2 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ public class DeBruijnVertex {
} }
public byte[] getSequence() { public byte[] getSequence() {
return sequence; return sequence.clone();
} }
public byte[] getSuffix() { public byte[] getSuffix() {

View File

@ -140,10 +140,10 @@ public class Haplotype {
} }
public double[] getQuals() { public double[] getQuals() {
return quals; return quals.clone();
} }
public byte[] getBases() { public byte[] getBases() {
return bases; return bases.clone();
} }
public long getStartPosition() { public long getStartPosition() {