Skip to content

fix: #2058 return empty map instead of null in Metadata domain - #2088

Merged
lbroudoux merged 1 commit into
microcks:masterfrom
Manar-Elhabbal7:fix/return-empty-map-metadata
Jul 9, 2026
Merged

lbroudoux merged 1 commit into
microcks:masterfrom
Manar-Elhabbal7:fix/return-empty-map-metadata

Conversation

@Manar-Elhabbal7

Copy link
Copy Markdown
Contributor

Description

  1. Return Collections.emptyMap()from getAnnotations() when annotations are not set.
  2. Return Collections.emptyMap() from getLabels() when labels are not set.
  3. Keep both getters behavior consistent by always returning immutable, non-null maps to avoid extra null checks for callers.

Related issue(s)

Part of #2058

@github-actions

github-actions Bot commented May 5, 2026

Copy link
Copy Markdown

👋 @Manar-Elhabbal7

Welcome to the Microcks community! 💖

Thanks and congrats 🎉 for opening your first pull request here! Be sure to follow the pull request template or please update it accordingly.

Hope you have a great time there!

@Manar-Elhabbal7 Manar-Elhabbal7 changed the title fix: return empty map instead of null in Metadata domain fix: #2058 return empty map instead of null in Metadata domain May 5, 2026
@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had recent activity 😴

It will be closed in 30 days if no further activity occurs. To unstale this pull request, add a comment with detailed explanation.

There can be many reasons why some specific pull request has no activity. The most probable cause is lack of time, not lack of interest. Microcks is a Cloud Native Computing Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.

Let us figure out together how to push this pull request forward. Connect with us through one of many communication channels we established here.

Thank you for your patience ❤️

@github-actions github-actions Bot added the stale State due to inactivity label Jun 5, 2026
@SebastienDegodez SebastienDegodez added this to the 1.15.0 milestone Jun 27, 2026

@lbroudoux lbroudoux left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Thanks!

@lbroudoux
lbroudoux merged commit a08d37d into microcks:master Jul 9, 2026
7 checks passed
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown

🎉 @Manar-Elhabbal7

You are now a Microcks community contributor! 💖

Thanks and congrats 🚀 on merging your first pull request! We are delighted and very proud of you! 👏

📢 If you're using Microcks in your organization, please add your company name to this list. 🙏 It really helps the project to gain momentum and credibility. It's a small contribution back to the project with a big impact.

If you need to know why and how to add yourself to the list, please read the blog post "Join the Microcks Adopters list and Empower the vibrant open source Community 🙌"

Kudos and please keep going, we need you 🙌

lbroudoux pushed a commit that referenced this pull request Aug 5, 2026
Signed-off-by: Manar Elhabbal <[email protected]>
(cherry picked from commit a08d37d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/task stale State due to inactivity

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants