I'm afraid this wouldn't be task for newbie :(((

These classes are being used:

org.apache.commons.collections.IdentityMap --- replaced with
java.util.IdentityHashMap
org.apache.commons.collections.map.LRUMap  -- extended by OpenJpa
org.apache.commons.collections.map.ReferenceMap -- extended by OpenJpa

org.apache.commons.collections.bidimap.TreeBidiMap;
org.apache.commons.collections.comparators.ComparableComparator;
org.apache.commons.collections.comparators.ComparatorChain;
org.apache.commons.collections.iterators.EmptyIterator;
org.apache.commons.collections.iterators.FilterIterator;
org.apache.commons.collections.iterators.IteratorChain;
org.apache.commons.collections.map.LinkedMap;
org.apache.commons.collections.Predicate;
org.apache.commons.collections.SequencedHashMap;
org.apache.commons.collections.set.MapBackedSet;

Please let me know if will handle this one
On Wed, 19 Sep 2018 at 13:20, Mark Struberg <[email protected]> wrote:
>
> +1 for inlining the functionality if possible.
>
> I already started with a cleanup and got rid of quite a few external 
> dependencies.
> Probably there is one more to go.
> In any case thanks for your help Maxim!
>
> LieGrue,
> strub
>
> > Am 19.09.2018 um 07:43 schrieb Romain Manni-Bucau <[email protected]>:
> >
> > Hi Maxim,
> >
> > I think it would be ok since it is really to enable GC AFAIK.
> >
> > Side note: did you evaluate dropping commons-collection from the codebase?
> > don't think we abuse of it to justify the dependency.
> >
> > Romain Manni-Bucau
> > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > <https://rmannibucau.metawerx.net/> | Old Blog
> > <http://rmannibucau.wordpress.com> | Github 
> > <https://github.com/rmannibucau> |
> > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> > <https://www.packtpub.com/application-development/java-ee-8-high-performance>
> >
> >
> > Le mer. 19 sept. 2018 à 06:43, Maxim Solodovnik <[email protected]> a
> > écrit :
> >
> >> Hello All,
> >>
> >> I'm currently working on PR to migrate OpenJpa to latest
> >> commons-collections4
> >> During this work I noticed commons-collections4 API was changed
> >>
> >> After discussion in commons mailing list [1] I have proposed the PR
> >> [2] to commons collections
> >> During writing the test for this changes I noticed
> >> org.apache.commons.collections4.map.ReferenceMap can be cleaned up and
> >> method purge will not be called ...
> >>
> >> As far as I can understand
> >> org.apache.openjpa.lib.util.ReferenceHashMap was designed to call
> >> keyExpired/valueExpired in case key/value were expired, and these
> >> methods will not be called in case Map will be auto-clean-up by GC. Is
> >> this OK?
> >>
> >> [1] https://markmail.org/thread/tshcd4d54nxrvgbu
> >> [2] https://github.com/apache/commons-collections/pull/51
> >>
> >> --
> >> WBR
> >> Maxim aka solomax
> >>
>


-- 
WBR
Maxim aka solomax

Reply via email to