Fork me on GitHub

Résultats CPD

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

Duplicatas

Fichier Ligne
fr/paris/lutece/plugins/geocodesclient/rs/GeocodesRest.java 106
fr/paris/lutece/plugins/geocodesclient/rs/GeocodesRest.java 324
    public Response getCityListByDate( @PathParam( Constants.VERSION ) Integer nVersion, @QueryParam( Constants.SEARCHED_STRING ) String strVal,
            @QueryParam( Constants.ADDITIONAL_PARAM ) String strDateRef )
    {
        if ( nVersion == VERSION_1 )
        {
            if ( strDateRef == null || strDateRef.isEmpty( ) )
            {
            	AppLogService.error( ERROR_DATE_RESOURCE );
	            return Response.status( Response.Status.NOT_FOUND )
	                    .entity( JsonUtil.buildJsonResponse( new ErrorJsonResponse( Response.Status.NOT_FOUND.name( ), ERROR_DATE_RESOURCE ) ) )
	                    .build( );
            }
        	final Date dateref;
            try
            {
                dateref = DEFAULT_DATEFORMAT.parse( strDateRef );
            }
            catch( final ParseException e )
            {
                AppLogService.error( e.getMessage( ) );
                return Response.status( Response.Status.BAD_REQUEST ).entity( e.getMessage( ) ).build( );
            }
            return getCityListByNameAndDateV1( strVal, dateref );
Fichier Ligne
fr/paris/lutece/plugins/geocodesclient/rs/GeocodesRest.java 106
fr/paris/lutece/plugins/geocodesclient/rs/GeocodesRest.java 260
fr/paris/lutece/plugins/geocodesclient/rs/GeocodesRest.java 324
    public Response getCityListByDate( @PathParam( Constants.VERSION ) Integer nVersion, @QueryParam( Constants.SEARCHED_STRING ) String strVal,
            @QueryParam( Constants.ADDITIONAL_PARAM ) String strDateRef )
    {
        if ( nVersion == VERSION_1 )
        {
            if ( strDateRef == null || strDateRef.isEmpty( ) )
            {
            	AppLogService.error( ERROR_DATE_RESOURCE );
	            return Response.status( Response.Status.NOT_FOUND )
	                    .entity( JsonUtil.buildJsonResponse( new ErrorJsonResponse( Response.Status.NOT_FOUND.name( ), ERROR_DATE_RESOURCE ) ) )
	                    .build( );
            }
        	final Date dateref;
            try
            {
                dateref = DEFAULT_DATEFORMAT.parse( strDateRef );
            }
            catch( final ParseException e )
            {
                AppLogService.error( e.getMessage( ) );
                return Response.status( Response.Status.BAD_REQUEST ).entity( e.getMessage( ) ).build( );
            }
            return getCityListByNameAndDateV1( strVal, dateref );