Skip to content

Commit

Permalink
Remove unnecessary throws clause
Browse files Browse the repository at this point in the history
  • Loading branch information
marcphilipp committed Feb 1, 2021
1 parent 85ee212 commit beddaf4
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ void tryToReadFieldValuePreconditions() throws Exception {
}

@Test
void findMethodDelegates() throws Exception {
void findMethodDelegates() {
assertEquals(ReflectionUtils.findMethod(Boolean.class, "valueOf", String.class.getName()),
ReflectionSupport.findMethod(Boolean.class, "valueOf", String.class.getName()));

Expand All @@ -233,7 +233,7 @@ void findMethodDelegates() throws Exception {
}

@Test
void findMethodPreconditions() throws Exception {
void findMethodPreconditions() {
assertPreconditionViolationException("Class",
() -> ReflectionSupport.findMethod(null, "valueOf", String.class.getName()));
assertPreconditionViolationExceptionForString("Method name",
Expand Down Expand Up @@ -280,13 +280,13 @@ void findMethodsPreconditions() {
}

@Test
void findNestedClassesDelegates() throws Exception {
void findNestedClassesDelegates() {
assertEquals(ReflectionUtils.findNestedClasses(ClassWithNestedClasses.class, ReflectionUtils::isStatic),
ReflectionSupport.findNestedClasses(ClassWithNestedClasses.class, ReflectionUtils::isStatic));
}

@Test
void findNestedClassesPreconditions() throws Exception {
void findNestedClassesPreconditions() {
assertPreconditionViolationException("Class",
() -> ReflectionSupport.findNestedClasses(null, ReflectionUtils::isStatic));
assertPreconditionViolationException("Predicate",
Expand Down

0 comments on commit beddaf4

Please sign in to comment.