Skip to content

Commit 3fb8cea

Browse files
committed
docs: create constructor docs
1 parent 8f134ff commit 3fb8cea

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

application/src/main/java/org/togetherjava/tjbot/features/code/FormatCodeCommand.java

+5
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ final class FormatCodeCommand implements CodeAction {
1616
private final Formatter formatter = new Formatter();
1717
private final ChatGPTFormatter chatGPTFormatter;
1818

19+
/**
20+
* Initializes a {@link FormatCodeCommand} which formats code.
21+
*
22+
* @param service the {@link ChatGptService} instance to be used for code formatting
23+
*/
1924
public FormatCodeCommand(ChatGptService service) {
2025
this.chatGPTFormatter = new ChatGPTFormatter(service);
2126
}

0 commit comments

Comments
 (0)