Skip to content

build(deps): Bump com.cedarsoftware:java-util from 3.9.0 to 4.0.0 #2278

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 19, 2025

Bumps com.cedarsoftware:java-util from 3.9.0 to 4.0.0.

Changelog

Sourced from com.cedarsoftware:java-util's changelog.

4.0.0

  • FEATURE: Added deepCopyContainers() method to CollectionUtilities and ArrayUtilities:
    • Deep Container Copy: Iteratively copies all arrays and collections to any depth while preserving references to non-container objects ("berries")
    • Iterative Implementation: Uses heap-based traversal with work queue to avoid stack overflow on deeply nested structures
    • Circular Reference Support: Properly handles circular references, maintaining the circular structure in the copy
    • Enhanced Type Preservation:
      • EnumSet → EnumSet (preserves enum type)
      • Deque → LinkedList (preserves deque operations, supports nulls)
      • PriorityQueue → PriorityQueue (preserves comparator and heap semantics)
      • SortedSet → TreeSet (preserves comparator and sorting)
      • Set → LinkedHashSet (preserves insertion order)
      • List → ArrayList (optimized for random access)
      • Other Queue types → LinkedList (preserves queue operations)
    • Performance Optimizations:
      • Primitive arrays use System.arraycopy for direct copying without boxing/unboxing overhead
      • Primitive arrays at root level are not queued (already fully copied)
      • Collections are pre-sized to avoid resize/rehash operations during population
      • Only containers are queued for processing, eliminating per-element allocations
      • Direct array access for object arrays instead of reflection in tight loops
      • Pre-sized IdentityHashMap (64) to avoid rehash thrashing
      • EnumSet uses efficient clone().clear() for empty sets
    • Maps as Berries: Maps are treated as non-containers and not deep copied
    • Thread Safety Note: Method is not thread-safe under concurrent source mutation
  • FEATURE: Added caseSensitive configuration option to MultiKeyMap:
    • Case-Sensitive Mode: New constructor MultiKeyMap(boolean caseSensitive) allows case-sensitive String key comparisons (default remains case-insensitive)
    • Performance Optimization: Eliminated per-key branching by storing caseSensitive as final field, improving JIT optimization
    • Full API Support: Case sensitivity applies to all MultiKeyMap operations including standard Map interface and multi-key methods
    • Documentation: Updated README.md with examples showing case-sensitive vs case-insensitive behavior
  • DOCUMENTATION: Updated README.md to document MultiKeyMap's advanced configuration options:
    • Added examples for case-sensitive mode configuration
    • Added examples for value-based equality mode for cross-type numeric comparisons
    • Updated comparison table showing MultiKeyMap's unique features vs competitors
  • MAJOR PERFORMANCE OPTIMIZATION: Enhanced MultiKeyMap with comprehensive performance improvements based on GPT5 code review:
    • Fixed KIND_COLLECTION Fast Path: Added !valueBasedEquality check to gate fast path, ensuring collections with numerically equivalent but type-different elements match correctly (e.g., [1,2,3] matches [1L,2L,3L] in value-based mode)
    • Optimized compareNumericValues: Replaced with highly optimized version using same-class fast paths, avoiding BigDecimal conversion for common cases. Added helper methods: isIntegralLike, isBig, extractLongFast, toBigDecimal
    • Defensive RandomAccess Checking: Added instanceof List checks before instanceof RandomAccess in 6 locations to prevent ClassCastException
    • Branch-Free Loop Optimization: Split loops by valueBasedEquality mode in 7 comparison methods, eliminating per-element branching for better JIT optimization and CPU branch prediction
    • Avoided Primitive Boxing: Refactored comparePrimitiveArrayToObjectArray to avoid boxing in type-strict mode with direct type checking
    • Collapsed Duplicate Type Ladders: Created primVsList and primVsIter helper methods, eliminating redundant 8-type switch statements and reducing bytecode size
    • Consolidated Symmetric Methods: Made symmetric comparison methods delegate to their counterparts, reducing code duplication
    • NaN Handling for Primitive Arrays: Added special NaN handling for double[] and float[] arrays respecting valueBasedEquality mode
    • Ref-Equality Guards: Added if (a == b) continue; guards in all comparison loops, leveraging JVM caching for common values
  • PERFORMANCE ENHANCEMENT: Enhanced MultiKeyMap with significant hash computation optimizations:
    • Hash Computation Limit: Added MAX_HASH_ELEMENTS (4) limit to bound hash computation for large arrays/collections, significantly improving performance
    • Early Exit Optimization: Hash computation now stops early for large containers while maintaining excellent hash distribution
    • Dimensionality Check Optimization: Separated hash computation from dimensionality detection for better performance on large containers
    • ArrayList Optimization: Added specialized fast path for ArrayList iteration avoiding iterator overhead
    • Primitive Array Optimizations: Enhanced hash computation for String[], int[], long[], double[], and boolean[] arrays with bounded processing
    • Generic Array Processing: Improved reflection-based array processing with hash computation limits
    • Collection Processing: Optimized both ArrayList and generic Collection processing with early termination

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file java Pull requests that update Java code labels Aug 19, 2025
Copy link

