Improve code comments.
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Wed, 7 Jan 2026 00:04:13 +0000 (02:04 +0200)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Wed, 7 Jan 2026 00:04:13 +0000 (02:04 +0200)
src/main/java/eu/svjatoslav/alyverkko_cli/commands/task_processor/TaskProcessorCommand.java

index 596cb98..c7ac0d5 100644 (file)
@@ -208,6 +208,9 @@ public class TaskProcessorCommand implements Command {
         }
     }
 
+    /**
+     * Persists AI response to the file; deletes the original file
+     */
     private static void saveAiResponseToFile(File file, Task task, String aiResponse) throws IOException {
         StringBuilder resultFileContent = new StringBuilder();
 
@@ -274,6 +277,9 @@ public class TaskProcessorCommand implements Command {
     }
 
 
+    /**
+     * Returns duration string based on elapsed time.
+     */
     private static String getDuration(long startTimeMillis, long endTimeMillis) {
 
         long durationSeconds = (endTimeMillis - startTimeMillis) / 1000;
@@ -289,7 +295,7 @@ public class TaskProcessorCommand implements Command {
 
     /**
      * Builds a Task object from the contents of a file.
-     *
+     * <p>
      * This method now implements a three-level hierarchy for model selection:
      * 1. Explicit model specified in TOCOMPUTE line (the highest priority)
      * 2. Model alias defined in the skill configuration (if present)