In this method we are taking a passed port object and modifying it. It would be better to leave as much as possible of the port object immutable and return instead a new port object in this method. The first use of this is in the JoinerNodeModel
FskPortObject jFirstInputPort = getFSKObjectFromStringArray(
new FskPortObject(firstInputPort.getEnvironmentManager(), "", new ArrayList<String>()),
joinerModelsData.firstModel, joinerModelsData.firstModelType);
Here we create a port object with few data and then pass it to getFSKObjectFromStringArray which fills more data in the port object from the array.
Proposal
To replace getFSKObjectFromStringArray with another helper method that creates a port object from the passed environment manager, which can be optional, and a string arrays (needs to be documented).
Class de.bund.bfr.knime.fsklab.v1_9.joiner.JoinerNodeModel Originated in PR https://github.com/SiLeBAT/FSK-Lab/pull/722#pullrequestreview-533674137
Current state
In this method we are taking a passed port object and modifying it. It would be better to leave as much as possible of the port object immutable and return instead a new port object in this method. The first use of this is in the JoinerNodeModel
Here we create a port object with few data and then pass it to getFSKObjectFromStringArray which fills more data in the port object from the array.
Proposal
To replace getFSKObjectFromStringArray with another helper method that creates a port object from the passed environment manager, which can be optional, and a string arrays (needs to be documented).