Another round of FindBugs fixes. Object returns its internal reference to an externally mutable array. Very dangerous.
This commit is contained in:
parent
605acaae9c
commit
10961db3ce
|
|
@ -37,7 +37,7 @@ public class DeBruijnVertex {
|
|||
}
|
||||
|
||||
public byte[] getSequence() {
|
||||
return sequence;
|
||||
return sequence.clone();
|
||||
}
|
||||
|
||||
public byte[] getSuffix() {
|
||||
|
|
|
|||
|
|
@ -140,10 +140,10 @@ public class Haplotype {
|
|||
}
|
||||
|
||||
public double[] getQuals() {
|
||||
return quals;
|
||||
return quals.clone();
|
||||
}
|
||||
public byte[] getBases() {
|
||||
return bases;
|
||||
return bases.clone();
|
||||
}
|
||||
|
||||
public long getStartPosition() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue