Skip to content

Bundle util refactoring#3255

Merged
lbownik merged 4 commits intodevelopfrom
bundle_util_refactoring
Apr 14, 2026
Merged

Bundle util refactoring#3255
lbownik merged 4 commits intodevelopfrom
bundle_util_refactoring

Conversation

@lbownik
Copy link
Copy Markdown
Contributor

@lbownik lbownik commented Mar 27, 2026

No description provided.

return bundle != EMPTY_BUNDLE;
}

private static boolean isNotInternal(final String bundleName) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this method should return false for DEFAULT_BUNDLE_FILE etc
But maybe we should consider create method for positive case isInternal?
And use isInternal in isNotInternal

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

i think isNot internat reads better (more explicit) in
return isNotMetadataBundle(bundleName)
&& isNotInternal(bundleName)
&& loaderPath != null;

than

return isNotMetadataBundle(bundleName)
&& !isInternal(bundleName)
&& loaderPath != null;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

if name will stay with not i think default case should return true

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed

@rscipien rscipien assigned lbownik and unassigned rscipien Apr 13, 2026
@lbownik lbownik requested a review from rscipien April 13, 2026 08:42
@lbownik lbownik assigned rscipien and unassigned lbownik Apr 13, 2026
@rscipien rscipien assigned lbownik and unassigned rscipien Apr 14, 2026
@lbownik lbownik assigned rscipien and unassigned lbownik Apr 14, 2026
@rscipien rscipien assigned lbownik and unassigned rscipien Apr 14, 2026
@lbownik lbownik force-pushed the bundle_util_refactoring branch from d44556a to 05497a7 Compare April 14, 2026 08:51
@lbownik lbownik merged commit 4d25cfe into develop Apr 14, 2026
1 check passed
@lbownik lbownik deleted the bundle_util_refactoring branch April 14, 2026 09:22
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