Skip to content

Commit 7b38bce

Browse files
committed
Add javadoc
1 parent 774063e commit 7b38bce

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

components/sbm-core/src/test/java/org/springframework/sbm/project/resource/TestProjectContext.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,12 @@ public Builder addJavaSource(Path sourcePathDir, String sourceCode) {
320320
return this;
321321
}
322322

323+
/**
324+
* Adds a Java source file to the {@code ProjectContext}.
325+
*
326+
* @param sourcePath e.g. {@code src/main/java} or {@code src/test/java} the package and classname are extracted from the given source code
327+
* @param sourceCode the source code of the java file. It will be used to calculate package and classname.
328+
*/
323329
public Builder addJavaSource(String sourcePath, String sourceCode) {
324330
return addJavaSource(Path.of(sourcePath), sourceCode);
325331
}

0 commit comments

Comments
 (0)