Fork me on GitHub

CPD Results

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

Duplications

File Line
fr/paris/lutece/plugins/mypage/web/MyPageJspBean.java 153
fr/paris/lutece/plugins/mypage/web/MyPageJspBean.java 258
        if ( request.getParameter( PARAMETER_WIDGET_ID_PORTLET ).equals( "" ) )
        {
            return AdminMessageService.getMessageUrl( request, Messages.MANDATORY_FIELDS, AdminMessage.TYPE_STOP );
        }

        int nIdPortlet = Integer.parseInt( request.getParameter( PARAMETER_WIDGET_ID_PORTLET ) );
        widget.setIdPortlet( nIdPortlet );

        // Mandatory field
        if ( request.getParameter( PARAMETER_WIDGET_COLOR ).equals( "" ) )
        {
            return AdminMessageService.getMessageUrl( request, Messages.MANDATORY_FIELDS, AdminMessage.TYPE_STOP );
        }

        widget.setColor( request.getParameter( PARAMETER_WIDGET_COLOR ) );

        // Mandatory field
        if ( request.getParameter( PARAMETER_WIDGET_COLUMN ).equals( "" ) )
        {
            return AdminMessageService.getMessageUrl( request, Messages.MANDATORY_FIELDS, AdminMessage.TYPE_STOP );
        }

        int nColumn = Integer.parseInt( request.getParameter( PARAMETER_WIDGET_COLUMN ) );
        widget.setColumn( nColumn );

        WidgetHome.create( widget );