package com.pivotallabs.greatexpectations.matchers;

import com.pivotallabs.greatexpectations.MatcherOf;

@MatcherOf(Boolean.class)
public class BooleanMatcher<T extends Boolean, M extends BooleanMatcher<T, M>> extends ObjectMatcher<T, M> {
  public boolean toBeTrue() {
    return actual.equals(true);
  }

  public boolean toBeFalse() {
    return actual.equals(false);
  }

  @Override public boolean toEqual(T expected) {
    return super.toEqual(expected);
  }
}

@@ -372,97 +372,7 @@
 %0A  %7D
-%0A%0A  @Override public boolean toEqual(T expected) %7B%0A    return super.toEqual(expected);%0A  %7D
 %0A%7D%0A

Remove BooleanMatcher.toEqual().