Fork me on GitHub

CPD Results

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

Duplications

File Line
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 ) ;
        }