package com.cisco.trex.stateful;

import org.apache.commons.lang.StringUtils;

/**
 * Astf Tcp Info
 */
class AstfTcpInfo {
    private int port;

    /**
     * construct
     *
     * @param filePath
     */
    AstfTcpInfo(String filePath) {
        if (StringUtils.isEmpty(filePath)) {
            CpcapReader cap = CapHandling.cpcapReader(filePath);
            cap.analyze();
            this.port = cap.getDstPort();
        }
    }

    /**
     * getPort
     *
     * @return port
     */
    public int getPort() {
        return port;
    }
}

@@ -57,16 +57,17 @@
 ons.lang
+3
 .StringU

Update AstfTcpInfo.java