Skip to content

Upgrade to DynamiaTools 5.4.7 and improved javadocs#10

Merged
marioserrano09 merged 2 commits intomasterfrom
3.x
Dec 1, 2025
Merged

Upgrade to DynamiaTools 5.4.7 and improved javadocs#10
marioserrano09 merged 2 commits intomasterfrom
3.x

Conversation

@marioserrano09
Copy link
Contributor

No description provided.

… asynchronous methods

Signed-off-by: Mario Serrano <mario@dynamiasoluciones.com>
… UI, and update dependencies

Signed-off-by: Mario Serrano <mario@dynamiasoluciones.com>
Copilot AI review requested due to automatic review settings December 1, 2025 01:35
@marioserrano09 marioserrano09 merged commit e852bdc into master Dec 1, 2025
3 checks passed
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR upgrades the project's dependencies and enhances API documentation. The main change is upgrading from DynamiaTools 5.4.0 to 5.4.7, along with updating Spring Boot to 3.5.8 and AWS SDK to 2.39.5. The module version is bumped from 3.4.0 to 3.5.0.

Key changes include:

  • Migration from Future to CompletableFuture return types in async email and OTP service methods
  • Comprehensive javadoc improvements across service interfaces with detailed parameter descriptions, return value documentation, and usage examples
  • Cleanup of unused imports and removal of leading blank lines in some source files

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
sources/pom.xml Updated parent module version to 3.5.0 and upgraded dependencies: DynamiaTools (5.4.0→5.4.7), SaaS (3.4.0→3.5.0), Spring Boot (3.5.3→3.5.8), AWS SDK (2.31.61→2.39.5)
sources/core/pom.xml Updated module and parent version to 3.5.0
sources/ui/pom.xml Updated module, parent, and email dependency versions to 3.5.0
sources/core/src/main/java/tools/dynamia/modules/email/services/impl/OTPServiceImpl.java Changed return type from Future to CompletableFuture, removed unused TaskWithResult import, updated to use lambda with SchedulerUtil.runWithResult()
sources/core/src/main/java/tools/dynamia/modules/email/services/impl/EmailServiceImpl.java Changed return type from Future to CompletableFuture for async send methods
sources/core/src/main/java/tools/dynamia/modules/email/services/SMSService.java Enhanced interface and method javadocs with detailed descriptions, parameter documentation, and return value specifications
sources/core/src/main/java/tools/dynamia/modules/email/services/OTPService.java Added comprehensive class and method javadocs, changed return type from Future to CompletableFuture, added CompletableFuture import
sources/core/src/main/java/tools/dynamia/modules/email/services/EmailService.java Extensively improved javadocs for all methods with detailed parameter descriptions and usage guidance, changed return types from Future to CompletableFuture, removed unused import
sources/core/src/main/java/tools/dynamia/modules/email/SMSServiceListener.java Enhanced interface and method javadocs with lifecycle explanations and usage guidelines, documented the "Sended" naming for backward compatibility

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

import tools.dynamia.modules.email.OTPSendResult;

import java.util.concurrent.CompletableFuture;
import java.util.concurrent.Future;
Copy link

Copilot AI Dec 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused import: java.util.concurrent.Future is imported but no longer used in this interface. The return type has been changed to CompletableFuture and this import should be removed.

Suggested change
import java.util.concurrent.Future;

Copilot uses AI. Check for mistakes.
* <p>
* The selected transport(s) depend on implementation and the {@link OTPMessage} fields (e.g., presence of
* email address, phone number, or explicit channel selection). Delivery may happen asynchronously; use the
* returned {@link Future} to check completion and obtain the {@link OTPSendResult}.
Copy link

Copilot AI Dec 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent documentation: The javadoc references {@link Future} but the actual return type is CompletableFuture. The javadoc should be updated to {@link CompletableFuture} for accuracy.

Copilot uses AI. Check for mistakes.
Comment on lines +32 to +33
* @return a {@link Future} that completes with {@link OTPSendResult} indicating success, failure, and relevant
* details (e.g., which channels were used). The future may complete exceptionally if an unrecoverable error occurs.
Copy link

Copilot AI Dec 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent documentation: The javadoc references {@link Future} but the actual return type is CompletableFuture. The javadoc should be updated to {@link CompletableFuture} for accuracy.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant