Migrates to Apache Commons Collections 4.x
MSALMigrate applications to the latest Apache Commons Collections 4.x release. This recipe modifies application's build files, make changes to deprecated/preferred APIs, and migrates configuration settings that have changes between versions.
org. openrewrite. apache. commons. collections. UpgradeApacheCommonsCollections_3_4mod run . --recipe= org. openrewrite. apache. commons. collections. UpgradeApacheCommonsCollections_3_4Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Change Gradle or Maven dependency
commons-collections:commons-collections - Add Gradle or Maven dependency
org.apache.commons:commons-collections4:4.x - Change type
IdentityMaptoIdentityHashMap - Delete method argument 0 in methods
org.apache.commons.collections.FastArrayList <constructor>(int) - Remove method invocations
org.apache.commons.collections.FastArrayList setFast(boolean) - Change type
FastArrayListtoCopyOnWriteArrayList - Change static field access to static method access
MapUtils#EMPTY_MAPtoemptyMap - Change static field access to static method access
ListUtils#EMPTY_LISTtoemptyList - Change static field access to static method access
SetUtils#EMPTY_SETtoemptySet - Change method name
org.apache.commons.collections.OrderedMap orderedMapIterator()tomapIterator - Change method name
org.apache.commons.collections.OrderedBidiMap inverseOrderedBidiMap()toinverseBidiMap - Replace constant with another constant
- Replace constant with another constant
- Replace constant with another constant
- Replace constant with another constant
- Replace constant with another constant
- Replace constant with another constant
- Change method name
org.apache.commons.collections.set.SynchronizedSet decorate(java.util.Set)tosynchronizedSet - Change method target to static
- Change method name
org.apache.commons.collections.set.SynchronizedSortedSet decorate(java.util.SortedSet)tosynchronizedSortedSet - Change method target to static
- Change method name
org.apache.commons.collections.list.SynchronizedList decorate(java.util.List)tosynchronizedList - Change method target to static
- Change method name
org.apache.commons.collections.bag.PredicatedBag decorate(..)topredicatedBag - Change method name
org.apache.commons.collections.bag.PredicatedSortedBag decorate(..)topredicatedSortedBag - Change method name
org.apache.commons.collections.bag.SynchronizedBag decorate(..)tosynchronizedBag - Change method name
org.apache.commons.collections.bag.SynchronizedSortedBag decorate(..)tosynchronizedSortedBag - Change method name
org.apache.commons.collections.bag.TransformedBag decorate(..)totransformingBag - Change method name
org.apache.commons.collections.bag.TransformedSortedBag decorate(..)totransformingSortedBag - Change method name
org.apache.commons.collections.bag.UnmodifiableBag decorate(..)tounmodifiableBag - Change method name
org.apache.commons.collections.bag.UnmodifiableSortedBag decorate(..)tounmodifiableSortedBag - Change method name
org.apache.commons.collections.bidimap.UnmodifiableBidiMap decorate(..)tounmodifiableBidiMap - Change method name
org.apache.commons.collections.bidimap.UnmodifiableOrderedBidiMap decorate(..)tounmodifiableOrderedBidiMap - Change method name
org.apache.commons.collections.bidimap.UnmodifiableSortedBidiMap decorate(..)tounmodifiableSortedBidiMap - Change method name
org.apache.commons.collections.collection.PredicatedCollection decorate(..)topredicatedCollection - Change method name
org.apache.commons.collections.collection.SynchronizedCollection decorate(..)tosynchronizedCollection - Change method name
org.apache.commons.collections.collection.TransformedCollection decorate(..)totransformingCollection - Change method name
org.apache.commons.collections.collection.UnmodifiableBoundedCollection decorate(..)tounmodifiableBoundedCollection - Change method name
org.apache.commons.collections.collection.UnmodifiableCollection decorate(..)tounmodifiableCollection - Change method name
org.apache.commons.collections.comparators.ComparableComparator getInstance(..)tocomparableComparator - Change method name
org.apache.commons.collections.functors.AllPredicate getInstance(..)toallPredicate - Change method name
org.apache.commons.collections.functors.AndPredicate getInstance(..)toandPredicate - Change method name
org.apache.commons.collections.functors.AnyPredicate getInstance(..)toanyPredicate - Change method name
org.apache.commons.collections.functors.ChainedClosure getInstance(..)tochainedClosure - Change method name
org.apache.commons.collections.functors.ChainedTransformer getInstance(..)tochainedTransformer - Change method name
org.apache.commons.collections.functors.CloneTransformer getInstance(..)tocloneTransformer - Change method name
org.apache.commons.collections.functors.ClosureTransformer getInstance(..)toclosureTransformer - Change method name
org.apache.commons.collections.functors.ConstantFactory getInstance(..)toconstantFactory - Change method name
org.apache.commons.collections.functors.ConstantTransformer getInstance(..)toconstantTransformer - Change method name
org.apache.commons.collections.functors.EqualPredicate getInstance(..)toequalPredicate - Change method name
org.apache.commons.collections.functors.ExceptionClosure getInstance(..)toexceptionClosure - Change method name
org.apache.commons.collections.functors.ExceptionFactory getInstance(..)toexceptionFactory - Change method name
org.apache.commons.collections.functors.ExceptionPredicate getInstance(..)toexceptionPredicate - Change method name
org.apache.commons.collections.functors.ExceptionTransformer getInstance(..)toexceptionTransformer - Change method name
org.apache.commons.collections.functors.FactoryTransformer getInstance(..)tofactoryTransformer - Change method name
org.apache.commons.collections.functors.FalsePredicate getInstance(..)tofalsePredicate - Change method name
org.apache.commons.collections.functors.ForClosure getInstance(..)toforClosure - Change method name
org.apache.commons.collections.functors.IdentityPredicate getInstance(..)toidentityPredicate - Change method name
org.apache.commons.collections.functors.IfClosure getInstance(..)toifClosure - Change method name
org.apache.commons.collections.functors.InstanceofPredicate getInstance(..)toinstanceOfPredicate - Change method name
org.apache.commons.collections.functors.InstantiateFactory getInstance(..)toinstantiateFactory - Change method name
org.apache.commons.collections.functors.InstantiateTransformer getInstance(..)toinstantiateTransformer - Change method name
org.apache.commons.collections.functors.InvokerTransformer getInstance(..)toinvokerTransformer - Change method name
org.apache.commons.collections.functors.MapTransformer getInstance(..)tomapTransformer - Change method name
org.apache.commons.collections.functors.NOPClosure getInstance(..)tonopClosure - Change method name
org.apache.commons.collections.functors.NOPTransformer getInstance(..)tonopTransformer - Change method name
org.apache.commons.collections.functors.NonePredicate getInstance(..)tononePredicate - Change method name
org.apache.commons.collections.functors.NotNullPredicate getInstance(..)tonotNullPredicate - Change method name
org.apache.commons.collections.functors.NotPredicate getInstance(..)tonotPredicate - Change method name
org.apache.commons.collections.functors.NullIsExceptionPredicate getInstance(..)tonullIsExceptionPredicate - Change method name
org.apache.commons.collections.functors.NullIsFalsePredicate getInstance(..)tonullIsFalsePredicate - Change method name
org.apache.commons.collections.functors.NullIsTruePredicate getInstance(..)tonullIsTruePredicate - Change method name
org.apache.commons.collections.functors.NullPredicate getInstance(..)tonullPredicate - Change method name
org.apache.commons.collections.functors.OnePredicate getInstance(..)toonePredicate - Change method name
org.apache.commons.collections.functors.OrPredicate getInstance(..)toorPredicate - Change method name
org.apache.commons.collections.functors.PredicateTransformer getInstance(..)topredicateTransformer - Change method name
org.apache.commons.collections.functors.PrototypeFactory getInstance(..)toprototypeFactory - Change method name
org.apache.commons.collections.functors.StringValueTransformer getInstance(..)tostringValueTransformer - Change method name
org.apache.commons.collections.functors.SwitchClosure getInstance(..)toswitchClosure - Change method name
org.apache.commons.collections.functors.SwitchTransformer getInstance(..)toswitchTransformer - Change method name
org.apache.commons.collections.functors.TransformedPredicate getInstance(..)totransformedPredicate - Change method name
org.apache.commons.collections.functors.TransformerClosure getInstance(..)totransformerClosure - Change method name
org.apache.commons.collections.functors.TransformerPredicate getInstance(..)totransformerPredicate - Change method name
org.apache.commons.collections.functors.TruePredicate getInstance(..)totruePredicate - Change method name
org.apache.commons.collections.functors.UniquePredicate getInstance(..)touniquePredicate - Change method name
org.apache.commons.collections.functors.WhileClosure getInstance(..)towhileClosure - Change method name
org.apache.commons.collections.iterators.UnmodifiableIterator decorate(..)tounmodifiableIterator - Change method name
org.apache.commons.collections.iterators.UnmodifiableListIterator decorate(..)tounmodifiableListIterator - Change method name
org.apache.commons.collections.iterators.UnmodifiableMapIterator decorate(..)tounmodifiableMapIterator - Change method name
org.apache.commons.collections.iterators.UnmodifiableOrderedMapIterator decorate(..)tounmodifiableOrderedMapIterator - Change method name
org.apache.commons.collections.list.FixedSizeList decorate(..)tofixedSizeList - Change method name
org.apache.commons.collections.list.GrowthList decorate(..)togrowthList - Change method name
org.apache.commons.collections.list.LazyList decorate(..)tolazyList - Change method name
org.apache.commons.collections.list.PredicatedList decorate(..)topredicatedList - Change method name
org.apache.commons.collections.list.SetUniqueList decorate(..)tosetUniqueList - Change method name
org.apache.commons.collections.list.TransformedList decorate(..)totransformingList - Change method name
org.apache.commons.collections.list.UnmodifiableList decorate(..)tounmodifiableList - Change method name
org.apache.commons.collections.map.DefaultedMap decorate(..)todefaultedMap - Change method name
org.apache.commons.collections.map.FixedSizeMap decorate(..)tofixedSizeMap - Change method name
org.apache.commons.collections.map.FixedSizeSortedMap decorate(..)tofixedSizeSortedMap - Change method name
org.apache.commons.collections.map.LazyMap decorate(..)tolazyMap - Change method name
org.apache.commons.collections.map.LazySortedMap decorate(..)tolazySortedMap - Change method name
org.apache.commons.collections.map.ListOrderedMap decorate(..)tolistOrderedMap - Change method name
org.apache.commons.collections.map.MultiKeyMap decorate(..)tomultiKeyMap - Change method name
org.apache.commons.collections.map.MultiValueMap decorate(..)tomultiValueMap - Change method name
org.apache.commons.collections.map.PredicatedMap decorate(..)topredicatedMap - Change method name
org.apache.commons.collections.map.PredicatedSortedMap decorate(..)topredicatedSortedMap - Change method name
org.apache.commons.collections.map.TransformedMap decorate(..)totransformingMap - Change method name
org.apache.commons.collections.map.TransformedMap decorateTransform(..)totransformedMap - Change method name
org.apache.commons.collections.map.TransformedSortedMap decorate(..)totransformingSortedMap - Change method name
org.apache.commons.collections.map.TransformedSortedMap decorateTransform(..)totransformedSortedMap - Change method name
org.apache.commons.collections.map.UnmodifiableEntrySet decorate(..)tounmodifiableEntrySet - Change method name
org.apache.commons.collections.map.UnmodifiableMap decorate(..)tounmodifiableMap - Change method name
org.apache.commons.collections.map.UnmodifiableOrderedMap decorate(..)tounmodifiableOrderedMap - Change method name
org.apache.commons.collections.map.UnmodifiableSortedMap decorate(..)tounmodifiableSortedMap - Change method name
org.apache.commons.collections.set.ListOrderedSet decorate(..)tolistOrderedSet - Change method name
org.apache.commons.collections.set.MapBackedSet decorate(..)tomapBackedSet - Change method name
org.apache.commons.collections.set.PredicatedSet decorate(..)topredicatedSet - Change method name
org.apache.commons.collections.set.PredicatedSortedSet decorate(..)topredicatedSortedSet - Change method name
org.apache.commons.collections.set.TransformedSet decorate(..)totransformingSet - Change method name
org.apache.commons.collections.set.TransformedSortedSet decorate(..)totransformingSortedSet - Change method name
org.apache.commons.collections.set.UnmodifiableSet decorate(..)tounmodifiableSet - Change method name
org.apache.commons.collections.set.UnmodifiableSortedSet decorate(..)tounmodifiableSortedSet - Change type
org.apache.commons.collections.DefaultMapEntrytoorg.apache.commons.collections4.keyvalue.DefaultMapEntry - Change type
org.apache.commons.collections.HashBagtoorg.apache.commons.collections4.bag.HashBag - Change type
org.apache.commons.collections.ReferenceMaptoorg.apache.commons.collections4.map.ReferenceMap - Change type
org.apache.commons.collections.StaticBucketMaptoorg.apache.commons.collections4.map.StaticBucketMap - Change type
org.apache.commons.collections.TreeBagtoorg.apache.commons.collections4.bag.TreeBag - Rename package name
org.apache.commons.collectionstoorg.apache.commons.collections4