Skip to content

Commit

Permalink
[jqwik] Minor simplification.
Browse files Browse the repository at this point in the history
  • Loading branch information
SimY4 committed Sep 3, 2024
1 parent 4429cbb commit 271f820
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
public class CoregexArbitraryProvider implements ArbitraryProvider {
@Override
public boolean canProvideFor(TypeUsage targetType) {
return targetType.isAssignableFrom(String.class)
&& targetType.findAnnotation(Regex.class).isPresent();
return targetType.isAssignableFrom(String.class) && targetType.isAnnotated(Regex.class);
}

@Override
Expand Down

0 comments on commit 271f820

Please sign in to comment.