edu.udayton.udri.asset.novatel/src/edu/udayton/udri/asset/novatel/impl/connection/NovatelConnectionMgrImpl.java
private void releaseCleanupSerialPort(final boolean doClose)
    {
        if (doClose)
        {
            try
            {  
                m_SerialPort.close();
            }
            catch (final PhysicalLinkException e)
            {
                Logging.log(LogService.LOG_WARNING, 
                    "Unable to close the NovAtel physical link: %s", m_SerialPort.getName());
            }
        }

        try
        {
            m_SerialPort.release();
        }
        catch (final IllegalStateException e)
        {
            Logging.log(LogService.LOG_WARNING, e, "Unable to release the NovAtel PhysicalLink.");
        }

        m_SerialPort = null; //NOPMD: explicit null set, set to null to fully release ownership
    }
/**
     * Release and cleanup SerialPort ownership.
     * @param doClose
     *      if <code> true </code> the port should be closed before releasing
     */
Release and cleanup SerialPort ownership.
@param doClose
if  true  the port should be closed before releasing
Release and cleanup SerialPort ownership . @param doClose if true the port should be closed before releasing
private void releaseCleanupSerialPort(final boolean doClose)
    {
        if (doClose)
        {
            try
            {  
                m_SerialPort.close();
            }
            catch (final PhysicalLinkException e)
            {
                Logging.log(LogService.LOG_WARNING, 
                    "Unable to close the NovAtel physical link: %s", m_SerialPort.getName());
            }
        }
        try
        {
            m_SerialPort.release();
        }
        catch (final IllegalStateException e)
        {
            Logging.log(LogService.LOG_WARNING, e, "Unable to release the NovAtel PhysicalLink.");
        }
        m_SerialPort = null; 
    }
private void releaseCleanupSerialPort ( final boolean doClose ) { if ( doClose ) { try { m_SerialPort . close ( ) ; } catch ( final PhysicalLinkException e ) { Logging . log ( LogService . LOG_WARNING , "Unable to close the NovAtel physical link: %s" , m_SerialPort . getName ( ) ) ; } } try { m_SerialPort . release ( ) ; } catch ( final IllegalStateException e ) { Logging . log ( LogService . LOG_WARNING , e , "Unable to release the NovAtel PhysicalLink." ) ; } m_SerialPort = null ; }
Release and cleanup SerialPort ownership.
Release and cleanup SerialPort ownership .
//NOPMD: explicit null set, set to null to fully release ownership