jkube
jkube copied to clipboard
Replace deprecated method from Updatable interface
Component
None
Task description
Description
Method Updatable.replace is used in several places in the project. However, the method is deprecated, and Javadoc advises using the method update instead. The reason behind it is explained in alternatives-to-createOrReplace-and-replace.
We should start by listing the places where this method is used and then evaluate the strategy to replace it one by one (edit, update, and so on).
@manusa Thanks! I searched through the project and found out that this method was only used in method updateImageName of class DockerImageWatcher. There were a few test cases in DockerImageWatcherRestartContainerTest that used it also.
@manusa please assign it to me.