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/galleryimage/business/GalleryDAO.java 88
fr/paris/lutece/plugins/galleryimage/business/GalleryDAO.java 185
            daoUtil.setInt( 1, nId );
            daoUtil.executeQuery( );

            Gallery gallery = null;

            if ( daoUtil.next( ) )
            {
                gallery = new Gallery( );
                int nIndex = 0;

                gallery.setIdGallery( daoUtil.getInt( ++nIndex ) );
                gallery.setCodeGallery( daoUtil.getString( ++nIndex ) );
                gallery.setLabel( daoUtil.getString( ++nIndex ) );
                gallery.setGalleryImageType( daoUtil.getString( ++nIndex ) );
                gallery.setHeightGallery( daoUtil.getInt( ++nIndex ) );
                gallery.setWidthGallery( daoUtil.getInt( ++nIndex ) );
                gallery.setAuthenticatedMode( daoUtil.getBoolean( ++nIndex ) );
            }

            return gallery;
        }
    }