Skip to content

chore: modernize collection usage in multiple extensions#8269

Open
sanjana2505006 wants to merge 1 commit intoapache:mainfrom
sanjana2505006:chore/modernize-batch-2
Open

chore: modernize collection usage in multiple extensions#8269
sanjana2505006 wants to merge 1 commit intoapache:mainfrom
sanjana2505006:chore/modernize-batch-2

Conversation

@sanjana2505006
Copy link
Contributor

This PR continues the effort to modernize the codebase by replacing older Collections utility methods with their Java 9+ immutable equivalents.

Changes:

  • Replaced Collections.emptyList(), Collections.emptySet(), and Collections.emptyMap() with List.of(), Set.of(), and Map.of().
  • Replaced Collections.singleton() with Set.of().
  • Removed unused imports in affected files.

Affected Extensions:

  • camel-quarkus-csimple
  • camel-quarkus-xslt
  • camel-quarkus-smb
  • camel-quarkus-aws2-kinesis
  • camel-quarkus-jira
  • camel-quarkus-jolokia
  • camel-quarkus-grpc

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