Skip to content

Commit

Permalink
this seems to fix it
Browse files Browse the repository at this point in the history
  • Loading branch information
lbergelson committed Oct 12, 2022
1 parent 785904d commit bdcb3c5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class AlleleAndContext extends SimpleAllele {
private final Allele refAllele;

public AlleleAndContext(final String contig, final int loc, final Allele allele, final Allele refAllele) {
super(allele.getBases(), false);
super(allele.getBases(), allele.isReference());
this.loc = loc;
this.contig = contig;
this.refAllele = refAllele;
Expand Down Expand Up @@ -44,7 +44,7 @@ public boolean equals(final Object o) {

@Override
public int hashCode() {
return 31 * loc + (this != null ? super.hashCode() : 0);
return 31 * loc + super.hashCode();
}

public String toString() {return String.format("(%d) %s/%s", loc, getBaseString(), getRefAllele().getBaseString());}
Expand Down

0 comments on commit bdcb3c5

Please sign in to comment.