Because Properties inherits from Hashtable, the put and putAll methods can be applied to a Properties object. Their use is strongly discouraged as they allow the caller to insert entries whose keys or values are not Strings. The setProperty method should be used instead. If the store or save method is called on a "compromised" Properties object that contains a non-String key or value, the call will fail. Similarly, the call to the propertyNames or list method will fail if it is called on a "compromised" Properties object that contains a non-String key.
In RePlay we call it Play.configuration...
/**
* The app configuration (already resolved from the framework id)
*/
public static Properties configuration = new Properties();
...and it is used by means of the "strongly discouraged" put and putAll.
From JDK17:
In RePlay we call it
Play.configuration
......and it is used by means of the "strongly discouraged"
put
andputAll
.So I want to stop it from using these methods.