Releasing Cloned SettingsModels

Hello All,

My question is regarding the Default Dialog Components -> Example Node Model #2 code found here: https://tech.knime.org/developer/example-nodemodel

There are comments immediately below Example #2 which state "Release the clone models after validateSettings finishes." What does this mean?

Will anything resulting from these cloned model instances persist beyond the scope of this method? Or, will these cloned instances simply be destroyed when the method 

protected void validateSettings(final NodeSettingsRO settings)

finishes?

I assume that, due to the limited scope of the the cloned instances, there should be nothing else to clean up manually. Am I correct?

 

Thank you very much for your help.

Joe

Hi Joe,

Sorry for the (very) late reply. Yes you are right. due to the limited scope the instances will automatically destroyed when the validateSettings method is complete.

Best,

Christian