Skip to content

Commit

Permalink
feat: Fix sonar issues [DHIS2-18474]
Browse files Browse the repository at this point in the history
  • Loading branch information
muilpp committed Nov 27, 2024
1 parent 889f213 commit f801ff3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;

public class TrackedEntityChangeLogServiceTest extends TrackerTest {
class TrackedEntityChangeLogServiceTest extends TrackerTest {
@Autowired private TrackedEntityChangeLogService trackedEntityChangeLogService;

@Autowired private TrackerImportService trackerImportService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
import org.hisp.dhis.user.UserDetails;
import org.hisp.dhis.webapi.controller.tracker.export.ChangeLogRequestParams;
import org.hisp.dhis.webapi.controller.tracker.export.CsvService;
import org.hisp.dhis.webapi.controller.tracker.export.FieldFilterRequestHandler;
import org.hisp.dhis.webapi.controller.tracker.export.FileResourceRequestHandler;
import org.hisp.dhis.webapi.controller.tracker.export.MappingErrors;
import org.hisp.dhis.webapi.controller.tracker.export.ResponseHeader;
Expand Down Expand Up @@ -133,7 +132,6 @@ class TrackedEntitiesExportController {

private final TrackedEntityChangeLogService trackedEntityChangeLogService;

private final FieldFilterRequestHandler fieldFilterRequestHandler;
private final FileResourceRequestHandler fileResourceRequestHandler;

public TrackedEntitiesExportController(
Expand All @@ -143,15 +141,13 @@ public TrackedEntitiesExportController(
FieldFilterService fieldFilterService,
TrackedEntityFieldsParamMapper fieldsMapper,
TrackedEntityChangeLogService trackedEntityChangeLogService,
FieldFilterRequestHandler fieldFilterRequestHandler,
FileResourceRequestHandler fileResourceRequestHandler) {
this.trackedEntityService = trackedEntityService;
this.paramsMapper = paramsMapper;
this.entityCsvService = csvEventService;
this.fieldFilterService = fieldFilterService;
this.fieldsMapper = fieldsMapper;
this.trackedEntityChangeLogService = trackedEntityChangeLogService;
this.fieldFilterRequestHandler = fieldFilterRequestHandler;
this.fileResourceRequestHandler = fileResourceRequestHandler;

assertUserOrderableFieldsAreSupported(
Expand Down

0 comments on commit f801ff3

Please sign in to comment.