Skip to content

Commit

Permalink
Signature of HasValueMatcher methods was improved
Browse files Browse the repository at this point in the history
  • Loading branch information
TikhomirovSergey committed Sep 12, 2018
1 parent b6a64ef commit 56b01d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ subprojects {
apply plugin: 'maven-publish'

group 'ru.tinkoff.qa.neptune'
version '0.1.10-ALPHA'
version '0.1.11-ALPHA'

sourceCompatibility = 1.9
targetCompatibility = 1.9
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@

public final class HasValueMatcher<Q, T extends SearchContext & HasValue<Q>> extends TypeSafeDiagnosingMatcher<T> {

private final Matcher<Q> criteria;
private final Matcher<? super Q> criteria;

private HasValueMatcher(Matcher<Q> criteria) {
private HasValueMatcher(Matcher<? super Q> criteria) {
checkArgument(criteria != null, "Matcher to check value should be defined.");
this.criteria = criteria;
}
Expand All @@ -39,7 +39,7 @@ public static <Q, T extends SearchContext & HasValue<Q>> HasValueMatcher<Q, T> h
* @param <T> type of an element
* @return instance of {@link HasValueMatcher}
*/
public static <Q, T extends SearchContext & HasValue<Q>> HasValueMatcher<Q, T> hasValue(Matcher<Q> value) {
public static <Q, T extends SearchContext & HasValue<Q>> HasValueMatcher<Q, T> hasValue(Matcher<? super Q> value) {
return new HasValueMatcher<>(value);
}

Expand Down

0 comments on commit 56b01d9

Please sign in to comment.