Le document suivant contient les résultats de l'inspection CPD CPD 5.3.5.
Fichier | Ligne |
---|---|
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 ); |