Skip to content

Conversation

@marioserrano09
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings January 9, 2026 12:50
@marioserrano09 marioserrano09 merged commit 6c87160 into main Jan 9, 2026
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 pull request fixes a bug in the SpringApplicationEventsMessageService where MessageEvent objects were being created with incorrect parameter ordering. The version has been bumped from 5.4.13 to 5.4.14 across all modules.

Key changes:

  • Corrected MessageEvent instantiation to pass parameters in the correct order (topic, callback instead of channel, topic)
  • Added string constants for header keys to reduce magic strings
  • Added a new constructor overload to MessageEvent for convenience
  • Removed @component and @Autowired annotations from SpringApplicationEventsMessageService
  • Version bump across all Maven modules from 5.4.13 to 5.4.14

Reviewed changes

Copilot reviewed 19 out of 19 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
integration/src/main/java/tools/dynamia/integration/ms/SpringApplicationEventsMessageService.java Fixed bug in MessageEvent creation; added constants for header keys; removed Spring annotations
integration/src/main/java/tools/dynamia/integration/ms/MessageEvent.java Added new 2-parameter constructor for convenience
integration/pom.xml Version bump to 5.4.14
pom.xml Parent version bump to 5.4.14
All other pom.xml files Version updates across all modules to maintain consistency

*/
@Component

public class SpringApplicationEventsMessageService implements MessageService {
Copy link

Copilot AI Jan 9, 2026

Choose a reason for hiding this comment

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

The @component annotation has been removed from this class, which means it will no longer be automatically detected and registered as a Spring bean through component scanning. This is a breaking change that will require users to manually configure this bean in their Spring configuration. If this is intentional (to allow more flexible configuration), consider documenting this change and providing configuration examples. If not, the @component annotation should be restored.

Copilot uses AI. Check for mistakes.

@Autowired

public SpringApplicationEventsMessageService(ApplicationEventPublisher eventPublisher) {
Copy link

Copilot AI Jan 9, 2026

Choose a reason for hiding this comment

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

The @Autowired annotation has been removed from this constructor. While constructor injection in Spring does not strictly require @Autowired when there is only one constructor (Spring will use it automatically), removing this annotation may reduce code clarity for readers and could cause issues if another constructor is added later. Consider keeping the @Autowired annotation for explicit documentation of the dependency injection intent.

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.

2 participants