Skip to content

Commit c45a0fc

Browse files
committed
GH-522 - Polishing.
1 parent 5f7e6a2 commit c45a0fc

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

spring-modulith-core/src/main/java/org/springframework/modulith/core/ApplicationModuleInformation.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ static class SpringModulithModule implements ApplicationModuleInformation {
147147
private final Optional<ApplicationModule> annotation;
148148

149149
/**
150-
* Whether the given {@link JavaPackage} supports this {@link ApplicationModuleInformation}.
150+
* Whether the given {@link AnnotationLookup} supports this {@link ApplicationModuleInformation}.
151151
*
152-
* @param javaPackage must not be {@literal null}.
152+
* @param lookup must not be {@literal null}.
153153
*/
154154
public static boolean supports(AnnotationLookup lookup) {
155155

@@ -159,9 +159,9 @@ public static boolean supports(AnnotationLookup lookup) {
159159
}
160160

161161
/**
162-
* Creates a new {@link SpringModulithModule} for the given {@link JavaPackage}.
162+
* Creates a new {@link SpringModulithModule} for the given {@link AnnotationLookup}.
163163
*
164-
* @param javaPackage must not be {@literal null}.
164+
* @param lookup must not be {@literal null}.
165165
*/
166166
public SpringModulithModule(AnnotationLookup lookup) {
167167
this.annotation = lookup.lookup(ApplicationModule.class);

spring-modulith-core/src/main/java/org/springframework/modulith/core/JavaPackage.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,6 @@ public <A extends Annotation> Optional<A> getAnnotation(Class<A> annotationType)
246246
*
247247
* @param <A> the type of the annotation.
248248
* @param annotationType must not be {@literal null}.
249-
* @param typeFilter must not be {@literal null}.
250249
* @return will never be {@literal null}.
251250
* @since 1.2
252251
* @throws IllegalStateException in case multiple types in the current package are annotated with the given

0 commit comments

Comments
 (0)