public void setDeprecatedProperties ( ) { DeprecationContext deprecations = deprecationContext . get ( ) ; Properties props = getProps ( ) ; Properties overlay = getOverlay ( ) ; for ( Map . Entry < String , DeprecatedKeyInfo > entry : deprecations . getDeprecatedKeyMap ( ) . entrySet ( ) ) { String depKey = entry . getKey ( ) ; if ( ! overlay . contains ( depKey ) ) { for ( String newKey : entry . getValue ( ) . newKeys ) { String val = overlay . getProperty ( newKey ) ; if ( val != null ) { props . setProperty ( depKey , val ) ; overlay . setProperty ( depKey , val ) ; break ; } } } } }
Sets all deprecated properties that are not currently set but have a corresponding new property that is set . Useful for iterating the properties when all deprecated properties for currently set properties need to be present .