Skip to content

Commit

Permalink
Fix implementation of RandomNumberExtension in the User Guide
Browse files Browse the repository at this point in the history
Closes #3433
  • Loading branch information
sbrannen committed Aug 25, 2023
1 parent 9a9063d commit e0621f5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private void injectFields(Class<?> testClass, Object testInstance,
}

private static boolean isInteger(Class<?> type) {
return int.class.isAssignableFrom(type);
return type == Integer.class || type == int.class;
}

}
Expand Down

0 comments on commit e0621f5

Please sign in to comment.