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/seo/business/FriendlyUrlDAO.java 104
fr/paris/lutece/plugins/seo/business/FriendlyUrlDAO.java 191
        friendlyUrl.setId( newPrimaryKey( plugin ) );

        int argIdx = 1;

        daoUtil.setInt( argIdx++, friendlyUrl.getId( ) );
        daoUtil.setString( argIdx++, friendlyUrl.getFriendlyUrl( ) );
        daoUtil.setString( argIdx++, friendlyUrl.getTechnicalUrl( ) );
        if ( friendlyUrl.getDateCreation( ) != null )
        {
            daoUtil.setTimestamp( argIdx++, friendlyUrl.getDateCreation( ) );
        }
        if ( friendlyUrl.getDateModification( ) != null )
        {
            daoUtil.setTimestamp( argIdx++, friendlyUrl.getDateModification( ) );
        }
        daoUtil.setBoolean( argIdx++, friendlyUrl.isCanonical( ) );
        daoUtil.setBoolean( argIdx++, friendlyUrl.isSitemap( ) );
        daoUtil.setString( argIdx++, friendlyUrl.getSitemapLastmod( ) );
        daoUtil.setString( argIdx++, friendlyUrl.getSitemapChangeFreq( ) );
        daoUtil.setString( argIdx++, friendlyUrl.getSitemapPriority( ) );

        daoUtil.executeUpdate( );
File Line
fr/paris/lutece/plugins/seo/business/FriendlyUrlDAO.java 143
fr/paris/lutece/plugins/seo/business/FriendlyUrlDAO.java 229
            friendlyUrl = new FriendlyUrl( );

            friendlyUrl.setId( daoUtil.getInt( 1 ) );
            friendlyUrl.setFriendlyUrl( daoUtil.getString( 2 ) );
            friendlyUrl.setTechnicalUrl( daoUtil.getString( 3 ) );
            friendlyUrl.setDateCreation( daoUtil.getTimestamp( 4 ) );
            friendlyUrl.setDateModification( daoUtil.getTimestamp( 5 ) );
            friendlyUrl.setCanonical( daoUtil.getBoolean( 6 ) );
            friendlyUrl.setSitemap( daoUtil.getBoolean( 7 ) );
            friendlyUrl.setSitemapLastmod( daoUtil.getString( 8 ) );
            friendlyUrl.setSitemapChangeFreq( daoUtil.getString( 9 ) );
            friendlyUrl.setSitemapPriority( daoUtil.getString( 10 ) );