From 525f249db9033a9e9ddd5abe1503c7c053017add Mon Sep 17 00:00:00 2001 From: christolis Date: Tue, 19 Mar 2024 22:39:29 +0200 Subject: [PATCH] docs: create constructor docs --- .../togetherjava/tjbot/features/code/FormatCodeCommand.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/application/src/main/java/org/togetherjava/tjbot/features/code/FormatCodeCommand.java b/application/src/main/java/org/togetherjava/tjbot/features/code/FormatCodeCommand.java index 66785be970..a2849312d7 100644 --- a/application/src/main/java/org/togetherjava/tjbot/features/code/FormatCodeCommand.java +++ b/application/src/main/java/org/togetherjava/tjbot/features/code/FormatCodeCommand.java @@ -16,6 +16,11 @@ final class FormatCodeCommand implements CodeAction { private final Formatter formatter = new Formatter(); private final ChatGPTFormatter chatGPTFormatter; + /** + * Initializes a {@link FormatCodeCommand} which formats code. + * + * @param service the {@link ChatGptService} instance to be used for code formatting + */ public FormatCodeCommand(ChatGptService service) { this.chatGPTFormatter = new ChatGPTFormatter(service); }