Skip to content

Commit

Permalink
Polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
linux-china committed Oct 19, 2021
1 parent 6491f19 commit 136c4f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/jeasy/random/RecordFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ private <T> T createRandomRecord(Class<T> recordType) {
try {
// check bean validation annotation
final Field declaredField = recordType.getDeclaredField(recordComponent.getName());
if (declaredField.getAnnotations().length >= 1) {
if (declaredField.getAnnotations().length > 0) {
final Randomizer<?> randomizer = beanValidationHandlers.getRandomizer(declaredField);
if (randomizer != null) {
componentValue = randomizer.getRandomValue();
Expand Down

0 comments on commit 136c4f6

Please sign in to comment.