vercel bot commented Aug 19, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
javafx-tool Ready Ready Preview Comment Aug 20, 2025 10:24am

Copy link

Thank you for following naming conventions! 😻

Copy link

coderabbitai bot commented Aug 19, 2025

Important

Review skipped

Ignore keyword(s) in the title.

⛔ Ignored keywords (1)
  • build(deps)

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Join our Discord community for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

mergify bot commented Aug 19, 2025

@unknowIfGuestInDream
Please also modify the following files, thank you.

  • docs/README.md
  • core/src/main/java/com/tlcsdm/core/util/DependencyInfo.java

Copy link
Contributor

github-actions bot commented Aug 19, 2025

阿里云 Maven 依赖检查结果

点击查看可用的依赖✅ org.junit:junit-bom:5.13.4 - 可用
✅ com.github.stephenc.jcip:jcip-annotations:1.0-1 - 可用
✅ org.openjfx:javafx-web:21.0.7 - 可用
✅ org.openjfx:javafx-media:21.0.7 - 可用
✅ org.openjfx:javafx-swing:21.0.7 - 可用
✅ com.tlcsdm:javafx-swt:21.0.4 - 可用
✅ org.apache.poi:poi-ooxml:5.4.1 - 可用
✅ commons-io:commons-io:2.20.0 - 可用
✅ org.apache.commons:commons-csv:1.14.1 - 可用
✅ org.apache.commons:commons-compress:1.28.0 - 可用
✅ org.apache.commons:commons-exec:1.5.0 - 可用
✅ org.apache.commons:commons-text:1.14.0 - 可用
✅ org.apache.commons:commons-email:1.6.0 - 可用
✅ commons-collections:commons-collections:3.2.2 - 可用
✅ org.apache.commons:commons-collections4:4.5.0 - 可用
✅ org.apache.commons:commons-math3:3.6.1 - 可用
✅ org.apache.commons:commons-crypto:1.2.0 - 可用
✅ commons-codec:commons-codec:1.19.0 - 可用
✅ commons-logging:commons-logging:1.3.5 - 可用
✅ org.freemarker:freemarker:2.3.34 - 可用
✅ jaxen:jaxen:2.0.0 - 可用
✅ org.dom4j:dom4j:2.2.0 - 可用
✅ com.sikulix:sikulixapi:2.0.5 - 可用
✅ com.tlcsdm:tlcsdm-common:1.4.6 - 可用
✅ org.projectlombok:lombok:1.18.38 - 可用
✅ com.tlcsdm:tlcsdm-asyncTool:1.0.1 - 可用
✅ ch.qos.logback:logback-classic:1.5.18 - 可用
✅ org.slf4j:slf4j-api:2.0.17 - 可用
✅ org.apache.commons:commons-configuration2:2.12.0 - 可用
✅ com.googlecode.aviator:aviator:5.4.3 - 可用
✅ org.apache.commons:commons-jexl3:3.5.0 - 可用
✅ commons-beanutils:commons-beanutils:1.11.0 - 可用
✅ org.apache.commons:commons-lang3:3.18.0 - 可用
✅ org.reflections:reflections:0.10.2 - 可用
✅ org.javassist:javassist:3.30.2-GA - 可用
✅ cn.hutool:hutool-core:5.8.39 - 可用
✅ cn.hutool:hutool-json:5.8.39 - 可用
✅ cn.hutool:hutool-crypto:5.8.39 - 可用
✅ cn.hutool:hutool-http:5.8.39 - 可用
✅ cn.hutool:hutool-poi:5.8.39 - 可用
✅ cn.hutool:hutool-log:5.8.39 - 可用
✅ cn.hutool:hutool-dfa:5.8.39 - 可用
✅ cn.hutool:hutool-extra:5.8.39 - 可用
✅ cn.hutool:hutool-cache:5.8.39 - 可用
✅ org.apache.logging.log4j:log4j-core:2.25.1 - 可用
✅ org.apache.logging.log4j:log4j-api:2.25.1 - 可用
✅ org.slf4j:log4j-over-slf4j:2.0.17 - 可用
✅ com.google.guava:guava:33.4.8-jre - 可用
✅ com.github.ben-manes.caffeine:caffeine:3.2.2 - 可用
✅ io.github.java-diff-utils:java-diff-utils:4.16 - 可用
✅ org.testfx:testfx-junit5:4.0.18 - 可用
✅ org.assertj:assertj-core:3.27.4 - 可用
✅ org.apache.pdfbox:pdfbox:3.0.5 - 可用
✅ org.apache.pdfbox:xmpbox:3.0.5 - 可用
✅ org.apache.pdfbox:preflight:3.0.5 - 可用
✅ com.dlsc.pdfviewfx:pdfviewfx:3.1.1 - 可用
✅ technology.tabula:tabula:1.0.5 - 可用
✅ com.google.code.gson:gson:2.13.1 - 可用
✅ com.fasterxml.jackson.core:jackson-databind:2.19.2 - 可用
✅ com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.19.2 - 可用
✅ com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.19.2 - 可用
✅ org.kordamp.bootstrapfx:bootstrapfx-core:0.4.0 - 可用
✅ com.dlsc.formsfx:formsfx-core:11.6.0 - 可用
✅ org.kordamp.ikonli:ikonli-bom:12.4.0 - 可用
✅ org.fxmisc.richtext:richtextfx:0.11.5 - 可用
✅ org.apache.groovy:groovy:4.0.28 - 可用
✅ org.apache.groovy:groovy-templates:4.0.28 - 可用
✅ org.apache.groovy:groovy-json:4.0.28 - 可用
✅ org.apache.groovy:groovy-xml:4.0.28 - 可用
✅ org.apache.groovy:groovy-datetime:4.0.28 - 可用
✅ org.apache.groovy:groovy-swing:4.0.28 - 可用
✅ org.apache.groovy:groovy-jsr223:4.0.28 - 可用
✅ org.apache.groovy:groovy-test-junit5:4.0.28 - 可用
✅ net.coobird:thumbnailator:0.4.20 - 可用
✅ com.dlsc.preferencesfx:preferencesfx-core:11.17.0 - 可用
✅ com.yahoo.platform.yui:yuicompressor:2.4.8 - 可用
✅ org.eclipse.platform:org.eclipse.jface:3.37.0 - 可用
✅ org.eclipse.platform:org.eclipse.swt.win32.win32.x86_64:3.130.0 - 可用
✅ org.eclipse.platform:org.eclipse.swt.cocoa.macosx.x86_64:3.130.0 - 可用
✅ org.eclipse.platform:org.eclipse.swt.gtk.linux.ppc64le:3.130.0 - 可用
✅ net.java.dev.jna:jna-jpms:5.17.0 - 可用
✅ com.alphacephei:vosk:0.3.45 - 可用
✅ net.java.dev.jna:jna-platform-jpms:5.17.0 - 可用
✅ ws.schild:jave-core:3.5.0 - 可用
✅ ws.schild:jave-nativebin-win64:3.5.0 - 可用
✅ ws.schild:jave-nativebin-osxm1:3.5.0 - 可用
✅ ws.schild:jave-nativebin-linux64:3.5.0 - 可用
✅ jakarta.xml.bind:jakarta.xml.bind-api:4.0.2 - 可用
✅ org.glassfish.jaxb:jaxb-core:4.0.5 - 可用
✅ org.glassfish.jaxb:jaxb-runtime:4.0.5 - 可用
✅ org.glassfish.jaxb:jaxb-jxc:4.0.5 - 可用
✅ org.glassfish.jaxb:jaxb-xjc:4.0.5 - 可用
✅ org.glassfish.jaxb:txw2:4.0.5 - 可用
✅ com.sun.xml.bind:jaxb-impl:4.0.5 - 可用
✅ com.sun.xml.bind:jaxb-xjc:4.0.5 - 可用
✅ com.sun.xml.bind:jaxb-jxc:4.0.5 - 可用
✅ org.python:jython-slim:2.7.4 - 可用
✅ se.bjurr.violations:violations-lib:1.157.3 - 可用
✅ net.sourceforge.pmd:pmd-java:7.16.0 - 可用
✅ net.sourceforge.pmd:pmd-test:7.16.0 - 可用
✅ net.sourceforge.pmd:pmd-lang-test:7.16.0 - 可用
✅ net.sourceforge.pmd:pmd-xml:7.16.0 - 可用
✅ net.sourceforge.pmd:pmd-cpp:7.16.0 - 可用
✅ net.sourceforge.pmd:pmd-python:7.16.0 - 可用
✅ net.bytebuddy:byte-buddy:1.17.6 - 可用
✅ net.bytebuddy:byte-buddy-agent:1.17.6 - 可用
✅ net.bytebuddy:byte-buddy-dep:1.17.6 - 可用
✅ org.ow2.asm:asm:9.8 - 可用
✅ org.ow2.asm:asm-commons:9.8 - 可用
✅ org.ow2.asm:asm-util:9.8 - 可用
✅ org.ow2.asm:asm-tree:9.8 - 可用
✅ org.ow2.asm:asm-analysis:9.8 - 可用
✅ net.sourceforge.tess4j:tess4j:5.16.0 - 可用
✅ com.zaxxer:HikariCP:7.0.1 - 可用
✅ com.alibaba:druid:1.2.27 - 可用
✅ com.h2database:h2:2.3.232 - 可用
✅ org.jcommander:jcommander:2.0 - 可用
✅ io.github.java-native:jssc:2.10.2 - 可用
✅ com.fazecast:jSerialComm:2.11.2 - 可用
✅ com.gluonhq:rich-text-area:1.2.2 - 可用
✅ io.github.typhon0:AnimateFX:1.3.0 - 可用
✅ com.github.oshi:oshi-core-java11:6.8.3 - 可用
✅ io.github.classgraph:classgraph:4.8.181 - 可用
✅ org.checkerframework:checker-qual:3.49.5 - 可用
✅ org.jfxtras:jfxtras-controls:17-r1 - 可用
✅ net.lingala.zip4j:zip4j:2.11.5 - 可用
✅ net.sourceforge.plantuml:plantuml-mit:1.2025.4 - 可用
✅ org.apache.commons:commons-imaging:1.0.0-alpha6 - 可用
✅ net.ifok.image:image4j:0.7.2 - 可用
✅ fr.brouillard.oss:cssfx:11.5.1 - 可用
✅ net.jonathangiles.tools:teenyhttpd:1.0.5 - 可用
✅ com.puppycrawl.tools:checkstyle:11.0.0 - 可用
✅ com.cedarsoftware:java-util:4.0.0 - 可用
✅ org.eclipse.collections:eclipse-collections-api:13.0.0 - 可用
✅ org.eclipse.collections:eclipse-collections:13.0.0 - 可用
✅ black.ninia:jep:4.2.2 - 可用
✅ com.twelvemonkeys.imageio:imageio-bmp:3.12.0 - 可用
✅ com.twelvemonkeys.imageio:imageio-icns:3.12.0 - 可用
✅ com.github.gino0631:icns-core:1.2 - 可用
✅ com.google.inject:guice:7.0.0 - 可用
✅ com.google.inject.extensions:guice-testlib:7.0.0 - 可用
✅ org.openjdk.jmh:jmh-core:1.37 - 可用
✅ org.openjdk.jmh:jmh-generator-annprocess:1.37 - 可用
✅ com.github.jtidy:jtidy:1.0.5 - 可用
✅ com.fathzer:javaluator:3.0.6 - 可用
✅ com.palantir.javapoet:javapoet:0.7.0 - 可用
✅ org.openjdk.nashorn:nashorn-core:15.6 - 可用
✅ org.jruby:jruby-core:9.4.13.0 - 可用
✅ io.nayuki:qrcodegen:1.8.0 - 可用
✅ org.xerial:sqlite-jdbc:3.50.3.0 - 可用
✅ org.openjfx:javafx-base:21.0.7 - 可用
✅ org.openjfx:javafx-controls:21.0.7 - 可用
✅ org.openjfx:javafx-fxml:21.0.7 - 可用
✅ org.openjfx:javafx-graphics:21.0.7 - 可用
✅ org.controlsfx:controlsfx:11.2.2 - 可用
✅ org.junit.jupiter:junit-jupiter-api:5.13.4 - 可用
✅ org.junit.jupiter:junit-jupiter-engine:5.13.4 - 可用
✅ org.junit.jupiter:junit-jupiter-params:5.13.4 - 可用

Copy link
Contributor

github-actions bot commented Aug 19, 2025

Qodana Community for JVM

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked

View the detailed Qodana report

To be able to view the detailed Qodana report, you can either:

To get *.log files or any other Qodana artifacts, run the action with upload-result option set to true,
so that the action will upload the files as the job artifacts:

      - name: 'Qodana Scan'
        uses: JetBrains/qodana-action@v2025.2.1
        with:
          upload-result: true
Contact Qodana team

Contact us at qodana-support@jetbrains.com

Bumps [com.cedarsoftware:java-util](https://github.com/jdereg/java-util) from 3.9.0 to 4.0.0.
- [Changelog](https://github.com/jdereg/java-util/blob/master/changelog.md)
- [Commits](https://github.com/jdereg/java-util/commits)

---
updated-dependencies:
- dependency-name: com.cedarsoftware:java-util
  dependency-version: 4.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/maven/com.cedarsoftware-java-util-4.0.0 branch from 58f29bc to a65335d Compare August 20, 2025 10:24
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file dependency-submission java Pull requests that update Java code size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants