Skip to content

Commit

Permalink
Remove deprecated isAccessible method call. Replace with canAccess
Browse files Browse the repository at this point in the history
  • Loading branch information
zapodot committed Jul 11, 2024
1 parent d7754c4 commit b16545f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ private List<Field> findInjectCandidateFields(final Class type) {
private void injectDataSourceOrConnection(final Object testInstance,
final Field field,
final EmbeddedDatabaseCreator embeddedDatabaseCreator) {
boolean accessibleOriginal = field.isAccessible();
boolean accessibleOriginal = field.canAccess(testInstance);
field.setAccessible(true);
try {

Expand Down

0 comments on commit b16545f

Please sign in to comment.