Fork me on GitHub

CPD Results

The following document contains the results of PMD's CPD 6.13.0.

Duplications

File Line
fr/paris/lutece/plugins/workflow/modules/formscarto/business/FormsCartoTaskConfigDAO.java 70
fr/paris/lutece/plugins/workflow/modules/formscarto/business/FormsCartoTaskConfigDAO.java 127
            if ( formsCartoTaskConfig.getForm( ) != null )
            {
                daoUtil.setInt( ++nIndex, formsCartoTaskConfig.getForm( ).getId( ) );
            }
            else
            {
                daoUtil.setNull( ++nIndex, Types.INTEGER );
            }
            if ( formsCartoTaskConfig.getStep( ) != null )
            {
                daoUtil.setInt( ++nIndex, formsCartoTaskConfig.getStep( ).getId( ) );
            }
            else
            {
                daoUtil.setNull( ++nIndex, Types.INTEGER );
            }
            if ( formsCartoTaskConfig.getQuestionListValueClosed( ) != null )
            {
                daoUtil.setInt( ++nIndex, formsCartoTaskConfig.getQuestionListValueClosed( ).getId( ) );
            }
            else
            {
                daoUtil.setNull( ++nIndex, Types.INTEGER );
            }
            if ( formsCartoTaskConfig.getQuestionListLayerCarto( ) != null )
            {
                daoUtil.setInt( ++nIndex, formsCartoTaskConfig.getQuestionListLayerCarto( ).getId( ) );
            }
            else
            {
                daoUtil.setNull( ++nIndex, Types.INTEGER );
            }
            if ( formsCartoTaskConfig.getQuestionUnitTree( ) != null )
            {
                daoUtil.setInt( ++nIndex, formsCartoTaskConfig.getQuestionUnitTree( ).getId( ) );
            }
            else
            {
                daoUtil.setNull( ++nIndex, Types.INTEGER );
            }
            
            daoUtil.executeUpdate( );
File Line
fr/paris/lutece/plugins/workflow/modules/formscarto/business/EditFormResponseConfigValueCartoDao.java 70
fr/paris/lutece/plugins/workflow/modules/formscarto/business/EditFormResponseConfigValueCartoDao.java 121
            daoUtil.setInt( ++nIndex, configValue.getIdConfig( ) );
            if ( configValue.getForm( ) != null )
            {
                daoUtil.setInt( ++nIndex, configValue.getForm( ).getId( ) );
            }
            else
            {
                daoUtil.setNull( ++nIndex, Types.INTEGER );
            }
            if ( configValue.getStep( ) != null )
            {
                daoUtil.setInt( ++nIndex, configValue.getStep( ).getId( ) );
            }
            else
            {
                daoUtil.setNull( ++nIndex, Types.INTEGER );
            }
            if ( configValue.getQuestion( ) != null )
            {
                daoUtil.setInt( ++nIndex, configValue.getQuestion( ).getId( ) );
            }
            else
            {
                daoUtil.setNull( ++nIndex, Types.INTEGER );
            }
            if ( configValue.getResponse( ) != null )
            {
                daoUtil.setString( ++nIndex, configValue.getResponse( ) );
            }
            else
            {
                daoUtil.setNull( ++nIndex, Types.VARCHAR );
            }
            daoUtil.setString( ++nIndex, configValue.getCode( ) );
            daoUtil.executeUpdate( );