Skip to content

Commit daee88a

Browse files
committed
GH-177 - Javadoc polishing.
1 parent 2454ecb commit daee88a

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ private NamedInterface(String name, Classes classes) {
5353
}
5454

5555
/**
56-
* Returns all {@link PackageBasedNamedInterface}s for the given {@link JavaPackage}.
56+
* Returns all {@link NamedInterface}s for the given {@link JavaPackage}.
5757
*
5858
* @param javaPackage must not be {@literal null}.
5959
* @return will never be {@literal null}.
@@ -73,11 +73,10 @@ static List<NamedInterface> of(JavaPackage javaPackage) {
7373
}
7474

7575
/**
76-
* Returns a {@link TypeBasedNamedInterface} with the given name, {@link Classes} and base {@link JavaPackage}.
76+
* Returns a {@link NamedInterface} with the given name, {@link Classes} and base {@link JavaPackage}.
7777
*
7878
* @param name must not be {@literal null} or empty.
7979
* @param classes must not be {@literal null}.
80-
* @param basePackage must not be {@literal null}.
8180
* @return will never be {@literal null}.
8281
*/
8382
static NamedInterface of(String name, Classes classes) {
@@ -156,7 +155,7 @@ public Iterator<JavaClass> iterator() {
156155
}
157156

158157
/**
159-
* Merges the current {@link NamedInterface} with the given {@link TypeBasedNamedInterface}.
158+
* Merges the current {@link NamedInterface} with the given {@link NamedInterface}.
160159
*
161160
* @param other must not be {@literal null}.
162161
* @return will never be {@literal null}.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,14 +145,14 @@ public Iterator<NamedInterface> iterator() {
145145
}
146146

147147
/**
148-
* Creates a new {@link NamedInterfaces} instance with the given {@link TypeBasedNamedInterface}s added.
148+
* Creates a new {@link NamedInterfaces} instance with the given {@link NamedInterface}s added.
149149
*
150150
* @param others must not be {@literal null}.
151151
* @return will never be {@literal null}.
152152
*/
153153
NamedInterfaces and(List<NamedInterface> others) {
154154

155-
Assert.notNull(others, "Other TypeBasedNamedInterfaces must not be null!");
155+
Assert.notNull(others, "Other NamedInterfaces must not be null!");
156156

157157
var namedInterfaces = new ArrayList<NamedInterface>();
158158
var unmergedInterface = this.namedInterfaces;

0 commit comments

Comments
 (0)