Source:
<code>public void addNetConfig(String interfaceName, NetInterfaceType netInterfaceType, NetConfig netConfig) throws KuraException { NetInterfaceConfig<? extends NetInterfaceAddressConfig> netInterfaceConfig = this.m_netInterfaceConfigs .get(interfaceName); if (netInterfaceConfig == null) { switch (netInterfaceType) { case LOOPBACK: netInterfaceConfig = new LoopbackInterfaceConfigImpl(interfaceName); break; case ETHERNET: netInterfaceConfig = new EthernetInterfaceConfigImpl(interfaceName); break; case WIFI: netInterfaceConfig = new WifiInterfaceConfigImpl(interfaceName); break; case MODEM: netInterfaceConfig = new ModemInterfaceConfigImpl(interfaceName); break; default: throw new KuraException(KuraErrorCode.INVALID_PARAMETER); } } List<? extends NetInterfaceAddressConfig> netInterfaceAddressConfigs = netInterfaceConfig .getNetInterfaceAddresses(); s_logger.trace("Adding a netConfig: {}", netConfig); for (NetInterfaceAddressConfig netInterfaceAddressConfig : netInterfaceAddressConfigs) { List<NetConfig> netConfigs = netInterfaceAddressConfig.getConfigs(); netConfigs.add(netConfig); <START> <END> if (netInterfaceAddressConfig instanceof NetInterfaceAddressConfigImpl) { NetInterfaceAddressConfigImpl netInterfaceAddressConfigImpl = (NetInterfaceAddressConfigImpl) netInterfaceAddressConfig; netInterfaceAddressConfigImpl.setNetConfigs(netConfigs); } else if (netInterfaceAddressConfig instanceof ModemInterfaceAddressConfigImpl) { ModemInterfaceAddressConfigImpl netInterfaceAddressConfigImpl = (ModemInterfaceAddressConfigImpl) netInterfaceAddressConfig; netInterfaceAddressConfigImpl.setNetConfigs(netConfigs); } else if (netInterfaceAddressConfig instanceof WifiInterfaceAddressConfigImpl) { WifiInterfaceAddressConfigImpl netInterfaceAddressConfigImpl = (WifiInterfaceAddressConfigImpl) netInterfaceAddressConfig; netInterfaceAddressConfigImpl.setNetConfigs(netConfigs); } else { throw new KuraException(KuraErrorCode.INVALID_PARAMETER); } } this.m_recomputeProperties = true; }</code><technical_language>is enough? for (NetInterfaceAddressConfig netInterfaceAddressConfig : netInterfaceAddressConfigs) { List<NetConfig> netConfigs = netInterfaceAddressConfig.getConfigs(); netConfigs.add(netConfig); }</technical_language>

Target:
public void addNetConfig(String interfaceName, NetInterfaceType netInterfaceType, NetConfig netConfig) throws KuraException { NetInterfaceConfig<? extends NetInterfaceAddressConfig> netInterfaceConfig = this.m_netInterfaceConfigs .get(interfaceName); if (netInterfaceConfig == null) { switch (netInterfaceType) { case LOOPBACK: netInterfaceConfig = new LoopbackInterfaceConfigImpl(interfaceName); break; case ETHERNET: netInterfaceConfig = new EthernetInterfaceConfigImpl(interfaceName); break; case WIFI: netInterfaceConfig = new WifiInterfaceConfigImpl(interfaceName); break; case MODEM: netInterfaceConfig = new ModemInterfaceConfigImpl(interfaceName); break; default: throw new KuraException(KuraErrorCode.INVALID_PARAMETER); } } List<? extends NetInterfaceAddressConfig> netInterfaceAddressConfigs = netInterfaceConfig .getNetInterfaceAddresses(); s_logger.trace("Adding a netConfig: {}", netConfig); for (NetInterfaceAddressConfig netInterfaceAddressConfig : netInterfaceAddressConfigs) { List<NetConfig> netConfigs = netInterfaceAddressConfig.getConfigs(); netConfigs.add(netConfig); } this.m_recomputeProperties = true; }