Skip to content

fix: Fix the edge case in collection values from Dictionary#69

Merged
JavaSaBr merged 3 commits into
developfrom
fix-bug-in-dictionary-values
May 17, 2026
Merged

fix: Fix the edge case in collection values from Dictionary#69
JavaSaBr merged 3 commits into
developfrom
fix-bug-in-dictionary-values

Conversation

@JavaSaBr
Copy link
Copy Markdown
Owner

@JavaSaBr JavaSaBr commented May 17, 2026

Pull request overview

This PR primarily addresses a dictionary values extraction edge case in the collections module, while also updating logger level padding/tests and bumping the project version.

Changes:

  • Adjusted LinkedEntryUtils.values(...) capacity reservation for partial value extraction.
  • Expanded MutableRefToRefDictionaryTest coverage for denser dictionary values iteration.
  • Updated logger level formatting expectations and bumped version references to 10.0.alpha16.

@JavaSaBr JavaSaBr self-assigned this May 17, 2026
Copilot AI review requested due to automatic review settings May 17, 2026 14:02
@github-actions
Copy link
Copy Markdown

Overall Project 56.75% -0.02% 🍏
Files changed 86.76% 🍏

File Coverage
LoggerLevel.java 100% 🍏
LinkedEntryUtils.java 92.65% -3.67% 🍏
AbstractMutableArray.java 79.02% 🍏

Copy link
Copy Markdown
Contributor

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 primarily addresses a dictionary values extraction edge case in the collections module, while also updating logger level padding/tests and bumping the project version.

Changes:

  • Adjusted LinkedEntryUtils.values(...) capacity reservation for partial value extraction.
  • Expanded MutableRefToRefDictionaryTest coverage for denser dictionary values iteration.
  • Updated logger level formatting expectations and bumped version references to 10.0.alpha16.

Reviewed changes

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

Show a summary per file
File Description
rlib-collections/src/main/java/javasabr/rlib/collections/dictionary/impl/util/LinkedEntryUtils.java Updates partial values collection reservation behavior.
rlib-collections/src/test/java/javasabr/rlib/collections/dictionary/MutableRefToRefDictionaryTest.java Increases test data density for partial values iteration.
rlib-collections/src/main/java/javasabr/rlib/collections/array/impl/AbstractMutableArray.java Whitespace-only cleanup.
rlib-logger-api/src/main/java/javasabr/rlib/logger/api/LoggerLevel.java Changes log level padding offsets.
rlib-logger-impl/src/test/java/javasabr/rlib/logger/impl/DefaultLoggerTest.java Updates logger tests and listener setup/cleanup.
README.md Updates documented RLib version.
build.gradle Updates root project version.
Comments suppressed due to low confidence (1)

rlib-logger-impl/src/test/java/javasabr/rlib/logger/impl/DefaultLoggerTest.java:54

  • These overrides mutate the cached logger returned by LoggerManager, but cleanup only removes the listener and clears captured logs. Because LoggerManager/DefaultLoggerService keeps loggers in a static service cache, DEBUG/INFO/etc. stay enabled for DefaultLoggerTest after this test, which can leak global logger configuration into later tests in the same JVM. Reset the overridden levels in cleanup or avoid mutating the shared logger state.
    logger.overrideEnabled(LoggerLevel.DEBUG, true);
    logger.overrideEnabled(LoggerLevel.WARNING, true);
    logger.overrideEnabled(LoggerLevel.ERROR, true);
    logger.overrideEnabled(LoggerLevel.INFO, true);

Comment thread rlib-logger-impl/src/test/java/javasabr/rlib/logger/impl/DefaultLoggerTest.java Outdated
@github-actions
Copy link
Copy Markdown

Overall Project 56.8% -0.02% 🍏
Files changed 86.76% 🍏

File Coverage
LoggerLevel.java 100% 🍏
LinkedEntryUtils.java 92.65% -3.67% 🍏
AbstractMutableArray.java 79.02% 🍏

@JavaSaBr JavaSaBr merged commit 7294584 into develop May 17, 2026
6 checks passed
@JavaSaBr JavaSaBr deleted the fix-bug-in-dictionary-values branch May 17, 2026 14:11
@github-actions
Copy link
Copy Markdown

Overall Project 56.74% -0.02% 🍏
Files changed 86.76% 🍏

File Coverage
LoggerLevel.java 100% 🍏
LinkedEntryUtils.java 92.65% -3.67% 🍏
AbstractMutableArray.java 79.02% 🍏

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