[ 
https://issues.apache.org/jira/browse/NIFI-16050?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pierre Villard updated NIFI-16050:
----------------------------------
    Fix Version/s: 2.11.0
       Resolution: Fixed
           Status: Resolved  (was: Patch Available)

> Remove duplicated code in org.apache.nifi.web.api.dto.DtoFactory
> ----------------------------------------------------------------
>
>                 Key: NIFI-16050
>                 URL: https://issues.apache.org/jira/browse/NIFI-16050
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Daniel Stieglitz
>            Assignee: Daniel Stieglitz
>            Priority: Minor
>             Fix For: 2.11.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> In DtoFactory on lines 1481-1486 and lines 1487-1492 there is a duplicated 
> block of code  as seen below:
> {code:java}
> // if this port is remotely accessible, determine if its actually connected 
> to another nifi
>         if (port instanceof PublicPort) {
>             final PublicPort publicPort = (PublicPort) port;
>             dto.setAllowRemoteAccess(true);
>             dto.setTransmitting(publicPort.isTransmitting());
>         }
> // if this port is remotely accessible, determine if its actually connected 
> to another nifi
>         if (port instanceof PublicPort) {
>             final PublicPort publicPort = (PublicPort) port;
>             dto.setAllowRemoteAccess(true);
>             dto.setTransmitting(publicPort.isTransmitting());
>         }{code}
> The aim of this ticket is to remove the second block. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to