Skip to content

Commit

Permalink
Remove unused import and tidy annotation javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelcowan committed Feb 25, 2024
1 parent 06e4dc0 commit ff425d7
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
import java.util.Collections;
import java.util.Set;

import java.util.function.Consumer;
import org.assertj.core.internal.Classes;

/**
Expand Down Expand Up @@ -668,7 +667,7 @@ public SELF hasAnnotation(Class<? extends Annotation> annotation) {
}

/**
* Verifies that the actual {@code Class} has the given {@code Annotation} satisfying the given requirements expressed as a {@link Consumer}.
* Verifies that the {@code Class} has the given {@code Annotation} and returns a new {@link Assert} narrowed to that type.
* <p>
* This is useful to perform a group of assertions on an annotation after checking for its presence.
* <p>
Expand All @@ -689,7 +688,7 @@ public SELF hasAnnotation(Class<? extends Annotation> annotation) {
* .extracting(Droid::model, Droid::function)
* .containsExactly("R2 unit", "Astromech"));
*
* // These assertion fail:
* // These assertions fail:
* assertThat(R2D2.class)
* .annotation(SpaceShip.class);
*
Expand Down

0 comments on commit ff425d7

Please sign in to comment.