Override the methods Commons Configuration 2.x lets AbstractConfiguration subclasses override
MSALConfiguration 2 made getProperty, getKeys, isEmpty, containsKey, containsValue, clear, clearProperty, setProperty, addProperty and size of AbstractConfiguration final, and has them call protected methods named with an Internal or Direct suffix, which subclasses override instead. This renames the overrides, unless the class declares the method they are renamed to already, and the calls they make to the superclass's implementation, and adds the clearPropertyDirect and containsValueInternal methods that 2.x made abstract to classes that extend AbstractConfiguration directly: the first does nothing, as it did by default in 1.x, and the second asks the configuration's own keys. This recipe matches the 1.x API by the names the move to the org.apache.commons.configuration2 package gives it, and is meant to run as part of UpgradeApacheCommonsConfiguration_1_2.
org. openrewrite. apache. commons. configuration. MigrateAbstractConfigurationSubclassesmod run . --recipe= org. openrewrite. apache. commons. configuration. MigrateAbstractConfigurationSubclassesInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.