Skip to content

Commit

Permalink
Minor style changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mvanaken committed Feb 9, 2024
1 parent 899f9d0 commit aca9c71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions core/src/test/java/io/parsingdata/metal/ArgumentsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@ public void runConstructor(final Class<?> clazz, final Object[] arguments) throw
try {
constructors[0].newInstance(arguments);
fail("Should have thrown an IllegalArgumentException.");
}
catch (final InvocationTargetException e) {
} catch (final InvocationTargetException e) {
assertEquals(IllegalArgumentException.class, e.getCause().getClass());
final String message = e.getCause().getMessage();
assertTrue(message.endsWith("may not be null.") || message.endsWith("may not be empty."));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ private static void injectFieldAndAssert(final Object instance, final String fie
ReflectionUtils.makeAccessible(field);
field.set(instance, fieldValue);
assertions.execute();
}
finally {
} finally {
field.setAccessible(isAccessible);
}
}
Expand Down

0 comments on commit aca9c71

Please sign in to comment.