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/wordtemplate/service/WordService.java 324
fr/paris/lutece/plugins/wordtemplate/service/WordService.java 442
    public static XWPFTable insertTable( IBody body, XWPFTable table, int posDest )
    {
        IBodyElement bodyElement;

        if ( posDest > body.getBodyElements( ).size( ) || posDest < 0 )
        {
            return null;
        }

        if ( posDest == body.getBodyElements( ).size( ) )
        {
            bodyElement = body.getBodyElements( ).get( posDest - 1 );
        }
        else
        {
            bodyElement = body.getBodyElements( ).get( posDest );
        }

        XmlCursor cursor = getCursor( bodyElement );

        if ( posDest == body.getBodyElements( ).size( ) )
        {
            cursor.toParent( );
            cursor.toEndToken( );
        }