Fork me on GitHub

Résultats CPD

Le document suivant contient les résultats de l'inspection CPD CPD 5.5.1.

Duplicatas

Fichier Ligne
fr/paris/lutece/plugins/crm/modules/rest/rs/CRMNotificationRest.java 118
fr/paris/lutece/plugins/crm/modules/rest/rs/CRMNotificationRest.java 192
                CRMService.getService( ).notify( nIdDemand, strObject, strMessage, strSender );
                
                // success
                jsonResponse = new JsonResponse( strIdDemand ) ;
                return JsonUtil.buildJsonResponse( jsonResponse );
            }
            else
            {
                AppLogService.error( CRMRestConstants.MESSAGE_CRM_REST + CRMRestConstants.MESSAGE_INVALID_DEMAND );
                jsonResponse = new ErrorJsonResponse( 
                        String.valueOf(org.apache.commons.httpclient.HttpStatus.SC_PRECONDITION_FAILED), 
                        CRMRestConstants.MESSAGE_INVALID_DEMAND ) ;
            }
        }
        else
        {
            AppLogService.error( CRMRestConstants.MESSAGE_CRM_REST + CRMRestConstants.MESSAGE_MANDATORY_FIELDS );
            jsonResponse = new ErrorJsonResponse( 
                        String.valueOf(org.apache.commons.httpclient.HttpStatus.SC_PRECONDITION_FAILED), 
                        CRMRestConstants.MESSAGE_MANDATORY_FIELDS ) ;
        }