Skip to content
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

Bump com.cedarsoftware:java-util from 1.68.0 to 2.18.0 #337

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 Oct 17, 2024

Bumps com.cedarsoftware:java-util from 1.68.0 to 2.18.0.

Changelog

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

2.18.0

  • Fix issue with field access ClassUtilities.getClassLoader() when in OSGi environment. Thank you @​ozhelezniak-talend.
  • Added ClassUtilities.getClassLoader(Class<?> c) so that class loading was not confined to java-util classloader bundle. Thank you @​ozhelezniak-talend.

2.17.0

  • ClassUtilities.getClassLoader() added. This will safely return the correct class loader when running in OSGi, JPMS, or neither.
  • ArrayUtilities.createArray() added. This method accepts a variable number of arguments and returns them as an array of type T[].
  • Fixed bug when converting Map containing "time" key (and no date nor zone keys) with value to java.sql.Date. The millisecond portion was set to 0.

2.16.0

  • SealableMap, LRUCache, and TTLCache updated to use ConcurrentHashMapNullSafe internally, to simplify their implementation, as they no longer have to implement the null-safe work, ConcurrentHashMapNullSafe does that for them.
  • Added ConcurrentNavigableMapNullSafe and ConcurrentNavigableSetNullSafe
  • Allow for SealableNavigableMap and SealableNavigableSet to handle null
  • Added support for more old timezone names (EDT, PDT, ...)
  • Reverted back to agrona 1.22.0 (testing scope only) because it uses class file format 52, which still works with JDK 1.8
  • Missing comma in OSGI support added in pom.xml file. Thank you @​ozhelezniak.
  • TestGraphComparator.testNewArrayElement updated to reliable compare results (not depdendent on a Map that could return items in differing order). Thank you @​wtrazs

2.15.0

  • Introducing TTLCache: a cache with a configurable minimum Time-To-Live (TTL). Entries expire and are automatically removed after the specified TTL. Optionally, set a maxSize to enable Least Recently Used (LRU) eviction. Each TTLCache instance can have its own TTL setting, leveraging a shared ScheduledExecutorService for efficient resource management. To ensure proper cleanup, call TTLCache.shutdown() when your application or service terminates.
  • Introducing ConcurrentHashMapNullSafe: a drop-in replacement for ConcurrentHashMap that supports null keys and values. It uses internal sentinel values to manage nulls, providing a seamless experience. This frees users from null handling concerns, allowing unrestricted key-value insertion and retrieval.
  • LRUCache updated to use a single ScheduledExecutorService across all instances, regardless of the individual time settings. Call the static shutdown() method on LRUCache when your application or service is ending.

2.14.0

  • ClassUtilities.addPermanentClassAlias() - add an alias that .forName() can use to instantiate class (e.g. "date" for java.util.Date)
  • ClassUtilities.removePermanentClassAlias() - remove an alias that .forName() can no longer use.
  • Updated build plug-in dependencies.

2.13.0

  • LRUCache improved garbage collection handling to avoid gc Nepotism issues by nulling out node references upon eviction. Pointed out by Ben Manes.
  • Combined ForkedJoinPool and ScheduledExecutorService into use of only ScheduledExecutorServive, which is easier for user. The user can supply null or their own scheduler. In the case of null, one will be created and the shutdown() method will terminate it. If the user supplies a ScheduledExecutorService it will be used, but not shutdown when the shutdown() method is called. This allows LRUCache to work well in containerized environments.

2.12.0

  • LRUCache updated to support both "locking" and "threaded" implementation strategies.

2.11.0

  • LRUCache re-written so that it operates in O(1) for get(), put(), and remove() methods without thread contention. When items are placed into (or removed from) the cache, it schedules a cleanup task to trim the cache to its capacity. This means that it will operate as fast as a ConcurrentHashMap, yet shrink to capacity quickly after modifications.

2.10.0

  • Fixed potential memory leak in LRUCache.
  • Added nextPermutation to MathUtilities.
  • Added size(),, isEmpty(), and hasContent to CollectionUtilities.

2.9.0

  • Added SealableList which provides a List (or List wrapper) that will make it read-only (sealed) or read-write (unsealed), controllable via a Supplier<Boolean>. This moves the immutability control outside the list and ensures that all views on the List respect the sealed-ness. One master supplier can control the immutability of many collections.
  • Added SealableSet similar to SealableList but with Set nature.
  • Added SealableMap similar to SealableList but with Map nature.
  • Added SealableNavigableSet similar to SealableList but with NavigableSet nature.
  • Added SealableNavigableMap similar to SealableList but with NavigableMap nature.
  • Updated ConcurrentList to support wrapping any List and making it thread-safe, including all view APIs: iterator(), listIterator(), listIterator(index). The no-arg constructor creates a ConcurrentList ready-to-go. The constructor that takes a List parameter constructor wraps the passed in list and makes it thread-safe.
  • Renamed ConcurrentHashSet to ConcurrentSet.

2.8.0

  • Added ClassUtilities.doesOneWrapTheOther() API so that it is easy to test if one class is wrapping the other.
  • Added StringBuilder and StringBuffer to Strings to the Converter. Eliminates special cases for .toString() calls where generalized convert(src, type) is being used.

2.7.0

  • Added ConcurrentList, which implements a thread-safe List. Provides all API support except for listIterator(), however, it implements iterator() which returns an iterator to a snapshot copy of the List.
  • Added ConcurrentHashSet, a true Set which is a bit easier to use than ConcurrentSkipListSet, which as a NavigableSet and SortedSet, requires each element to be Comparable.
  • Performance improvement: On LRUCache, removed unnecessary Collections.SynchronizedMap surrounding the internal LinkedHashMap as the concurrent protection offered by ReentrantReadWriteLock is all that is needed.

2.6.0

... (truncated)

Commits
  • a85c604 updated heap-size for build/test
  • 4ca062d - Fix issue with field access ClassUtilities.getClassLoader() when in OSGi ...
  • 8712818 Merge pull request #108 from ozhelezniak-talend/ozhelezniak/fix_osgi_loader_i...
  • 2ae9520 fix: osgi loader resolve
  • cd2a265 fix: test
  • 701f1f7 fix: make BundleImpl.adapt method accessible
  • 899b5dc > * ClassUtilities.getClassLoader() added. This will safely return the corr...
  • de67d1a updated changelog.md
  • 7ba8ec4 Strengthened the test of SealableNavigableMap and SealableNavigableSet
  • 72acfda - Added support for more old timezone names (EDT, PDT, ...)
  • Additional commits viewable in compare view

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)

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

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

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file java Pull requests that update Java code labels Oct 17, 2024
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 java Pull requests that update Java code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants