From cd6a02438fbceecc1ce9eab06f3fc45ecd4311e6 Mon Sep 17 00:00:00 2001 From: Duc Nguyen <117302958+ndduc01@users.noreply.github.com> Date: Wed, 30 Oct 2024 11:52:15 -0400 Subject: [PATCH] Cnde 1565 3 (#236) * remove last two high code smell * resolve S112 * global ignore S1118 for DI * medium complaint for DI * solve S1135 * resolving some low priority complaint * clean up * ignoring brain method complaint * clean up comment note * fix failed unit test * addessing S5145 security * clean up * remove unused import * replace e.printstacktrace with logger * handle 2139 complaint --- .../cdc/dataingestion/ServiceApplication.java | 7 ++++ .../routes/ElrProcessStatusComponent.java | 7 ++++ .../camel/routes/HL7FileProcessComponent.java | 9 +++++- .../camel/routes/SFTPRouteBuilder.java | 7 ++++ .../cdc/dataingestion/config/ClassConfig.java | 7 ++++ .../config/DataSourceConfig.java | 7 ++++ .../config/KafkaConsumerConfig.java | 7 ++++ .../config/KafkaProducerConfig.java | 7 ++++ .../KafkaProducerTransactionConfig.java | 7 ++++ .../config/NbsDataSourceConfig.java | 7 ++++ .../config/OdseDataSourceConfig.java | 7 ++++ .../dataingestion/config/OpenAPIConfig.java | 7 ++++ .../constant/KafkaHeaderValue.java | 7 ++++ .../dataingestion/constant/MessageType.java | 7 ++++ .../custommetrics/CustomMetricsBuilder.java | 7 ++++ .../custommetrics/TimeMetricsBuilder.java | 7 ++++ .../controller/ElrDeadLetterController.java | 7 ++++ .../deadletter/model/ElrDeadLetterDto.java | 7 ++++ .../repository/model/ElrDeadLetterModel.java | 7 ++++ .../service/ElrDeadLetterService.java | 7 ++++ .../exception/ConversionPrepareException.java | 7 ++++ .../exception/DeadLetterTopicException.java | 7 ++++ .../exception/DiAsyncException.java | 7 ++++ .../DuplicateHL7FileFoundException.java | 7 ++++ .../exception/EcrCdaXmlException.java | 7 ++++ .../exception/FhirConversionException.java | 7 ++++ .../exception/XmlConversionException.java | 7 ++++ .../service/KafkaConsumerService.java | 22 +++++++------ .../service/KafkaProducerService.java | 7 ++++ .../KafkaProducerTransactionService.java | 7 ++++ .../Hl7ToRhapsodysXmlConverter.java | 9 +++++- .../RhapsodysXmlToHl7Converter.java | 11 +++++-- .../nbs/ecr/constant/CdaConstantValue.java | 7 ++++ .../nbs/ecr/model/AttributeMapper.java | 7 ++++ .../nbs/ecr/model/CdaCaseMapper.java | 7 ++++ .../nbs/ecr/model/CdaInterviewMapper.java | 7 ++++ .../nbs/ecr/model/CdaOrganizationMapper.java | 7 ++++ .../nbs/ecr/model/CdaPatientMapper.java | 7 ++++ .../nbs/ecr/model/CdaPlaceMapper.java | 7 ++++ .../nbs/ecr/model/CdaProviderMapper.java | 7 ++++ .../CdaTreatmentAdministrationMapper.java | 7 ++++ .../nbs/ecr/model/CdaTreatmentMapper.java | 7 ++++ .../nbs/ecr/model/CdaXmlAnswerMapper.java | 7 ++++ .../nbs/ecr/model/InterviewAnswerMapper.java | 7 ++++ .../ecr/model/InterviewAnswerMultiMapper.java | 7 ++++ .../nbs/ecr/model/MessageAnswer.java | 7 ++++ .../nbs/ecr/model/MultiSelect.java | 7 ++++ .../nbs/ecr/model/TreatmentMapper.java | 7 ++++ .../nbs/ecr/model/ValueMapper.java | 7 ++++ .../model/cases/CdaCaseAnsQuesIdentifier.java | 7 ++++ .../nbs/ecr/model/cases/CdaCaseAnswer.java | 7 ++++ .../nbs/ecr/model/cases/CdaCaseComponent.java | 7 ++++ .../nbs/ecr/model/cases/CdaCaseField.java | 7 ++++ .../ecr/model/cases/CdaCaseFieldRepeat.java | 7 ++++ .../cases/CdaCaseFieldSectionCommon.java | 7 ++++ .../nbs/ecr/model/cases/CdaCaseMsgAnswer.java | 7 ++++ .../cases/CdaCaseMultiGroupSeqNumber.java | 7 ++++ .../model/cases/CdaCaseMultiSelectFields.java | 7 ++++ .../ecr/model/cases/CdaCaseParticipant.java | 7 ++++ .../model/cases/CdaCaseParticipantRepeat.java | 7 ++++ .../ecr/model/container/CdaContainerComp.java | 7 ++++ .../ecr/model/interview/InterviewAnswer.java | 7 ++++ .../interview/InterviewEntryEncounter.java | 7 ++++ .../interview/InterviewEntryRelation.java | 7 ++++ .../ecr/model/interview/InterviewField.java | 7 ++++ .../model/interview/InterviewMultiObs.java | 7 ++++ .../nbs/ecr/model/interview/InterviewObs.java | 7 ++++ .../ecr/model/interview/InterviewRole.java | 7 ++++ .../model/interview/InterviewTopField.java | 7 ++++ .../ecr/model/patient/CdaPatientField.java | 7 ++++ .../ecr/model/patient/CdaPatientTelecom.java | 7 ++++ .../nbs/ecr/model/place/PlaceField.java | 7 ++++ .../model/provider/ProviderFieldCheck.java | 7 ++++ .../ecr/model/shares/ActParticipantArray.java | 7 ++++ .../ecr/model/shares/MapParticipantRole.java | 7 ++++ .../nbs/ecr/model/shares/MapStructure.java | 7 ++++ .../nbs/ecr/model/shares/Observation.java | 7 ++++ .../nbs/ecr/model/shares/Org.java | 7 ++++ .../model/shares/OrgPlaceDocCommonField.java | 7 ++++ .../nbs/ecr/model/shares/Psn.java | 7 ++++ .../nbs/ecr/model/shares/PsnTelephone.java | 7 ++++ .../model/treatment/TreatmentDocument.java | 7 ++++ .../ecr/model/treatment/TreatmentField.java | 7 ++++ .../TreatmentProviderAndParticipant.java | 7 ++++ .../nbs/ecr/service/CdaMapper.java | 7 ++++ .../ecr/service/EcrMessagePollService.java | 7 ++++ .../service/helper/CdaCaseMappingHelper.java | 7 ++++ .../helper/CdaInterviewMappingHelper.java | 7 ++++ .../nbs/ecr/service/helper/CdaMapHelper.java | 7 ++++ .../service/helper/CdaMapStringHelper.java | 7 ++++ .../service/helper/CdaOrgMappingHelper.java | 7 ++++ .../helper/CdaPatientMappingHelper.java | 7 ++++ .../service/helper/CdaPlaceMappingHelper.java | 7 ++++ .../helper/CdaProviderMappingHelper.java | 7 ++++ .../helper/CdaTreatmentMappingHelper.java | 7 ++++ .../helper/CdaXmlAnswerMappingHelper.java | 7 ++++ .../implementation/EcrLookUpRepository.java | 7 ++++ .../implementation/EcrMsgQueryRepository.java | 7 ++++ .../repository/model/NbsInterfaceModel.java | 7 ++++ .../repository/model/dao/EcrSelectedCase.java | 7 ++++ .../model/dao/EcrSelectedInterview.java | 7 ++++ .../model/dao/EcrSelectedRecord.java | 7 ++++ .../model/dao/EcrSelectedTreatment.java | 7 ++++ .../model/dao/lookup/PhdcAnswerDao.java | 7 ++++ .../dao/lookup/QuestionIdentifierMapDao.java | 7 ++++ .../model/dto/EcrMsgCaseAnswerDto.java | 7 ++++ .../repository/model/dto/EcrMsgCaseDto.java | 7 ++++ .../model/dto/EcrMsgCaseParticipantDto.java | 7 ++++ .../model/dto/EcrMsgContainerDto.java | 7 ++++ .../model/dto/EcrMsgInterviewDto.java | 7 ++++ .../model/dto/EcrMsgOrganizationDto.java | 7 ++++ .../model/dto/EcrMsgPatientDto.java | 7 ++++ .../repository/model/dto/EcrMsgPlaceDto.java | 7 ++++ .../model/dto/EcrMsgProviderDto.java | 7 ++++ .../model/dto/EcrMsgTreatmentDto.java | 7 ++++ .../model/dto/EcrMsgXmlAnswerDto.java | 7 ++++ .../model/dto/lookup/ConstantLookUpDto.java | 7 ++++ .../model/dto/lookup/PhdcAnswerLookUpDto.java | 7 ++++ .../dto/lookup/PhdcQuestionLookUpDto.java | 7 ++++ .../dto/lookup/QuestionIdentifierMapDto.java | 7 ++++ .../nbs/services/CdaLookUpService.java | 7 ++++ .../nbs/services/EcrMsgQueryService.java | 7 ++++ .../NbsRepositoryServiceProvider.java | 7 ++++ .../model/EdxActivityDetailLog.java | 7 ++++ .../controller/EcrReportsController.java | 7 ++++ .../controller/ElrReportsController.java | 8 +++++ .../rawmessage/dto/RawERLDto.java | 7 ++++ .../rawmessage/service/RawELRService.java | 7 ++++ .../report/repository/model/RawERLModel.java | 7 ++++ .../controller/ReportStatusController.java | 17 +++++++--- .../reportstatus/model/DltMessageStatus.java | 7 ++++ .../model/EdxActivityLogStatus.java | 7 ++++ .../reportstatus/model/MessageStatus.java | 7 ++++ .../reportstatus/model/NbsMessageStatus.java | 7 ++++ .../reportstatus/model/RawMessageStatus.java | 7 ++++ .../model/ReportStatusIdData.java | 7 ++++ .../model/ValidatedMessageStatus.java | 7 ++++ .../service/ReportStatusService.java | 7 ++++ .../CustomAuthenticationManagerResolver.java | 7 ++++ .../security/config/SecurityConfig.java | 7 ++++ .../security/controller/TokenController.java | 7 ++++ .../share/ControllerExceptionHandler.java | 7 ++++ .../share/CustomAuthenticationEntryPoint.java | 7 ++++ .../share/CustomAuthenticationException.java | 7 ++++ .../share/helper/EcrXmlModelingHelper.java | 7 ++++ .../share/helper/TimeStampHelper.java | 7 ++++ .../share/model/ErrorResponse.java | 7 ++++ .../validator/HL7DuplicateValidator.java | 7 ++++ .../integration/validator/HL7v2Validator.java | 7 ++++ .../repository/model/ValidatedELRModel.java | 7 ++++ .../validation/services/HL7Service.java | 7 ++++ .../routes/ElrProcessStatusComponentTest.java | 10 ++++-- .../routes/HL7FileProcessComponentTest.java | 10 ++++-- .../camel/routes/SFTPRouteBuilderTest.java | 18 +++++++---- .../dataingestion/config/ClassConfigTest.java | 8 ++++- .../config/KafkaConsumerConfigTest.java | 8 ++++- .../config/KafkaProducerConfigTest.java | 8 ++++- .../CustomMetricsBuilderTest.java | 11 ++++--- .../ElrDeadLetterControllerTest.java | 8 ++++- .../service/ElrDeadLetterServiceTest.java | 8 ++++- .../ecr/cdaMapping/CdaMapHelperTest.java | 8 ++++- .../cdaMapping/CdaMapStringHelperTest.java | 8 ++++- .../ecr/cdaMapping/CdaMapperPatientTest.java | 9 +++++- .../ecr/cdaMapping/CdaMapperTest.java | 8 ++++- .../cdaMapping/helper/TestDataInitiation.java | 7 ++++ .../repository/EcrLookUpRepositoryTest.java | 8 ++++- .../repository/EcrMsgQueryRepositoryTest.java | 8 ++++- .../ecr/service/CdaLookUpServiceTest.java | 8 ++++- .../service/EcrMessagePollServiceTest.java | 8 ++++- .../ecr/service/EcrMsgQueryServiceTest.java | 8 ++++- .../service/KafkaConsumerServiceTest.java | 32 +++++++++---------- .../service/KafkaProducerServiceTest.java | 7 ++++ .../gov/cdc/dataingestion/nbs/TestHelper.java | 7 ++++ .../Hl7ToRhapsodysXmlConverterTest.java | 8 ++++- .../RhapsodysXmlToHl7ConverterTest.java | 8 ++++- .../dataingestion/nbs/converter/TestData.java | 7 ++++ .../NbsRepositoryServiceProviderTest.java | 8 ++++- .../model/EdxActivityDetailLogTest.java | 8 ++++- .../rawmessage/RawELRServiceTest.java | 8 ++++- .../controller/EcrReportsControllerTest.java | 8 ++++- .../ElrReportsControllerMockTest.java | 7 ++++ .../controller/ElrReportsControllerTest.java | 8 ++++- .../ReportStatusControllerTest.java | 8 ++++- .../service/ReportStatusServiceTest.java | 8 ++++- .../controller/TokenControllerTest.java | 8 ++++- .../share/ControllerExceptionHandlerTest.java | 8 ++++- .../CustomAuthenticationEntryPointTest.java | 8 ++++- .../CustomAuthenticationExceptionTest.java | 8 ++++- .../validator/HL7DuplicateValidatorTest.java | 8 ++++- .../validator/HL7v2ValidatorTests.java | 8 ++++- .../validation/services/HL7ServiceTest.java | 8 ++++- .../dataprocessing/ServiceApplication.java | 3 +- .../cdc/dataprocessing/cache/OdseCache.java | 3 +- .../cache/PropertyUtilCache.java | 3 +- .../cdc/dataprocessing/cache/SrteCache.java | 3 +- .../dataprocessing/config/CacheConfig.java | 3 +- .../config/KafkaConsumerConfig.java | 3 +- .../config/KafkaProducerConfig.java | 3 +- .../config/NbsDataSourceConfig.java | 3 +- .../config/OdseDataSourceConfig.java | 3 +- .../config/SrteDataSourceConfig.java | 3 +- .../dataprocessing/constant/CTConstants.java | 3 +- .../constant/ComplexQueries.java | 3 +- .../constant/DecisionSupportConstants.java | 3 +- .../dataprocessing/constant/DpConstant.java | 3 +- .../constant/EdxPHCRConstants.java | 3 +- .../constant/KafkaCustomHeader.java | 3 +- .../dataprocessing/constant/ManagerEvent.java | 3 +- .../constant/MessageConstants.java | 3 +- .../constant/NBSConstantUtil.java | 3 +- .../constant/RenderConstant.java | 3 +- .../constant/elr/DataTables.java | 3 +- .../constant/elr/ELRConstant.java | 3 +- .../constant/elr/EdxELRConstant.java | 3 +- .../constant/elr/NBSBOLookup.java | 3 +- .../constant/elr/NEDSSConstant.java | 3 +- .../constant/elr/ProgramAreaJurisdiction.java | 3 +- .../dataprocessing/controller/Controller.java | 3 +- .../DataProcessingConsumerException.java | 3 +- .../exception/DataProcessingException.java | 3 +- .../exception/EdxLogException.java | 3 +- .../kafka/consumer/KafkaEdxLogConsumer.java | 3 +- .../consumer/KafkaHandleLabConsumer.java | 3 +- .../kafka/consumer/KafkaManagerConsumer.java | 3 +- .../KafkaPublicHealthCaseConsumer.java | 3 +- .../kafka/producer/KafkaManagerProducer.java | 3 +- .../producer/share/KafkaBaseProducer.java | 3 +- .../model/container/base/BaseContainer.java | 3 +- .../container/base/BasePamContainer.java | 3 +- .../interfaces/InterviewContainer.java | 3 +- .../interfaces/PageProxyContainer.java | 18 +++++++++++ .../interfaces/ReportSummaryInterface.java | 18 +++++++++++ .../model/ClinicalDocumentContainer.java | 3 +- .../model/CoinfectionSummaryContainer.java | 3 +- .../model/DocumentSummaryContainer.java | 3 +- .../model/EdxActivityLogContainer.java | 3 +- .../container/model/EntityGroupContainer.java | 3 +- .../model/InterventionContainer.java | 3 +- .../model/InvestigationContainer.java | 3 +- .../model/LabReportSummaryContainer.java | 3 +- .../model/LabResultProxyContainer.java | 3 +- .../container/model/LdfBaseContainer.java | 3 +- .../container/model/MPRUpdateContainer.java | 3 +- .../container/model/MaterialContainer.java | 3 +- .../container/model/NbsDocumentContainer.java | 3 +- .../NonPersonLivingSubjectContainer.java | 3 +- .../model/NotificationContainer.java | 3 +- .../model/NotificationProxyContainer.java | 3 +- .../model/NotificationSummaryContainer.java | 3 +- .../container/model/ObservationContainer.java | 3 +- .../model/OrganizationContainer.java | 3 +- .../model/PageActProxyContainer.java | 3 +- .../model/container/model/PageContainer.java | 3 +- .../container/model/PamProxyContainer.java | 3 +- .../model/PatientEncounterContainer.java | 3 +- .../container/model/PersonContainer.java | 9 ++++-- .../model/container/model/PlaceContainer.java | 3 +- .../container/model/ProgramAreaContainer.java | 3 +- .../model/ProviderDataForPrintContainer.java | 3 +- .../model/PublicHealthCaseContainer.java | 3 +- .../container/model/ReferralContainer.java | 3 +- .../model/ResultedTestSummaryContainer.java | 3 +- .../container/model/TreatmentContainer.java | 3 +- .../container/model/UidSummaryContainer.java | 3 +- .../model/container/model/auth_user/User.java | 3 +- .../model/auth_user/UserProfile.java | 3 +- .../model/dto/RootDtoInterface.java | 19 ++++++++++- .../model/dto/act/ActIdDto.java | 3 +- .../model/dto/act/ActRelationshipDto.java | 3 +- .../act/ActivityLocatorParticipationDto.java | 3 +- .../model/dto/auth_user/RealizedRoleDto.java | 3 +- .../model/dto/dsm/DSMAlgorithmDto.java | 3 +- .../model/dto/dsm/DSMUpdateAlgorithmDto.java | 3 +- .../model/dto/edx/EDXDocumentDto.java | 3 +- .../edx/EDXEventProcessCaseSummaryDto.java | 3 +- .../model/dto/edx/EDXEventProcessDto.java | 3 +- .../model/dto/edx/EdxELRLabMapDto.java | 3 +- .../model/dto/edx/EdxLabIdentiferDto.java | 3 +- .../dto/edx/EdxRuleAlgorothmManagerDto.java | 3 +- .../model/dto/edx/EdxRuleManageDto.java | 3 +- .../model/dto/entity/EntityIdDto.java | 3 +- .../entity/EntityLocatorParticipationDto.java | 3 +- .../model/dto/entity/RoleDto.java | 3 +- .../StateDefinedFieldDataDto.java | 3 +- .../dto/lab_result/EdxLabInformationDto.java | 3 +- .../model/dto/locator/PhysicalLocatorDto.java | 3 +- .../model/dto/locator/PostalLocatorDto.java | 3 +- .../model/dto/locator/TeleLocatorDto.java | 3 +- .../dto/log/EDXActivityDetailLogDto.java | 3 +- .../model/dto/log/EDXActivityLogDto.java | 3 +- .../model/dto/log/MessageLogDto.java | 3 +- .../model/dto/log/NNDActivityLogDto.java | 3 +- .../model/dto/lookup/DropDownCodeDto.java | 3 +- .../model/dto/lookup/LookupMappingDto.java | 3 +- .../model/dto/lookup/PrePopMappingDto.java | 3 +- .../model/dto/matching/EdxEntityMatchDto.java | 3 +- .../dto/matching/EdxPatientMatchDto.java | 3 +- .../dto/material/ManufacturedMaterialDto.java | 3 +- .../model/dto/material/MaterialDto.java | 3 +- .../model/dto/msgoute/NbsInterfaceDto.java | 3 +- .../model/dto/nbs/NBSDocumentDto.java | 3 +- .../model/dto/nbs/NbsActEntityDto.java | 3 +- .../model/dto/nbs/NbsAnswerDto.java | 3 +- .../model/dto/nbs/NbsCaseAnswerDto.java | 3 +- .../model/dto/nbs/NbsNoteDto.java | 3 +- .../model/dto/nbs/NbsQuestionMetadata.java | 3 +- .../dto/notification/NotificationDto.java | 3 +- .../notification/UpdatedNotificationDto.java | 3 +- .../dto/observation/ObsValueCodedDto.java | 3 +- .../dto/observation/ObsValueDateDto.java | 3 +- .../dto/observation/ObsValueNumericDto.java | 3 +- .../model/dto/observation/ObsValueTxtDto.java | 3 +- .../model/dto/observation/ObservationDto.java | 3 +- .../dto/observation/ObservationInterpDto.java | 3 +- .../dto/observation/ObservationReasonDto.java | 3 +- .../dto/organization/OrganizationDto.java | 3 +- .../dto/organization/OrganizationNameDto.java | 3 +- .../dto/participation/ParticipationDto.java | 3 +- .../model/dto/person/PersonDto.java | 3 +- .../dto/person/PersonEthnicGroupDto.java | 3 +- .../model/dto/person/PersonNameDto.java | 3 +- .../model/dto/person/PersonRaceDto.java | 3 +- .../model/dto/phc/CTContactSummaryDto.java | 3 +- .../model/dto/phc/CaseManagementDto.java | 3 +- .../model/dto/phc/ClinicalDocumentDto.java | 3 +- .../model/dto/phc/ConfirmationMethodDto.java | 3 +- .../model/dto/phc/EntityGroupDto.java | 3 +- .../dto/phc/ExportReceivingFacilityDto.java | 3 +- .../model/dto/phc/InterventionDto.java | 3 +- .../model/dto/phc/InterviewDto.java | 3 +- .../dto/phc/NonPersonLivingSubjectDto.java | 3 +- .../model/dto/phc/PatientEncounterDto.java | 3 +- .../model/dto/phc/PlaceDto.java | 3 +- .../model/dto/phc/PublicHealthCaseDto.java | 3 +- .../model/dto/phc/ReferralDto.java | 3 +- .../model/dto/uid/LocalUidCacheModel.java | 3 +- .../model/dto/uid/LocalUidGeneratorDto.java | 3 +- .../model/dto/uid/LocalUidModel.java | 3 +- .../nbs/msgoute/model/NbsInterfaceModel.java | 3 +- .../msgoute/repos/NbsInterfaceRepository.java | 18 +++++++++++ .../msgoute/repos/StoredProcRepository.java | 18 +++++++++++ .../NbsInterfaceStoredProcRepository.java | 3 +- .../ObservationMatchStoredProcRepository.java | 3 +- .../repository/nbs/odse/model/act/Act.java | 3 +- .../repository/nbs/odse/model/act/ActId.java | 3 +- .../model/act/ActLocatorParticipation.java | 3 +- .../nbs/odse/model/act/ActRelationship.java | 3 +- .../model/act/ActRelationshipHistory.java | 3 +- .../nbs/odse/model/auth/AuthUser.java | 3 +- .../odse/model/auth/AuthUserRealizedRole.java | 3 +- .../custom_model/QuestionRequiredNnd.java | 3 +- .../nbs/odse/model/dsm/DsmAlgorithm.java | 3 +- .../nbs/odse/model/edx/EdxDocument.java | 3 +- .../nbs/odse/model/edx/EdxEventProcess.java | 3 +- .../nbs/odse/model/entity/EntityId.java | 3 +- .../entity/EntityLocatorParticipation.java | 3 +- .../nbs/odse/model/entity/EntityODSE.java | 3 +- .../nbs/odse/model/entity/Role.java | 3 +- .../generic_helper/LocalUidGenerator.java | 3 +- .../model/generic_helper/PrepareEntity.java | 3 +- .../generic_helper/StateDefinedFieldData.java | 3 +- .../nbs/odse/model/id_class/ActIdId.java | 3 +- .../model/id_class/ActRelationshipId.java | 3 +- .../nbs/odse/model/id_class/EntityIdId.java | 3 +- .../EntityLocatorParticipationId.java | 3 +- .../id_class/ManufacturedMaterialId.java | 3 +- .../odse/model/id_class/NNDActivityLogId.java | 3 +- .../odse/model/id_class/ObsValueCodedId.java | 3 +- .../odse/model/id_class/ObsValueDateId.java | 3 +- .../model/id_class/ObsValueNumericId.java | 3 +- .../odse/model/id_class/ObsValueTxtId.java | 3 +- .../model/id_class/ObservationInterpId.java | 3 +- .../model/id_class/ObservationReasonId.java | 3 +- .../model/id_class/OrganizationHistId.java | 3 +- .../id_class/OrganizationNameHistId.java | 3 +- .../model/id_class/OrganizationNameId.java | 3 +- .../model/id_class/ParticipationHistId.java | 3 +- .../odse/model/id_class/ParticipationId.java | 3 +- .../model/id_class/PersonEthnicGroupId.java | 3 +- .../nbs/odse/model/id_class/PersonNameId.java | 3 +- .../nbs/odse/model/id_class/PersonRaceId.java | 3 +- .../odse/model/intervention/Intervention.java | 3 +- .../odse/model/locator/PhysicalLocator.java | 3 +- .../nbs/odse/model/locator/PostalLocator.java | 3 +- .../nbs/odse/model/locator/TeleLocator.java | 3 +- .../odse/model/log/EdxActivityDetailLog.java | 3 +- .../nbs/odse/model/log/EdxActivityLog.java | 3 +- .../nbs/odse/model/log/MessageLog.java | 3 +- .../nbs/odse/model/log/NNDActivityLog.java | 3 +- .../nbs/odse/model/lookup/LookupAnswer.java | 3 +- .../nbs/odse/model/lookup/LookupQuestion.java | 3 +- .../model/lookup/LookupQuestionExtended.java | 3 +- .../odse/model/matching/EdxEntityMatch.java | 3 +- .../odse/model/matching/EdxPatientMatch.java | 3 +- .../model/material/ManufacturedMaterial.java | 3 +- .../nbs/odse/model/material/Material.java | 3 +- .../nbs/odse/model/nbs/NbsActEntity.java | 3 +- .../nbs/odse/model/nbs/NbsActEntityHist.java | 3 +- .../nbs/odse/model/nbs/NbsAnswer.java | 3 +- .../nbs/odse/model/nbs/NbsAnswerHist.java | 3 +- .../nbs/odse/model/nbs/NbsCaseAnswer.java | 3 +- .../nbs/odse/model/nbs/NbsDocument.java | 3 +- .../nbs/odse/model/nbs/NbsDocumentHist.java | 3 +- .../nbs/odse/model/nbs/NbsNote.java | 3 +- .../nbs/odse/model/nbs/NbsUiMetaData.java | 3 +- .../odse/model/notification/Notification.java | 3 +- .../odse/model/observation/ObsValueCoded.java | 3 +- .../odse/model/observation/ObsValueDate.java | 3 +- .../model/observation/ObsValueNumeric.java | 3 +- .../odse/model/observation/ObsValueTxt.java | 3 +- .../odse/model/observation/Observation.java | 3 +- .../model/observation/ObservationBase.java | 3 +- .../model/observation/ObservationInterp.java | 3 +- .../model/observation/ObservationReason.java | 3 +- ...Observation_Lab_Summary_ForWorkUp_New.java | 3 +- .../observation/Observation_Question.java | 3 +- .../observation/Observation_Summary.java | 3 +- .../odse/model/organization/Organization.java | 3 +- .../model/organization/OrganizationHist.java | 3 +- .../model/organization/OrganizationName.java | 3 +- .../organization/OrganizationNameHist.java | 3 +- .../model/participation/Participation.java | 3 +- .../participation/ParticipationHist.java | 3 +- .../nbs/odse/model/person/Person.java | 3 +- .../odse/model/person/PersonEthnicGroup.java | 3 +- .../nbs/odse/model/person/PersonName.java | 3 +- .../nbs/odse/model/person/PersonRace.java | 3 +- .../nbs/odse/model/phc/CaseManagement.java | 3 +- .../nbs/odse/model/phc/ClinicalDocument.java | 3 +- .../odse/model/phc/ConfirmationMethod.java | 3 +- .../nbs/odse/model/phc/EntityGroup.java | 3 +- .../model/phc/NonPersonLivingSubject.java | 3 +- .../nbs/odse/model/phc/PatientEncounter.java | 3 +- .../repository/nbs/odse/model/phc/Place.java | 3 +- .../nbs/odse/model/phc/PublicHealthCase.java | 3 +- .../nbs/odse/model/phc/Referral.java | 3 +- .../odse/model/question/QuestionMetadata.java | 3 +- .../nbs/odse/model/question/WAQuestion.java | 3 +- .../odse/repos/CustomAuthUserRepository.java | 18 +++++++++++ .../repos/CustomAuthUserRepositoryImpl.java | 10 +++++- .../repos/CustomNbsQuestionRepository.java | 18 +++++++++++ .../CustomNbsQuestionRepositoryImpl.java | 3 +- .../nbs/odse/repos/CustomRepository.java | 18 +++++++++++ .../nbs/odse/repos/CustomRepositoryImpl.java | 3 +- .../nbs/odse/repos/act/ActIdRepository.java | 18 +++++++++++ .../ActLocatorParticipationRepository.java | 18 +++++++++++ .../act/ActRelationshipHistoryRepository.java | 18 +++++++++++ .../repos/act/ActRelationshipRepository.java | 18 +++++++++++ .../nbs/odse/repos/act/ActRepository.java | 18 +++++++++++ .../repos/act/NbsActEntityHistRepository.java | 18 +++++++++++ .../repos/act/NbsActEntityRepository.java | 18 +++++++++++ .../odse/repos/act/WAQuestionRepository.java | 18 +++++++++++ .../odse/repos/auth/AuthUserRepository.java | 18 +++++++++++ .../repos/dsm/DsmAlgorithmRepository.java | 18 +++++++++++ .../odse/repos/edx/EdxDocumentRepository.java | 18 +++++++++++ .../repos/edx/EdxEventProcessRepository.java | 18 +++++++++++ .../odse/repos/entity/EntityIdRepository.java | 18 +++++++++++ .../EntityLocatorParticipationRepository.java | 18 +++++++++++ .../odse/repos/entity/EntityRepository.java | 18 +++++++++++ .../locator/LocalUidGeneratorRepository.java | 18 +++++++++++ .../locator/PhysicalLocatorRepository.java | 18 +++++++++++ .../locator/PostalLocatorRepository.java | 18 +++++++++++ .../repos/locator/TeleLocatorRepository.java | 18 +++++++++++ .../log/EdxActivityDetailLogRepository.java | 18 +++++++++++ .../repos/log/EdxActivityLogRepository.java | 18 +++++++++++ .../odse/repos/log/MessageLogRepository.java | 18 +++++++++++ .../repos/log/NNDActivityLogRepository.java | 18 +++++++++++ .../repos/lookup/LookupMappingRepository.java | 18 +++++++++++ .../matching/EdxEntityMatchRepository.java | 18 +++++++++++ .../matching/EdxPatientMatchRepository.java | 18 +++++++++++ .../ManufacturedMaterialRepository.java | 18 +++++++++++ .../repos/material/MaterialRepository.java | 18 +++++++++++ .../repos/nbs/NbsAnswerHistRepository.java | 18 +++++++++++ .../odse/repos/nbs/NbsAnswerRepository.java | 18 +++++++++++ .../repos/nbs/NbsCaseAnswerRepository.java | 18 +++++++++++ .../repos/nbs/NbsDocumentHistRepository.java | 18 +++++++++++ .../odse/repos/nbs/NbsDocumentRepository.java | 18 +++++++++++ .../nbs/odse/repos/nbs/NbsNoteRepository.java | 18 +++++++++++ .../repos/nbs/NbsUiMetaDataRepository.java | 18 +++++++++++ .../notification/NotificationRepository.java | 18 +++++++++++ .../observation/ObsValueCodedRepository.java | 18 +++++++++++ .../observation/ObsValueDateRepository.java | 18 +++++++++++ .../ObsValueNumericRepository.java | 18 +++++++++++ .../observation/ObsValueTxtRepository.java | 18 +++++++++++ .../ObservationInterpRepository.java | 18 +++++++++++ .../ObservationReasonRepository.java | 18 +++++++++++ .../observation/ObservationRepository.java | 18 +++++++++++ .../Observation_SummaryRepository.java | 18 +++++++++++ .../Observation_SummaryRepositoryImpl.java | 3 +- .../OrganizationHistRepository.java | 18 +++++++++++ .../OrganizationNameHistRepository.java | 18 +++++++++++ .../OrganizationNameRepository.java | 18 +++++++++++ .../organization/OrganizationRepository.java | 18 +++++++++++ .../ParticipationHistRepository.java | 18 +++++++++++ .../ParticipationRepository.java | 18 +++++++++++ .../repos/person/PersonEthnicRepository.java | 18 +++++++++++ .../repos/person/PersonNameRepository.java | 18 +++++++++++ .../repos/person/PersonRaceRepository.java | 18 +++++++++++ .../odse/repos/person/PersonRepository.java | 18 +++++++++++ .../repos/phc/CaseManagementRepository.java | 18 +++++++++++ .../repos/phc/ClinicalDocumentRepository.java | 18 +++++++++++ .../phc/ConfirmationMethodRepository.java | 18 +++++++++++ .../odse/repos/phc/EntityGroupRepository.java | 18 +++++++++++ .../phc/NonPersonLivingSubjectRepository.java | 18 +++++++++++ .../repos/phc/PatientEncounterRepository.java | 18 +++++++++++ .../nbs/odse/repos/phc/PlaceRepository.java | 18 +++++++++++ .../repos/phc/PublicHealthCaseRepository.java | 18 +++++++++++ .../odse/repos/phc/ReferralRepository.java | 18 +++++++++++ .../nbs/odse/repos/role/RoleRepository.java | 18 +++++++++++ .../EdxPatientMatchStoredProcRepository.java | 3 +- .../ParticipationStoredProcRepository.java | 9 ++++-- .../PrepareEntityStoredProcRepository.java | 3 +- ...ProgAreaSnomeCodeStoredProcRepository.java | 3 +- .../PublicHealthCaseStoredProcRepository.java | 3 +- .../nbs/srte/model/BaseConditionCode.java | 3 +- .../nbs/srte/model/CityCodeValue.java | 3 +- .../nbs/srte/model/CodeValueGeneral.java | 3 +- .../nbs/srte/model/ConditionCode.java | 3 +- .../nbs/srte/model/ConditionCodeWithPA.java | 3 +- .../repository/nbs/srte/model/ElrXref.java | 3 +- .../nbs/srte/model/JurisdictionCode.java | 3 +- .../srte/model/JurisdictionParticipation.java | 3 +- .../repository/nbs/srte/model/LOINCCode.java | 3 +- .../nbs/srte/model/LOINCCodeCondition.java | 3 +- .../repository/nbs/srte/model/LabResult.java | 3 +- .../nbs/srte/model/LabResultSnomed.java | 3 +- .../repository/nbs/srte/model/LabTest.java | 3 +- .../nbs/srte/model/LabTestLoinc.java | 3 +- .../nbs/srte/model/ProgramAreaCode.java | 3 +- .../repository/nbs/srte/model/RaceCode.java | 3 +- .../repository/nbs/srte/model/SnomedCode.java | 3 +- .../nbs/srte/model/SnomedCondition.java | 3 +- .../repository/nbs/srte/model/StateCode.java | 3 +- .../nbs/srte/model/StateCountyCodeValue.java | 3 +- .../id_class/JurisdictionParticipationId.java | 3 +- .../CodeValueGeneralRepository.java | 18 +++++++++++ .../repository/ConditionCodeRepository.java | 18 +++++++++++ .../srte/repository/ElrXrefRepository.java | 18 +++++++++++ .../JurisdictionCodeRepository.java | 18 +++++++++++ .../JurisdictionParticipationRepository.java | 18 +++++++++++ .../srte/repository/LOINCCodeRepository.java | 18 +++++++++++ .../srte/repository/LabResultRepository.java | 18 +++++++++++ .../repository/LabResultSnomedRepository.java | 18 +++++++++++ .../repository/LabTestLoincRepository.java | 18 +++++++++++ .../srte/repository/LabTestRepository.java | 18 +++++++++++ .../repository/ProgramAreaCodeRepository.java | 18 +++++++++++ .../srte/repository/RaceCodeRepository.java | 18 +++++++++++ .../srte/repository/SnomedCodeRepository.java | 18 +++++++++++ .../repository/SnomedConditionRepository.java | 18 +++++++++++ .../srte/repository/StateCodeRepository.java | 18 +++++++++++ .../StateCountyCodeValueRepository.java | 18 +++++++++++ .../custom/SrteCustomRepository.java | 18 +++++++++++ .../custom/SrteCustomRepositoryImpl.java | 3 +- .../config/DataProcessingSecurityConfig.java | 4 ++- .../act/ActRelationshipService.java | 3 +- .../action/LabReportProcessing.java | 3 +- .../implementation/answer/AnswerService.java | 3 +- .../auth_user/AuthUserService.java | 3 +- .../cache/CachingValueService.java | 3 +- .../DataExtractionService.java | 3 +- .../DataExtractionServiceUtility.java | 3 +- .../EntityLocatorParticipationService.java | 3 +- .../AutoInvestigationService.java | 5 +-- .../investigation/DecisionSupportService.java | 14 ++++---- .../investigation/DsmAlgorithmService.java | 3 +- .../investigation/LookupService.java | 18 +++++++---- .../jurisdiction/JurisdictionService.java | 9 ++++-- .../jurisdiction/ProgramAreaService.java | 3 +- .../implementation/log/EdxLogService.java | 3 +- .../implementation/log/MessageLogService.java | 3 +- .../log/NNDActivityLogService.java | 3 +- .../lookup_data/SrteCodeObsService.java | 15 ++++++--- .../manager/ManagerAggregationService.java | 3 +- .../manager/ManagerCacheService.java | 3 +- .../manager/ManagerService.java | 3 +- .../material/MaterialService.java | 3 +- .../notification/NotificationService.java | 3 +- .../observation/EdxDocumentService.java | 3 +- .../observation/ObservationCodeService.java | 10 ++++-- .../ObservationMatchingService.java | 3 +- .../observation/ObservationService.java | 9 +++--- .../ObservationSummaryService.java | 3 +- .../OrganizationMatchingService.java | 3 +- .../organization/OrganizationService.java | 3 +- .../page_and_pam/PageService.java | 3 +- .../page_and_pam/PamService.java | 3 +- .../participation/ParticipationService.java | 3 +- .../person/NokMatchingService.java | 3 +- .../person/PatientMatchingService.java | 3 +- .../implementation/person/PersonService.java | 3 +- .../person/ProviderMatchingService.java | 3 +- .../person/base/MatchingBaseService.java | 3 +- .../person/base/NokMatchingBaseService.java | 3 +- .../base/PatientMatchingBaseService.java | 5 +-- .../base/ProviderMatchingBaseService.java | 5 +-- .../ContactSummaryService.java | 3 +- .../InvestigationNotificationService.java | 10 ++++-- .../InvestigationService.java | 7 ++-- .../public_health_case/LdfService.java | 3 +- .../PublicHealthCaseService.java | 3 +- .../RetrieveSummaryService.java | 9 ++++-- .../implementation/role/RoleService.java | 3 +- .../stored_proc/MsgOutEStoredProcService.java | 3 +- .../uid_generator/OdseIdGeneratorService.java | 3 +- .../OdseIdGeneratorWCacheService.java | 3 +- .../uid_generator/UidService.java | 3 +- .../act/IActRelationshipService.java | 18 +++++++++++ .../action/ILabReportProcessing.java | 18 +++++++++++ .../interfaces/answer/IAnswerService.java | 18 +++++++++++ .../auth_user/IAuthUserService.java | 18 +++++++++++ .../cache/ICatchingValueService.java | 18 +++++++++++ .../IDataExtractionService.java | 18 +++++++++++ .../IEntityLocatorParticipationService.java | 18 +++++++++++ .../jurisdiction/IJurisdictionService.java | 18 +++++++++++ .../jurisdiction/IProgramAreaService.java | 18 +++++++++++ .../interfaces/log/IEdxLogService.java | 18 +++++++++++ .../interfaces/log/IMessageLogService.java | 18 +++++++++++ .../log/INNDActivityLogService.java | 18 +++++++++++ .../lookup_data/ILookupService.java | 18 +++++++++++ .../lookup_data/ISrteCodeObsService.java | 18 +++++++++++ .../manager/IManagerAggregationService.java | 18 +++++++++++ .../manager/IManagerCacheService.java | 18 +++++++++++ .../interfaces/manager/IManagerService.java | 18 +++++++++++ .../interfaces/material/IMaterialService.java | 18 +++++++++++ .../notification/INotificationService.java | 18 +++++++++++ .../observation/IEdxDocumentService.java | 18 +++++++++++ .../observation/IObservationCodeService.java | 18 +++++++++++ .../IObservationMatchingService.java | 18 +++++++++++ .../observation/IObservationService.java | 18 +++++++++++ .../IObservationSummaryService.java | 18 +++++++++++ .../IOrganizationMatchingService.java | 18 +++++++++++ .../organization/IOrganizationService.java | 18 +++++++++++ .../interfaces/page_and_pam/IPageService.java | 18 +++++++++++ .../interfaces/page_and_pam/IPamService.java | 18 +++++++++++ .../paticipation/IParticipationService.java | 18 +++++++++++ .../person/INokMatchingService.java | 18 +++++++++++ .../person/IPatientMatchingService.java | 18 +++++++++++ .../interfaces/person/IPersonService.java | 18 +++++++++++ .../person/IProviderMatchingService.java | 18 +++++++++++ .../IAutoInvestigationService.java | 18 +++++++++++ .../IContactSummaryService.java | 18 +++++++++++ .../IDecisionSupportService.java | 18 +++++++++++ .../IInvestigationNotificationService.java | 18 +++++++++++ .../IInvestigationService.java | 18 +++++++++++ .../public_health_case/ILdfService.java | 18 +++++++++++ .../IPublicHealthCaseService.java | 18 +++++++++++ .../IRetrieveSummaryService.java | 18 +++++++++++ .../service/interfaces/role/IRoleService.java | 18 +++++++++++ .../IMsgOutEStoredProcService.java | 18 +++++++++++ .../IOdseIdGeneratorService.java | 18 +++++++++++ .../IOdseIdGeneratorWCacheService.java | 18 +++++++++++ .../interfaces/uid_generator/IUidService.java | 18 +++++++++++ .../service/model/action/PageActPatient.java | 3 +- .../service/model/action/PageActPhc.java | 3 +- .../model/auth_user/AuthUserProfileInfo.java | 3 +- .../decision_support/DsmLabMatchHelper.java | 13 +++++--- .../decision_support/TestCodedValue.java | 3 +- .../decision_support/TestNumericValue.java | 3 +- .../model/decision_support/TestTextValue.java | 3 +- .../lookup_data/MetaAndWaCommonAttribute.java | 3 +- .../model/person/PersonAggContainer.java | 3 +- .../service/model/person/PersonId.java | 3 +- .../phc/PublicHealthCaseFlowContainer.java | 3 +- .../service/model/wds/WdsReport.java | 3 +- .../service/model/wds/WdsTrackerView.java | 3 +- .../model/wds/WdsValueCodedReport.java | 3 +- .../model/wds/WdsValueNumericReport.java | 3 +- .../service/model/wds/WdsValueTextReport.java | 3 +- .../utilities/DataParserForSql.java | 3 +- .../utilities/DynamicBeanBinding.java | 9 +++--- .../dataprocessing/utilities/GsonUtil.java | 3 +- .../utilities/RulesEngineUtil.java | 3 +- .../dataprocessing/utilities/StringUtils.java | 3 +- .../utilities/auth/AuthUtil.java | 3 +- .../component/act/ActIdRepositoryUtil.java | 3 +- ...ActLocatorParticipationRepositoryUtil.java | 3 +- .../act/ActRelationshipRepositoryUtil.java | 3 +- .../component/act/ActRepositoryUtil.java | 3 +- .../data_parser/HL7PatientHandler.java | 3 +- .../data_parser/NBSObjectConverter.java | 3 +- .../component/data_parser/ORCHandler.java | 3 +- .../ObservationRequestHandler.java | 5 +-- .../ObservationResultRequestHandler.java | 3 +- .../data_parser/util/CommonLabUtil.java | 3 +- .../data_parser/util/EntityIdUtil.java | 3 +- .../data_parser/util/HL7SpecimenUtil.java | 3 +- .../data_parser/util/LabResultUtil.java | 3 +- .../edx/EdxEventProcessRepositoryUtil.java | 3 +- .../component/edx/EdxPhcrDocumentUtil.java | 9 ++++-- .../component/entity/EntityHelper.java | 3 +- .../entity/EntityRepositoryUtil.java | 3 +- .../generic_helper/ConcurrentCheck.java | 3 +- .../component/generic_helper/ManagerUtil.java | 3 +- .../PrepareAssocModelHelper.java | 15 +++++---- .../generic_helper/PropertyUtil.java | 8 +++-- .../ProgAreaJurisdictionUtil.java | 9 ++++-- .../nbs/NbsDocumentRepositoryUtil.java | 5 +-- .../component/nbs/NbsNoteRepositoryUtil.java | 3 +- .../NotificationRepositoryUtil.java | 3 +- .../ObservationRepositoryUtil.java | 3 +- .../observation/ObservationUtil.java | 3 +- .../OrganizationRepositoryUtil.java | 3 +- .../page_and_pam/PageRepositoryUtil.java | 3 +- .../page_and_pam/PamRepositoryUtil.java | 3 +- .../ParticipationRepositoryUtil.java | 3 +- .../EdxPatientMatchRepositoryUtil.java | 3 +- .../patient/PatientRepositoryUtil.java | 3 +- .../component/patient/PersonUtil.java | 3 +- .../public_health_case/AdvancedCriteria.java | 3 +- .../CaseManagementRepositoryUtil.java | 3 +- .../public_health_case/CdaPhcProcessor.java | 3 +- .../ConfirmationMethodRepositoryUtil.java | 3 +- .../PublicHealthCaseRepositoryUtil.java | 3 +- .../utilities/component/sql/QueryHelper.java | 3 +- .../wds/ValidateDecisionSupport.java | 7 ++-- .../component/wds/WdsObjectChecker.java | 9 ++++-- .../dataprocessing/utilities/model/Coded.java | 3 +- .../utilities/time/TimeStampUtil.java | 3 +- .../DecisionSupportServiceTest.java | 7 ++-- .../other/DataExtractionServiceTest.java | 21 ++++++------ .../base/PatientMatchingBaseServiceTest.java | 2 -- .../base/ProviderMatchingBaseServiceTest.java | 16 +++++----- .../InvestigationServiceTests.java | 9 +++--- .../dataprocessing/test_data/TestData.java | 3 +- .../test_data/TestDataReader.java | 18 +++++++++-- .../data_parser/util/EntityIdUtilTest.java | 2 +- .../nbs/NbsDocumentRepositoryUtilTest.java | 2 +- .../hl7/helper/unitTest/Hl7TestData.java | 2 +- 728 files changed, 4741 insertions(+), 555 deletions(-) diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/ServiceApplication.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/ServiceApplication.java index 6a1647ada..e79297c30 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/ServiceApplication.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/ServiceApplication.java @@ -7,6 +7,13 @@ * Report service application. */ @SpringBootApplication +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class ServiceApplication { /** * Main method for spring boot application. diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/camel/routes/ElrProcessStatusComponent.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/camel/routes/ElrProcessStatusComponent.java index dbb3af144..13d43ee8a 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/camel/routes/ElrProcessStatusComponent.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/camel/routes/ElrProcessStatusComponent.java @@ -12,6 +12,13 @@ import java.util.List; @Component +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class ElrProcessStatusComponent { private static Logger logger = LoggerFactory.getLogger(ElrProcessStatusComponent.class); private ReportStatusService reportStatusService; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/camel/routes/HL7FileProcessComponent.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/camel/routes/HL7FileProcessComponent.java index 614ab7e0c..671220789 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/camel/routes/HL7FileProcessComponent.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/camel/routes/HL7FileProcessComponent.java @@ -9,6 +9,13 @@ import org.springframework.stereotype.Component; @Component +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class HL7FileProcessComponent { private static Logger logger = LoggerFactory.getLogger(HL7FileProcessComponent.class); String msgType = "HL7"; @@ -19,7 +26,7 @@ public HL7FileProcessComponent(RawELRService rawELRService){ this.rawELRService=rawELRService; } @Handler - public String process(String body) throws Exception { + public String process(String body) { String elrId = ""; String version="1"; try { diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/camel/routes/SFTPRouteBuilder.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/camel/routes/SFTPRouteBuilder.java index c034e490a..cbd54aa98 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/camel/routes/SFTPRouteBuilder.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/camel/routes/SFTPRouteBuilder.java @@ -14,6 +14,13 @@ @Component @ConditionalOnProperty(name = "sftp.enabled", havingValue = "enabled") +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class SFTPRouteBuilder extends RouteBuilder { private static Logger logger = LoggerFactory.getLogger(SFTPRouteBuilder.class); @Value("${sftp.host}") diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/config/ClassConfig.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/config/ClassConfig.java index 5fa44ef5f..cc1665457 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/config/ClassConfig.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/config/ClassConfig.java @@ -7,6 +7,13 @@ import org.springframework.context.annotation.Configuration; @Configuration +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class ClassConfig { @Bean diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/config/DataSourceConfig.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/config/DataSourceConfig.java index fe2fda9c8..087ef60fd 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/config/DataSourceConfig.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/config/DataSourceConfig.java @@ -32,6 +32,13 @@ } ) @Configuration +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class DataSourceConfig { private static final Logger logger = LoggerFactory.getLogger(DataSourceConfig.class); diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/config/KafkaConsumerConfig.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/config/KafkaConsumerConfig.java index 3247390c6..351357281 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/config/KafkaConsumerConfig.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/config/KafkaConsumerConfig.java @@ -17,6 +17,13 @@ @Slf4j @EnableKafka @Configuration +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class KafkaConsumerConfig { @Value("${spring.kafka.group-id}") private String groupId = ""; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/config/KafkaProducerConfig.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/config/KafkaProducerConfig.java index fb7470c04..32d87d5c1 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/config/KafkaProducerConfig.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/config/KafkaProducerConfig.java @@ -14,6 +14,13 @@ import java.util.Map; @Configuration +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class KafkaProducerConfig { @Value("${spring.kafka.bootstrap-servers}") private String bootstrapServers = ""; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/config/KafkaProducerTransactionConfig.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/config/KafkaProducerTransactionConfig.java index 8ac864596..8962cde8d 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/config/KafkaProducerTransactionConfig.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/config/KafkaProducerTransactionConfig.java @@ -13,6 +13,13 @@ import java.util.Map; @Configuration +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class KafkaProducerTransactionConfig { @Value("${spring.kafka.bootstrap-servers}") private String bootstrapServers = ""; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/config/NbsDataSourceConfig.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/config/NbsDataSourceConfig.java index 7e8220d10..fd53dc8ec 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/config/NbsDataSourceConfig.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/config/NbsDataSourceConfig.java @@ -27,6 +27,13 @@ "gov.cdc.dataingestion.nbs.repository" } ) +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class NbsDataSourceConfig { @Value("${spring.datasource.driverClassName}") private String driverClassName; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/config/OdseDataSourceConfig.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/config/OdseDataSourceConfig.java index c98b64460..ca49b477f 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/config/OdseDataSourceConfig.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/config/OdseDataSourceConfig.java @@ -28,6 +28,13 @@ "gov.cdc.dataingestion.odse.repository", } ) +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class OdseDataSourceConfig { @Value("${spring.datasource.driverClassName}") private String driverClassName; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/config/OpenAPIConfig.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/config/OpenAPIConfig.java index 263da785d..6bc0be7e8 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/config/OpenAPIConfig.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/config/OpenAPIConfig.java @@ -15,6 +15,13 @@ import java.util.List; @Configuration +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class OpenAPIConfig { @Value("${diserver.host}") private String serverhost; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/constant/KafkaHeaderValue.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/constant/KafkaHeaderValue.java index 2663d8c4e..09aa2c5a1 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/constant/KafkaHeaderValue.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/constant/KafkaHeaderValue.java @@ -1,5 +1,12 @@ package gov.cdc.dataingestion.constant; +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class KafkaHeaderValue { private KafkaHeaderValue() { diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/constant/MessageType.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/constant/MessageType.java index 99c96ea42..02140861d 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/constant/MessageType.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/constant/MessageType.java @@ -1,5 +1,12 @@ package gov.cdc.dataingestion.constant; +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class MessageType { public static final String HL7_ELR = "HL7"; public static final String XML_ELR = "HL7-XML"; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/custommetrics/CustomMetricsBuilder.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/custommetrics/CustomMetricsBuilder.java index 89179e618..94d9ac094 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/custommetrics/CustomMetricsBuilder.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/custommetrics/CustomMetricsBuilder.java @@ -5,6 +5,13 @@ import org.springframework.stereotype.Component; @Component +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class CustomMetricsBuilder { Counter customMessagesProcessed; Counter customMessagesValidated; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/custommetrics/TimeMetricsBuilder.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/custommetrics/TimeMetricsBuilder.java index a69074e40..36f3325be 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/custommetrics/TimeMetricsBuilder.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/custommetrics/TimeMetricsBuilder.java @@ -5,6 +5,13 @@ import org.springframework.stereotype.Component; @Component +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class TimeMetricsBuilder { Timer elrRawEventTimer; Timer elrRawXmlEventTimer; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/deadletter/controller/ElrDeadLetterController.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/deadletter/controller/ElrDeadLetterController.java index 84c738741..75da2287b 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/deadletter/controller/ElrDeadLetterController.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/deadletter/controller/ElrDeadLetterController.java @@ -20,6 +20,13 @@ @RequiredArgsConstructor @SecurityRequirement(name = "bearer-key") @Tag(name = "ELR Dead Letter", description = "Elr Dead Letter Messages") +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class ElrDeadLetterController { private final ElrDeadLetterService elrDeadLetterService; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/deadletter/model/ElrDeadLetterDto.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/deadletter/model/ElrDeadLetterDto.java index 363956789..b6d59a76f 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/deadletter/model/ElrDeadLetterDto.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/deadletter/model/ElrDeadLetterDto.java @@ -13,6 +13,13 @@ @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class ElrDeadLetterDto { private String errorMessageId; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/deadletter/repository/model/ElrDeadLetterModel.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/deadletter/repository/model/ElrDeadLetterModel.java index b705ae1d5..bf3d529d2 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/deadletter/repository/model/ElrDeadLetterModel.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/deadletter/repository/model/ElrDeadLetterModel.java @@ -10,6 +10,13 @@ @Setter @Entity @Table(name = "elr_dlt") +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class ElrDeadLetterModel { @Id diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/deadletter/service/ElrDeadLetterService.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/deadletter/service/ElrDeadLetterService.java index 964caa3bf..0b94c0c1d 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/deadletter/service/ElrDeadLetterService.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/deadletter/service/ElrDeadLetterService.java @@ -26,6 +26,13 @@ @Service @Slf4j +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class ElrDeadLetterService { private final IElrDeadLetterRepository dltRepository; private final IRawELRRepository rawELRRepository; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/exception/ConversionPrepareException.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/exception/ConversionPrepareException.java index 9fb9b6b1a..92d9ca9ce 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/exception/ConversionPrepareException.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/exception/ConversionPrepareException.java @@ -1,5 +1,12 @@ package gov.cdc.dataingestion.exception; +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class ConversionPrepareException extends Exception{ public ConversionPrepareException(String message) { super(message); diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/exception/DeadLetterTopicException.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/exception/DeadLetterTopicException.java index f10b3eaf8..9d835fef2 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/exception/DeadLetterTopicException.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/exception/DeadLetterTopicException.java @@ -1,5 +1,12 @@ package gov.cdc.dataingestion.exception; +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class DeadLetterTopicException extends Exception{ public DeadLetterTopicException(String message) { super(message); diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/exception/DiAsyncException.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/exception/DiAsyncException.java index ddd81fc25..a2b23c309 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/exception/DiAsyncException.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/exception/DiAsyncException.java @@ -1,5 +1,12 @@ package gov.cdc.dataingestion.exception; +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class DiAsyncException extends RuntimeException { public DiAsyncException(String message) { super(message); diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/exception/DuplicateHL7FileFoundException.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/exception/DuplicateHL7FileFoundException.java index 0b032fd55..36e7e2958 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/exception/DuplicateHL7FileFoundException.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/exception/DuplicateHL7FileFoundException.java @@ -1,5 +1,12 @@ package gov.cdc.dataingestion.exception; +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class DuplicateHL7FileFoundException extends Exception { public DuplicateHL7FileFoundException(String message) { diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/exception/EcrCdaXmlException.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/exception/EcrCdaXmlException.java index 471a03639..91c534d96 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/exception/EcrCdaXmlException.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/exception/EcrCdaXmlException.java @@ -1,5 +1,12 @@ package gov.cdc.dataingestion.exception; +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class EcrCdaXmlException extends Exception { public EcrCdaXmlException(String message) { super(message); diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/exception/FhirConversionException.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/exception/FhirConversionException.java index ca69e1470..24ec13b90 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/exception/FhirConversionException.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/exception/FhirConversionException.java @@ -1,5 +1,12 @@ package gov.cdc.dataingestion.exception; +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class FhirConversionException extends Exception { public FhirConversionException(String message) { diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/exception/XmlConversionException.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/exception/XmlConversionException.java index a87709659..3bcebc729 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/exception/XmlConversionException.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/exception/XmlConversionException.java @@ -1,5 +1,12 @@ package gov.cdc.dataingestion.exception; +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class XmlConversionException extends Exception { public XmlConversionException(String message) { super(message); diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/kafka/integration/service/KafkaConsumerService.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/kafka/integration/service/KafkaConsumerService.java index efe49e692..22cd1feb7 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/kafka/integration/service/KafkaConsumerService.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/kafka/integration/service/KafkaConsumerService.java @@ -55,6 +55,13 @@ @Service @Slf4j +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class KafkaConsumerService { //region VARIABLE @@ -97,7 +104,6 @@ public class KafkaConsumerService { private final IReportStatusRepository iReportStatusRepository; private final CustomMetricsBuilder customMetricsBuilder; private final TimeMetricsBuilder timeMetricsBuilder; - private final KafkaProducerTransactionService kafkaProducerTransactionService; private String errorDltMessage = "Message not found in dead letter table"; private String topicDebugLog = "Received message ID: {} from topic: {}"; private String processDltErrorMessage = "Raw data not found; id: "; @@ -117,7 +123,7 @@ public KafkaConsumerService( IEcrMsgQueryService ecrMsgQueryService, IReportStatusRepository iReportStatusRepository, CustomMetricsBuilder customMetricsBuilder, - TimeMetricsBuilder timeMetricsBuilder, KafkaProducerTransactionService kafkaProducerTransactionService) { + TimeMetricsBuilder timeMetricsBuilder) { this.iValidatedELRRepository = iValidatedELRRepository; this.iRawELRRepository = iRawELRRepository; this.kafkaProducerService = kafkaProducerService; @@ -130,7 +136,6 @@ public KafkaConsumerService( this.iReportStatusRepository = iReportStatusRepository; this.customMetricsBuilder = customMetricsBuilder; this.timeMetricsBuilder = timeMetricsBuilder; - this.kafkaProducerTransactionService =kafkaProducerTransactionService; } //endregion @@ -178,7 +183,7 @@ public KafkaConsumerService( public void handleMessageForRawElr(String message, @Header(KafkaHeaders.RECEIVED_TOPIC) String topic, @Header(KafkaHeaderValue.MESSAGE_VALIDATION_ACTIVE) String messageValidationActive, - @Header(KafkaHeaderValue.DATA_PROCESSING_ENABLE) String dataProcessingEnable) throws DuplicateHL7FileFoundException, DiHL7Exception { + @Header(KafkaHeaderValue.DATA_PROCESSING_ENABLE) String dataProcessingEnable) { timeMetricsBuilder.recordElrRawEventTime(() -> { log.debug(topicDebugLog, message, topic); boolean hl7ValidationActivated = false; @@ -189,7 +194,7 @@ public void handleMessageForRawElr(String message, try { validationHandler(message, hl7ValidationActivated, dataProcessingEnable); } catch (DuplicateHL7FileFoundException | DiHL7Exception e) { - throw new RuntimeException(e); + throw new RuntimeException(e); //NOSONAR } }); } @@ -297,7 +302,7 @@ public void handleMessageForValidatedElr(String message, try { preparationForConversionHandler(message, dataProcessingEnable); } catch (Exception e) { - throw new RuntimeException(e); + throw new RuntimeException(e); //NOSONAR } }); } @@ -525,9 +530,6 @@ public void xmlConversionHandlerProcessing(String message, String operation, Str } if (dataProcessingApplied) { - Gson gson = new Gson(); - String strGson = gson.toJson(nbsInterfaceModel); - kafkaProducerService.sendMessageAfterConvertedToXml(nbsInterfaceModel.getNbsInterfaceUid().toString(), "elr_unprocessed", 0); //NOSONAR } else { kafkaProducerService.sendMessageAfterConvertedToXml(nbsInterfaceModel.getNbsInterfaceUid().toString(), convertedToXmlTopic, 0); @@ -592,7 +594,7 @@ private void validationHandler(String message, boolean hl7ValidationActivated, S kafkaProducerService.sendMessageAfterValidatingMessage(hl7ValidatedModel, validatedTopic, 0, dataProcessingEnable); break; case KafkaHeaderValue.MESSAGE_TYPE_CSV: - // TODO: implement csv validation, this is not in the scope of data ingestion at the moment + // TODO: implement csv validation, this is not in the scope of data ingestion at the moment //NOSONAR break; default: break; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/kafka/integration/service/KafkaProducerService.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/kafka/integration/service/KafkaProducerService.java index 2e4e19367..10f90b7ec 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/kafka/integration/service/KafkaProducerService.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/kafka/integration/service/KafkaProducerService.java @@ -15,6 +15,13 @@ import java.util.UUID; @Service +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class KafkaProducerService { private static final String PREFIX_MSG_PREP = "PREP_"; private static final String PREFIX_MSG_XML = "XML_"; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/kafka/integration/service/KafkaProducerTransactionService.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/kafka/integration/service/KafkaProducerTransactionService.java index a799416f9..f33c07229 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/kafka/integration/service/KafkaProducerTransactionService.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/kafka/integration/service/KafkaProducerTransactionService.java @@ -11,6 +11,13 @@ import java.util.UUID; @Service +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class KafkaProducerTransactionService { private static final String PREFIX_MSG_XML = "XML_"; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/converters/Hl7ToRhapsodysXmlConverter.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/converters/Hl7ToRhapsodysXmlConverter.java index 703878a5e..f598edcff 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/converters/Hl7ToRhapsodysXmlConverter.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/converters/Hl7ToRhapsodysXmlConverter.java @@ -38,6 +38,13 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class Hl7ToRhapsodysXmlConverter { private static final Logger log = LoggerFactory.getLogger(Hl7ToRhapsodysXmlConverter.class); private static final Hl7ToRhapsodysXmlConverter instance = new Hl7ToRhapsodysXmlConverter(); @@ -2298,7 +2305,7 @@ private HL7TSType buildHL7TSType(String ts, int outFmt) { } else { while (subStrTimeZone.length() < 5) { - subStrTimeZone += "0"; + subStrTimeZone += "0"; //NOSONAR } } ts = appendingTimeStamp(subStr) + subStrTimeZone; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/converters/RhapsodysXmlToHl7Converter.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/converters/RhapsodysXmlToHl7Converter.java index 6445790fc..c4ac6aae5 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/converters/RhapsodysXmlToHl7Converter.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/converters/RhapsodysXmlToHl7Converter.java @@ -13,6 +13,13 @@ import java.util.List; @Component +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class RhapsodysXmlToHl7Converter { private static final String NEWLINE = "\n"; private static final String COLUMNS_SEPARATOR = "|"; @@ -1418,8 +1425,6 @@ private String streamHL7HDType(HL7HDType hl7HDType) { //TODO Dead Code @SuppressWarnings("java:S3776") private MessageHeader buildMessageHeader() { - MessageHeader mh = new MessageHeader(); - - return mh; + return new MessageHeader(); } } diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/constant/CdaConstantValue.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/constant/CdaConstantValue.java index f260d1aa2..c15bd8fde 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/constant/CdaConstantValue.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/constant/CdaConstantValue.java @@ -1,5 +1,12 @@ package gov.cdc.dataingestion.nbs.ecr.constant; +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class CdaConstantValue { private CdaConstantValue() { diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/AttributeMapper.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/AttributeMapper.java index 4be106055..33e94ecb8 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/AttributeMapper.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/AttributeMapper.java @@ -7,6 +7,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class AttributeMapper { private String attribute1; private String attribute2; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/CdaCaseMapper.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/CdaCaseMapper.java index f57057434..68ed59146 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/CdaCaseMapper.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/CdaCaseMapper.java @@ -8,6 +8,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class CdaCaseMapper { private POCDMT000040ClinicalDocument1 clinicalDocument; private int componentCounter; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/CdaInterviewMapper.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/CdaInterviewMapper.java index 74f37e65e..b7c7ec6b6 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/CdaInterviewMapper.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/CdaInterviewMapper.java @@ -8,6 +8,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class CdaInterviewMapper { private POCDMT000040ClinicalDocument1 clinicalDocument; private int interviewCounter; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/CdaOrganizationMapper.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/CdaOrganizationMapper.java index 65d8c016b..39405ff80 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/CdaOrganizationMapper.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/CdaOrganizationMapper.java @@ -8,6 +8,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class CdaOrganizationMapper { private POCDMT000040Section clinicalSection; private int performerComponentCounter; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/CdaPatientMapper.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/CdaPatientMapper.java index ba5262f64..67679f92a 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/CdaPatientMapper.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/CdaPatientMapper.java @@ -8,6 +8,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class CdaPatientMapper { private POCDMT000040ClinicalDocument1 clinicalDocument; private int patientComponentCounter; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/CdaPlaceMapper.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/CdaPlaceMapper.java index f84a23080..02b998ec5 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/CdaPlaceMapper.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/CdaPlaceMapper.java @@ -8,6 +8,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class CdaPlaceMapper { private int performerComponentCounter; private int componentCounter; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/CdaProviderMapper.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/CdaProviderMapper.java index 2e435c967..6c3e133dc 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/CdaProviderMapper.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/CdaProviderMapper.java @@ -8,6 +8,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class CdaProviderMapper { private POCDMT000040Section clinicalSection; private int performerComponentCounter; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/CdaTreatmentAdministrationMapper.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/CdaTreatmentAdministrationMapper.java index 0b47c321f..4463f3a36 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/CdaTreatmentAdministrationMapper.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/CdaTreatmentAdministrationMapper.java @@ -9,6 +9,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class CdaTreatmentAdministrationMapper { POCDMT000040SubstanceAdministration administration; StrucDocText text; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/CdaTreatmentMapper.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/CdaTreatmentMapper.java index 0fa58eca9..53942ea63 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/CdaTreatmentMapper.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/CdaTreatmentMapper.java @@ -8,6 +8,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class CdaTreatmentMapper { private POCDMT000040ClinicalDocument1 clinicalDocument; private int treatmentCounter; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/CdaXmlAnswerMapper.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/CdaXmlAnswerMapper.java index d31c22aa6..825685e7c 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/CdaXmlAnswerMapper.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/CdaXmlAnswerMapper.java @@ -8,6 +8,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class CdaXmlAnswerMapper { private POCDMT000040ClinicalDocument1 clinicalDocument; private int componentCounter; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/InterviewAnswerMapper.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/InterviewAnswerMapper.java index e163614b2..b264fa191 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/InterviewAnswerMapper.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/InterviewAnswerMapper.java @@ -8,6 +8,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class InterviewAnswerMapper { private Integer counter; private String questionSeq; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/InterviewAnswerMultiMapper.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/InterviewAnswerMultiMapper.java index a9399e710..ba3f7f632 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/InterviewAnswerMultiMapper.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/InterviewAnswerMultiMapper.java @@ -8,6 +8,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class InterviewAnswerMultiMapper { private Integer answerGroupCounter; private Integer questionGroupCounter; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/MessageAnswer.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/MessageAnswer.java index d57658ea8..64c348762 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/MessageAnswer.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/MessageAnswer.java @@ -8,6 +8,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class MessageAnswer { private String questionSeq; private Integer counter; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/MultiSelect.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/MultiSelect.java index 47d9b50f4..05cf07fd5 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/MultiSelect.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/MultiSelect.java @@ -8,6 +8,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class MultiSelect { private Integer answerGroupCounter; private Integer questionGroupCounter; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/TreatmentMapper.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/TreatmentMapper.java index 6ed828979..5f6586ecf 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/TreatmentMapper.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/TreatmentMapper.java @@ -9,6 +9,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class TreatmentMapper { private POCDMT000040SubstanceAdministration component; private StrucDocText list; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/ValueMapper.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/ValueMapper.java index fcfb4bb64..5288cfc35 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/ValueMapper.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/ValueMapper.java @@ -8,6 +8,13 @@ @Getter @Setter /// TO USE LATER FOR REFACTOR +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class ValueMapper { private String colName; private String value; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseAnsQuesIdentifier.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseAnsQuesIdentifier.java index 1468a9f28..1fb317fda 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseAnsQuesIdentifier.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseAnsQuesIdentifier.java @@ -8,6 +8,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class CdaCaseAnsQuesIdentifier { POCDMT000040Component3 component; int counter; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseAnswer.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseAnswer.java index 747d5c7c4..6aba1aa80 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseAnswer.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseAnswer.java @@ -7,6 +7,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class CdaCaseAnswer extends CdaCaseParticipant{ String oldQuestionId; } diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseComponent.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseComponent.java index abccc5800..d7f6e5f71 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseComponent.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseComponent.java @@ -8,6 +8,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class CdaCaseComponent { private POCDMT000040ClinicalDocument1 clinicalDocument; private int componentIndex; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseField.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseField.java index b75ccb842..8565474a5 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseField.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseField.java @@ -8,6 +8,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class CdaCaseField { POCDMT000040StructuredBody output; int repeats; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseFieldRepeat.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseFieldRepeat.java index fa1f69290..1670a4ba0 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseFieldRepeat.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseFieldRepeat.java @@ -8,6 +8,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class CdaCaseFieldRepeat { POCDMT000040StructuredBody output; int repeats; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseFieldSectionCommon.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseFieldSectionCommon.java index 5f511a2d3..8b2afe754 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseFieldSectionCommon.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseFieldSectionCommon.java @@ -9,6 +9,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class CdaCaseFieldSectionCommon { POCDMT000040StructuredBody output; int c; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseMsgAnswer.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseMsgAnswer.java index c2808321a..9ea675c35 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseMsgAnswer.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseMsgAnswer.java @@ -8,6 +8,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class CdaCaseMsgAnswer { POCDMT000040Component3 out; String dataType; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseMultiGroupSeqNumber.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseMultiGroupSeqNumber.java index 348f74967..183ee67d2 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseMultiGroupSeqNumber.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseMultiGroupSeqNumber.java @@ -8,6 +8,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class CdaCaseMultiGroupSeqNumber { POCDMT000040Section out; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseMultiSelectFields.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseMultiSelectFields.java index 46b432eb5..b0a788a0f 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseMultiSelectFields.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseMultiSelectFields.java @@ -8,6 +8,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class CdaCaseMultiSelectFields { POCDMT000040Section out; int sectionCounter; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseParticipant.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseParticipant.java index c78048da1..6d092a7b3 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseParticipant.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseParticipant.java @@ -8,6 +8,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class CdaCaseParticipant { POCDMT000040StructuredBody structuredBody; int componentCaseCounter; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseParticipantRepeat.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseParticipantRepeat.java index d438d68f2..58fd09325 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseParticipantRepeat.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/cases/CdaCaseParticipantRepeat.java @@ -7,6 +7,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class CdaCaseParticipantRepeat extends CdaCaseParticipant{ int repeatComponentCounter; int answerGroupCounter; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/container/CdaContainerComp.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/container/CdaContainerComp.java index 263e20c33..5c502ac3e 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/container/CdaContainerComp.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/container/CdaContainerComp.java @@ -8,6 +8,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class CdaContainerComp { private POCDMT000040ClinicalDocument1 clinicalDocument; private String inv168; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/interview/InterviewAnswer.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/interview/InterviewAnswer.java index 16b44cf35..fdf7f7f8e 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/interview/InterviewAnswer.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/interview/InterviewAnswer.java @@ -8,6 +8,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class InterviewAnswer { POCDMT000040Component3 out; String oldQuestionId; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/interview/InterviewEntryEncounter.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/interview/InterviewEntryEncounter.java index 2c2aa1166..d28654f84 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/interview/InterviewEntryEncounter.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/interview/InterviewEntryEncounter.java @@ -8,6 +8,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class InterviewEntryEncounter { POCDMT000040Component3 out; int c; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/interview/InterviewEntryRelation.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/interview/InterviewEntryRelation.java index e21bd2488..ee76cf359 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/interview/InterviewEntryRelation.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/interview/InterviewEntryRelation.java @@ -9,6 +9,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class InterviewEntryRelation { POCDMT000040Component3 out; int c; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/interview/InterviewField.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/interview/InterviewField.java index 00d577be6..17ae34402 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/interview/InterviewField.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/interview/InterviewField.java @@ -8,6 +8,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class InterviewField { POCDMT000040Component3 out; int entryCounter; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/interview/InterviewMultiObs.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/interview/InterviewMultiObs.java index 8b439edae..b150f001a 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/interview/InterviewMultiObs.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/interview/InterviewMultiObs.java @@ -6,6 +6,13 @@ @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class InterviewMultiObs { public InterviewMultiObs() { // default diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/interview/InterviewObs.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/interview/InterviewObs.java index ba05ec611..55a8d98cf 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/interview/InterviewObs.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/interview/InterviewObs.java @@ -6,6 +6,13 @@ @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class InterviewObs { public InterviewObs(int questionGroupSeqNbr, diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/interview/InterviewRole.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/interview/InterviewRole.java index 11e96451d..8cdfec152 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/interview/InterviewRole.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/interview/InterviewRole.java @@ -8,6 +8,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class InterviewRole { POCDMT000040Component3 out; int c; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/interview/InterviewTopField.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/interview/InterviewTopField.java index f11e937a9..bd5b65913 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/interview/InterviewTopField.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/interview/InterviewTopField.java @@ -8,6 +8,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class InterviewTopField { POCDMT000040ClinicalDocument1 clinicalDocument; int c; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/patient/CdaPatientField.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/patient/CdaPatientField.java index 6ece7e0b9..74df1cb83 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/patient/CdaPatientField.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/patient/CdaPatientField.java @@ -7,6 +7,13 @@ @Getter @Setter /// TO USE LATER FOR REFACTOR +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class CdaPatientField { public CdaPatientField(POCDMT000040ClinicalDocument1 clinicalDocument, int phoneCounter) diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/patient/CdaPatientTelecom.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/patient/CdaPatientTelecom.java index a17f2d58c..60d9ecf80 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/patient/CdaPatientTelecom.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/patient/CdaPatientTelecom.java @@ -8,6 +8,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class CdaPatientTelecom { private POCDMT000040ClinicalDocument1 clinicalDocument; private int phoneCounter; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/place/PlaceField.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/place/PlaceField.java index 25f58ef6e..b90fe87c4 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/place/PlaceField.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/place/PlaceField.java @@ -8,6 +8,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class PlaceField { String state; String streetAddress1; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/provider/ProviderFieldCheck.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/provider/ProviderFieldCheck.java index b3f8ebad2..d0b7997e0 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/provider/ProviderFieldCheck.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/provider/ProviderFieldCheck.java @@ -8,6 +8,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class ProviderFieldCheck { POCDMT000040Section clinicalDocument; String inv168; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/shares/ActParticipantArray.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/shares/ActParticipantArray.java index 87ece7e97..2926e755a 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/shares/ActParticipantArray.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/shares/ActParticipantArray.java @@ -9,6 +9,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class ActParticipantArray { POCDMT000040Section section; POCDMT000040Participant2 out; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/shares/MapParticipantRole.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/shares/MapParticipantRole.java index 02ff6ed54..60bc4782c 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/shares/MapParticipantRole.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/shares/MapParticipantRole.java @@ -9,6 +9,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class MapParticipantRole { POCDMT000040SubstanceAdministration output; POCDMT000040Participant2 participant2; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/shares/MapStructure.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/shares/MapStructure.java index 99c198fb1..b3109dadb 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/shares/MapStructure.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/shares/MapStructure.java @@ -8,6 +8,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class MapStructure { POCDMT000040ClinicalDocument1 clinicalDocument; int c; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/shares/Observation.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/shares/Observation.java index 6fa3098c8..3cc0d6480 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/shares/Observation.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/shares/Observation.java @@ -8,6 +8,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class Observation { PhdcQuestionLookUpDto questionLup; String defaultQuestionIdentifier; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/shares/Org.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/shares/Org.java index 5d0994448..63745ab9d 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/shares/Org.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/shares/Org.java @@ -8,6 +8,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class Org { String state; String streetAddress1; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/shares/OrgPlaceDocCommonField.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/shares/OrgPlaceDocCommonField.java index 992ba6fc1..65d3e13c0 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/shares/OrgPlaceDocCommonField.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/shares/OrgPlaceDocCommonField.java @@ -9,6 +9,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class OrgPlaceDocCommonField { POCDMT000040Section clinicalDocument; int performerSectionCounter; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/shares/Psn.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/shares/Psn.java index 808857b3f..a1a7e5ce2 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/shares/Psn.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/shares/Psn.java @@ -8,6 +8,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class Psn { String firstName; String prefix; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/shares/PsnTelephone.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/shares/PsnTelephone.java index 3c4feb754..12a8530ce 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/shares/PsnTelephone.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/shares/PsnTelephone.java @@ -8,6 +8,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class PsnTelephone { POCDMT000040Participant2 out; int teleCounter; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/treatment/TreatmentDocument.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/treatment/TreatmentDocument.java index 610fa88c0..49ed41ef1 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/treatment/TreatmentDocument.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/treatment/TreatmentDocument.java @@ -8,6 +8,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class TreatmentDocument { POCDMT000040ClinicalDocument1 clinicalDocument; int c; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/treatment/TreatmentField.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/treatment/TreatmentField.java index 8fcbc42ed..d07733bc7 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/treatment/TreatmentField.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/treatment/TreatmentField.java @@ -8,6 +8,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class TreatmentField { String treatmentUid; String trtTreatmentDt ; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/treatment/TreatmentProviderAndParticipant.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/treatment/TreatmentProviderAndParticipant.java index 353fe5d12..8f52a7108 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/treatment/TreatmentProviderAndParticipant.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/model/treatment/TreatmentProviderAndParticipant.java @@ -8,6 +8,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class TreatmentProviderAndParticipant { POCDMT000040SubstanceAdministration output; int org; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/CdaMapper.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/CdaMapper.java index 390cb69d5..8750459d9 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/CdaMapper.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/CdaMapper.java @@ -21,6 +21,13 @@ import static gov.cdc.dataingestion.nbs.ecr.constant.CdaConstantValue.*; @Service +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class CdaMapper implements ICdaMapper { private final ICdaLookUpService ecrLookUpService; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/EcrMessagePollService.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/EcrMessagePollService.java index d4bdb4bbb..56a6d5b9c 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/EcrMessagePollService.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/EcrMessagePollService.java @@ -13,6 +13,13 @@ @Service @Slf4j @EnableScheduling +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class EcrMessagePollService { private EcrMsgQueryService ecrMsgQueryService; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/helper/CdaCaseMappingHelper.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/helper/CdaCaseMappingHelper.java index 05626b7cb..30b963c72 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/helper/CdaCaseMappingHelper.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/helper/CdaCaseMappingHelper.java @@ -21,6 +21,13 @@ import static gov.cdc.dataingestion.nbs.ecr.service.helper.CdaMapStringHelper.getStringsBeforeCaret; import static gov.cdc.dataingestion.nbs.ecr.service.helper.CdaMapStringHelper.getStringsBeforePipe; +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class CdaCaseMappingHelper implements ICdaCaseMappingHelper { ICdaMapHelper cdaMapHelper; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/helper/CdaInterviewMappingHelper.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/helper/CdaInterviewMappingHelper.java index cb9cd0851..4c4d3c6d3 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/helper/CdaInterviewMappingHelper.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/helper/CdaInterviewMappingHelper.java @@ -18,6 +18,13 @@ import static gov.cdc.dataingestion.nbs.ecr.constant.CdaConstantValue.*; +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class CdaInterviewMappingHelper implements ICdaInterviewMappingHelper { ICdaMapHelper cdaMapHelper; public CdaInterviewMappingHelper(ICdaMapHelper cdaMapHelper) { diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/helper/CdaMapHelper.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/helper/CdaMapHelper.java index b193a66e5..ac5e27123 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/helper/CdaMapHelper.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/helper/CdaMapHelper.java @@ -28,6 +28,13 @@ import static gov.cdc.dataingestion.nbs.ecr.constant.CdaConstantValue.*; import static gov.cdc.dataingestion.nbs.ecr.service.helper.CdaMapStringHelper.getStringsBeforePipe; +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class CdaMapHelper implements ICdaMapHelper { private final ICdaLookUpService ecrLookUpService; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/helper/CdaMapStringHelper.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/helper/CdaMapStringHelper.java index 00ea5f19b..33f5a0e21 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/helper/CdaMapStringHelper.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/helper/CdaMapStringHelper.java @@ -3,6 +3,13 @@ import java.util.ArrayList; import java.util.List; +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class CdaMapStringHelper { private CdaMapStringHelper() { // String helper class diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/helper/CdaOrgMappingHelper.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/helper/CdaOrgMappingHelper.java index ec0d42918..c9566d4ae 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/helper/CdaOrgMappingHelper.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/helper/CdaOrgMappingHelper.java @@ -10,6 +10,13 @@ import static gov.cdc.dataingestion.nbs.ecr.constant.CdaConstantValue.*; +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class CdaOrgMappingHelper implements ICdaOrgMappingHelper { ICdaMapHelper cdaMapHelper; public CdaOrgMappingHelper(ICdaMapHelper cdaMapHelper) { diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/helper/CdaPatientMappingHelper.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/helper/CdaPatientMappingHelper.java index 4bb26552e..bee1fb067 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/helper/CdaPatientMappingHelper.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/helper/CdaPatientMappingHelper.java @@ -21,6 +21,13 @@ import static gov.cdc.dataingestion.nbs.ecr.constant.CdaConstantValue.*; import static gov.cdc.dataingestion.nbs.ecr.service.helper.CdaMapStringHelper.getStringsBeforePipe; +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class CdaPatientMappingHelper implements ICdaPatientMappingHelper { ICdaMapHelper cdaMapHelper; public CdaPatientMappingHelper(ICdaMapHelper cdaMapHelper) { diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/helper/CdaPlaceMappingHelper.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/helper/CdaPlaceMappingHelper.java index af714c57b..cb5c96de0 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/helper/CdaPlaceMappingHelper.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/helper/CdaPlaceMappingHelper.java @@ -15,6 +15,13 @@ import static gov.cdc.dataingestion.nbs.ecr.constant.CdaConstantValue.*; +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class CdaPlaceMappingHelper implements ICdaPlaceMappingHelper { ICdaMapHelper cdaMapHelper; public CdaPlaceMappingHelper(ICdaMapHelper cdaMapHelper) { diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/helper/CdaProviderMappingHelper.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/helper/CdaProviderMappingHelper.java index 9752bd7d2..20289bfcf 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/helper/CdaProviderMappingHelper.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/helper/CdaProviderMappingHelper.java @@ -11,6 +11,13 @@ import static gov.cdc.dataingestion.nbs.ecr.constant.CdaConstantValue.*; +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class CdaProviderMappingHelper implements ICdaProviderMappingHelper { ICdaMapHelper cdaMapHelper; public CdaProviderMappingHelper(ICdaMapHelper cdaMapHelper) { diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/helper/CdaTreatmentMappingHelper.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/helper/CdaTreatmentMappingHelper.java index 1fafcd3da..99725de42 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/helper/CdaTreatmentMappingHelper.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/helper/CdaTreatmentMappingHelper.java @@ -19,6 +19,13 @@ import static gov.cdc.dataingestion.nbs.ecr.constant.CdaConstantValue.*; +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class CdaTreatmentMappingHelper implements ICdaTreatmentMappingHelper { ICdaMapHelper cdaMapHelper; public CdaTreatmentMappingHelper(ICdaMapHelper cdaMapHelper) { diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/helper/CdaXmlAnswerMappingHelper.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/helper/CdaXmlAnswerMappingHelper.java index d9e4cd228..bd627d612 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/helper/CdaXmlAnswerMappingHelper.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/ecr/service/helper/CdaXmlAnswerMappingHelper.java @@ -14,6 +14,13 @@ import javax.xml.XMLConstants; import javax.xml.parsers.DocumentBuilderFactory; +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class CdaXmlAnswerMappingHelper implements ICdaXmlAnswerMappingHelper { public CdaXmlAnswerMapper mapToXmlAnswerTop(EcrSelectedRecord input, POCDMT000040ClinicalDocument1 clinicalDocument, diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/implementation/EcrLookUpRepository.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/implementation/EcrLookUpRepository.java index ccd670aa2..f7220ca89 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/implementation/EcrLookUpRepository.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/implementation/EcrLookUpRepository.java @@ -19,6 +19,13 @@ import java.util.stream.Collectors; @Repository +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class EcrLookUpRepository implements IEcrLookUpRepository { @PersistenceContext(unitName = "ingest") private EntityManager entityManager; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/implementation/EcrMsgQueryRepository.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/implementation/EcrMsgQueryRepository.java index 6672baabd..bfbdef2f6 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/implementation/EcrMsgQueryRepository.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/implementation/EcrMsgQueryRepository.java @@ -19,6 +19,13 @@ import java.util.stream.Collectors; @Repository +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class EcrMsgQueryRepository implements IEcrMsgQueryRepository { @PersistenceContext(unitName = "nbs") private EntityManager entityManager; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/NbsInterfaceModel.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/NbsInterfaceModel.java index 438a8a662..e2ee8f28a 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/NbsInterfaceModel.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/NbsInterfaceModel.java @@ -12,6 +12,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class NbsInterfaceModel { private static final String TOSTRING_COLUMN_SPACER = ", "; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dao/EcrSelectedCase.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dao/EcrSelectedCase.java index 9305cd05d..a82514c16 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dao/EcrSelectedCase.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dao/EcrSelectedCase.java @@ -13,6 +13,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class EcrSelectedCase { private EcrMsgCaseDto msgCase; private List msgCaseParticipants = new ArrayList<>(); diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dao/EcrSelectedInterview.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dao/EcrSelectedInterview.java index a13c50964..aff89abc1 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dao/EcrSelectedInterview.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dao/EcrSelectedInterview.java @@ -13,6 +13,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class EcrSelectedInterview { private EcrMsgInterviewDto msgInterview; private List msgInterviewProviders; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dao/EcrSelectedRecord.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dao/EcrSelectedRecord.java index 6cc6563ad..a0a3d53b3 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dao/EcrSelectedRecord.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dao/EcrSelectedRecord.java @@ -10,6 +10,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class EcrSelectedRecord { private EcrMsgContainerDto msgContainer; private List msgPatients; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dao/EcrSelectedTreatment.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dao/EcrSelectedTreatment.java index 74771c4a9..7c8e1a903 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dao/EcrSelectedTreatment.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dao/EcrSelectedTreatment.java @@ -13,6 +13,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class EcrSelectedTreatment { private EcrMsgTreatmentDto msgTreatment; private List msgTreatmentProviders = new ArrayList<>(); diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dao/lookup/PhdcAnswerDao.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dao/lookup/PhdcAnswerDao.java index c1f740fdd..5b6e1cdb9 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dao/lookup/PhdcAnswerDao.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dao/lookup/PhdcAnswerDao.java @@ -7,6 +7,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class PhdcAnswerDao { private String code; private String codeSystem; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dao/lookup/QuestionIdentifierMapDao.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dao/lookup/QuestionIdentifierMapDao.java index 99aeab2fe..7fddb0371 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dao/lookup/QuestionIdentifierMapDao.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dao/lookup/QuestionIdentifierMapDao.java @@ -7,6 +7,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class QuestionIdentifierMapDao { private String dynamicQuestionIdentifier; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgCaseAnswerDto.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgCaseAnswerDto.java index e1575de21..c2a7dd36c 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgCaseAnswerDto.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgCaseAnswerDto.java @@ -13,6 +13,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class EcrMsgCaseAnswerDto { // NEW private String questionGroupSeqNbr; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgCaseDto.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgCaseDto.java index f7ac34702..a3880d951 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgCaseDto.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgCaseDto.java @@ -12,6 +12,13 @@ @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class EcrMsgCaseDto { private String invLocalId; private String patLocalId; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgCaseParticipantDto.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgCaseParticipantDto.java index dbecd0657..bfd3a3e5c 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgCaseParticipantDto.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgCaseParticipantDto.java @@ -7,6 +7,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class EcrMsgCaseParticipantDto { private String msgEventId; private String msgEventType; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgContainerDto.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgContainerDto.java index 8e8c3ecf5..6f8359cb1 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgContainerDto.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgContainerDto.java @@ -8,6 +8,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class EcrMsgContainerDto { private Integer msgContainerUid; private String invLocalId; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgInterviewDto.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgInterviewDto.java index 96625560b..4b3e603b6 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgInterviewDto.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgInterviewDto.java @@ -14,6 +14,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class EcrMsgInterviewDto { private Integer msgContainerUid; private String ixsLocalId; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgOrganizationDto.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgOrganizationDto.java index 595abeee1..2fe3a7b12 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgOrganizationDto.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgOrganizationDto.java @@ -14,6 +14,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class EcrMsgOrganizationDto { private String orgLocalId; private String orgAuthorId; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgPatientDto.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgPatientDto.java index 7fedecd38..13be8e852 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgPatientDto.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgPatientDto.java @@ -7,6 +7,13 @@ @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class EcrMsgPatientDto { public EcrMsgPatientDto() { // empty constructor diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgPlaceDto.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgPlaceDto.java index 88e509c76..819798091 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgPlaceDto.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgPlaceDto.java @@ -14,6 +14,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class EcrMsgPlaceDto { private Integer msgContainerUid; private String plaLocalId; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgProviderDto.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgProviderDto.java index b99ea1c46..02b73ff9e 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgProviderDto.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgProviderDto.java @@ -14,6 +14,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class EcrMsgProviderDto { private String prvLocalId; private String prvAuthorId; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgTreatmentDto.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgTreatmentDto.java index 4afdb61ed..63bc322c2 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgTreatmentDto.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgTreatmentDto.java @@ -14,6 +14,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class EcrMsgTreatmentDto { private String trtLocalId; private String trtAuthorId; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgXmlAnswerDto.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgXmlAnswerDto.java index f07625077..c2bba4acc 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgXmlAnswerDto.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/EcrMsgXmlAnswerDto.java @@ -7,6 +7,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class EcrMsgXmlAnswerDto { private String dataType; private String answerXmlTxt; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/lookup/ConstantLookUpDto.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/lookup/ConstantLookUpDto.java index 0835f683d..6bd36cc2f 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/lookup/ConstantLookUpDto.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/lookup/ConstantLookUpDto.java @@ -7,6 +7,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class ConstantLookUpDto { private String id; private String subjectArea; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/lookup/PhdcAnswerLookUpDto.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/lookup/PhdcAnswerLookUpDto.java index efd08680a..bfd671a72 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/lookup/PhdcAnswerLookUpDto.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/lookup/PhdcAnswerLookUpDto.java @@ -7,6 +7,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class PhdcAnswerLookUpDto { private String ansFromCode; private String ansFromCodeSystemCd; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/lookup/PhdcQuestionLookUpDto.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/lookup/PhdcQuestionLookUpDto.java index 2e4623278..74929bced 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/lookup/PhdcQuestionLookUpDto.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/lookup/PhdcQuestionLookUpDto.java @@ -7,6 +7,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class PhdcQuestionLookUpDto { private String docTypeCd; private String docTypeVersionTxt; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/lookup/QuestionIdentifierMapDto.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/lookup/QuestionIdentifierMapDto.java index d723af2ba..cd7cd3a4c 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/lookup/QuestionIdentifierMapDto.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/repository/model/dto/lookup/QuestionIdentifierMapDto.java @@ -7,6 +7,13 @@ @NoArgsConstructor @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class QuestionIdentifierMapDto { private String columnNm; private String questionIdentifier; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/services/CdaLookUpService.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/services/CdaLookUpService.java index f16fc3c82..295fb901b 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/services/CdaLookUpService.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/services/CdaLookUpService.java @@ -11,6 +11,13 @@ import org.springframework.stereotype.Service; @Service +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class CdaLookUpService implements ICdaLookUpService { private IEcrLookUpRepository ecrLookUpRepository; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/services/EcrMsgQueryService.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/services/EcrMsgQueryService.java index 4c84196d9..16437dcd0 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/services/EcrMsgQueryService.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/services/EcrMsgQueryService.java @@ -15,6 +15,13 @@ import java.util.List; @Service +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class EcrMsgQueryService implements IEcrMsgQueryService { private final IEcrMsgQueryRepository ecrMsgQueryRepository; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/services/NbsRepositoryServiceProvider.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/services/NbsRepositoryServiceProvider.java index 23073674e..67fee3c9a 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/services/NbsRepositoryServiceProvider.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/nbs/services/NbsRepositoryServiceProvider.java @@ -20,6 +20,13 @@ @Service @AllArgsConstructor +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class NbsRepositoryServiceProvider { private static Logger log = LoggerFactory.getLogger(NbsRepositoryServiceProvider.class); diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/odse/repository/model/EdxActivityDetailLog.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/odse/repository/model/EdxActivityDetailLog.java index f89b1b82f..04cadc9cf 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/odse/repository/model/EdxActivityDetailLog.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/odse/repository/model/EdxActivityDetailLog.java @@ -12,6 +12,13 @@ @Setter @Entity @Table(name = "EDX_activity_detail_log") +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class EdxActivityDetailLog { @Id @Column(name = "edx_activity_detail_log_uid", nullable = false) diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/rawmessage/controller/EcrReportsController.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/rawmessage/controller/EcrReportsController.java index 645a95aa0..f964b9df6 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/rawmessage/controller/EcrReportsController.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/rawmessage/controller/EcrReportsController.java @@ -23,6 +23,13 @@ @RequiredArgsConstructor @SecurityRequirement(name = "bearer-key") @Tag(name = "ECR Ingestion", description = "ECR Ingestion API") +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class EcrReportsController { private NbsRepositoryServiceProvider nbsRepositoryServiceProvider; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/rawmessage/controller/ElrReportsController.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/rawmessage/controller/ElrReportsController.java index 35bfe1950..90ae3ca82 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/rawmessage/controller/ElrReportsController.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/rawmessage/controller/ElrReportsController.java @@ -29,6 +29,13 @@ @RequiredArgsConstructor @SecurityRequirement(name = "bearer-key") @Tag(name = "ELR Ingestion", description = "ELR Ingestion API") +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class ElrReportsController { private final RawELRService rawELRService; @@ -45,6 +52,7 @@ public ElrReportsController(RawELRService rawELRService, } + @SuppressWarnings("java:S1871") @Operation( summary = "Submit a plain text or XML converted HL7 message", description = "Submit a plain text or XML converted HL7 message with msgType header", diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/rawmessage/dto/RawERLDto.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/rawmessage/dto/RawERLDto.java index 4d8d16a12..1e525ed40 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/rawmessage/dto/RawERLDto.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/rawmessage/dto/RawERLDto.java @@ -3,6 +3,13 @@ import lombok.Data; @Data +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class RawERLDto { private String id; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/rawmessage/service/RawELRService.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/rawmessage/service/RawELRService.java index d5c024319..7dca2cb02 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/rawmessage/service/RawELRService.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/rawmessage/service/RawELRService.java @@ -18,6 +18,13 @@ @Service @RequiredArgsConstructor @Slf4j +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class RawELRService { private static final String CREATED_BY = "admin"; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/report/repository/model/RawERLModel.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/report/repository/model/RawERLModel.java index 52ee8576e..a0dec6a66 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/report/repository/model/RawERLModel.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/report/repository/model/RawERLModel.java @@ -7,6 +7,13 @@ @Entity @Table(name = "elr_raw") +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class RawERLModel { @Id diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/reportstatus/controller/ReportStatusController.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/reportstatus/controller/ReportStatusController.java index be1564e7e..21ea5a9f7 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/reportstatus/controller/ReportStatusController.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/reportstatus/controller/ReportStatusController.java @@ -10,6 +10,7 @@ import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.security.SecurityRequirement; import io.swagger.v3.oas.annotations.tags.Tag; +import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.http.HttpStatus; @@ -26,6 +27,13 @@ @RestController @SecurityRequirement(name = "bearer-key") @Tag(name = "ELR Status", description = "ELR Status API") +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class ReportStatusController { private static Logger logger = LoggerFactory.getLogger(ReportStatusController.class); @@ -52,17 +60,18 @@ public ReportStatusController(ReportStatusService reportStatusService) { ) @GetMapping("/api/elrs/status/{elr-id}") public ResponseEntity getReportStatus(@PathVariable("elr-id") String elrId) throws JsonProcessingException { - logger.debug("Status requested for record with id: '{}'", elrId); + // Sanitize elrId (ensure it's alphanumeric or whatever format you expect) + String sanitizedElrId = StringUtils.replaceChars(elrId, "[]{}()", ""); - if(elrId == null || elrId.isEmpty() || !isValidUUID(elrId)) { + if(sanitizedElrId == null || sanitizedElrId.isEmpty() || !isValidUUID(sanitizedElrId)) { logger.error("Invalid 'UUID' parameter provided."); return ResponseEntity.status(HttpStatus.BAD_REQUEST).body("Invalid 'UUID' parameter provided."); } - String status = reportStatusService.getStatusForReport(elrId); + String status = reportStatusService.getStatusForReport(sanitizedElrId); Map returnJson = new HashMap<>(); - returnJson.put("id", elrId); + returnJson.put("id", sanitizedElrId); if(status.equals("Provided UUID is not present in the database. Either provided an invalid UUID or the injected message failed validation.") || status.equals("Couldn't find status for the requested ID.")) { returnJson.put("error_message", status); } diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/reportstatus/model/DltMessageStatus.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/reportstatus/model/DltMessageStatus.java index 64b908057..36c944b1d 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/reportstatus/model/DltMessageStatus.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/reportstatus/model/DltMessageStatus.java @@ -7,6 +7,13 @@ @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class DltMessageStatus { private String dltId; private String dltStatus; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/reportstatus/model/EdxActivityLogStatus.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/reportstatus/model/EdxActivityLogStatus.java index 9c3fd4a9d..08194dc1c 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/reportstatus/model/EdxActivityLogStatus.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/reportstatus/model/EdxActivityLogStatus.java @@ -7,6 +7,13 @@ @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class EdxActivityLogStatus { private String recordType; private String logType; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/reportstatus/model/MessageStatus.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/reportstatus/model/MessageStatus.java index 706e6da71..2fc97b1fe 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/reportstatus/model/MessageStatus.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/reportstatus/model/MessageStatus.java @@ -6,6 +6,13 @@ import java.util.List; @Getter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class MessageStatus { private RawMessageStatus rawInfo = new RawMessageStatus(); private ValidatedMessageStatus validatedInfo = new ValidatedMessageStatus(); diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/reportstatus/model/NbsMessageStatus.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/reportstatus/model/NbsMessageStatus.java index ba0d5ee8f..bae0896d9 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/reportstatus/model/NbsMessageStatus.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/reportstatus/model/NbsMessageStatus.java @@ -7,6 +7,13 @@ @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class NbsMessageStatus { private Integer nbsInterfaceId; private String nbsInterfacePipeLineStatus; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/reportstatus/model/RawMessageStatus.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/reportstatus/model/RawMessageStatus.java index 0edcfe8ca..fb48af5c8 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/reportstatus/model/RawMessageStatus.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/reportstatus/model/RawMessageStatus.java @@ -7,6 +7,13 @@ @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class RawMessageStatus { private String rawMessageId; private String rawPayload; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/reportstatus/model/ReportStatusIdData.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/reportstatus/model/ReportStatusIdData.java index ece61f1e3..3642e939d 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/reportstatus/model/ReportStatusIdData.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/reportstatus/model/ReportStatusIdData.java @@ -11,6 +11,13 @@ @Table(name = "elr_record_status_id") @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class ReportStatusIdData { @Id @GenericGenerator(name = "generator", strategy = "guid", parameters = {}) diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/reportstatus/model/ValidatedMessageStatus.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/reportstatus/model/ValidatedMessageStatus.java index 35d1980b7..f424d3ede 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/reportstatus/model/ValidatedMessageStatus.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/reportstatus/model/ValidatedMessageStatus.java @@ -7,6 +7,13 @@ @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class ValidatedMessageStatus { private String validatedMessageId; private String validatedMessage; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/reportstatus/service/ReportStatusService.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/reportstatus/service/ReportStatusService.java index bb4d2c045..714840d11 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/reportstatus/service/ReportStatusService.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/reportstatus/service/ReportStatusService.java @@ -21,6 +21,13 @@ import static gov.cdc.dataingestion.constant.MessageType.HL7_ELR; @Service +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class ReportStatusService { private final IReportStatusRepository iReportStatusRepository; private final NbsInterfaceRepository nbsInterfaceRepository; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/security/config/CustomAuthenticationManagerResolver.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/security/config/CustomAuthenticationManagerResolver.java index 1d43b43aa..68bec7f30 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/security/config/CustomAuthenticationManagerResolver.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/security/config/CustomAuthenticationManagerResolver.java @@ -11,6 +11,13 @@ import org.springframework.stereotype.Component; @Component +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class CustomAuthenticationManagerResolver implements AuthenticationManagerResolver { @Value("${auth.introspect-uri}") String introspectionUri; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/security/config/SecurityConfig.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/security/config/SecurityConfig.java index c913b9276..98791ad7e 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/security/config/SecurityConfig.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/security/config/SecurityConfig.java @@ -15,6 +15,13 @@ @RequiredArgsConstructor @Configuration @EnableWebSecurity +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class SecurityConfig { @Value("${auth.introspect-uri}") String introspectionUri; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/security/controller/TokenController.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/security/controller/TokenController.java index 9e9017486..92e4e3fcd 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/security/controller/TokenController.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/security/controller/TokenController.java @@ -20,6 +20,13 @@ @Tag(name = "Token API", description = "Token API to create the JWT Token") @RestController @Slf4j +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class TokenController { @Value("${auth.token-uri}") String authTokenUri; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/share/ControllerExceptionHandler.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/share/ControllerExceptionHandler.java index b2c11f1e1..75a18a214 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/share/ControllerExceptionHandler.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/share/ControllerExceptionHandler.java @@ -9,6 +9,13 @@ import org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler; @ControllerAdvice +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class ControllerExceptionHandler extends ResponseEntityExceptionHandler { @ExceptionHandler({Exception.class, ResponseStatusException.class}) public ResponseEntity handleException(Exception ex) { diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/share/CustomAuthenticationEntryPoint.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/share/CustomAuthenticationEntryPoint.java index 31872898a..9694a89a0 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/share/CustomAuthenticationEntryPoint.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/share/CustomAuthenticationEntryPoint.java @@ -9,6 +9,13 @@ import java.io.IOException; +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class CustomAuthenticationEntryPoint implements AuthenticationEntryPoint { @Override public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException) throws IOException { diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/share/CustomAuthenticationException.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/share/CustomAuthenticationException.java index c3943958a..94224a618 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/share/CustomAuthenticationException.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/share/CustomAuthenticationException.java @@ -1,5 +1,12 @@ package gov.cdc.dataingestion.share; import org.springframework.security.core.AuthenticationException; +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class CustomAuthenticationException extends AuthenticationException { public CustomAuthenticationException(String message) { super(message); diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/share/helper/EcrXmlModelingHelper.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/share/helper/EcrXmlModelingHelper.java index 4b2c71c33..b47ff4930 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/share/helper/EcrXmlModelingHelper.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/share/helper/EcrXmlModelingHelper.java @@ -6,6 +6,13 @@ import java.lang.reflect.Field; import java.util.Map; +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class EcrXmlModelingHelper { public Map setupDataMap(Field[] fields, Map dataMap, Object objectInstance) throws EcrCdaXmlException { for (Field field : fields) { diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/share/helper/TimeStampHelper.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/share/helper/TimeStampHelper.java index c1404f3ff..5f92f43bd 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/share/helper/TimeStampHelper.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/share/helper/TimeStampHelper.java @@ -6,6 +6,13 @@ import java.time.ZoneId; import java.time.ZonedDateTime; +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class TimeStampHelper { private TimeStampHelper() { diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/share/model/ErrorResponse.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/share/model/ErrorResponse.java index 030c4b6c7..d21cb2482 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/share/model/ErrorResponse.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/share/model/ErrorResponse.java @@ -5,6 +5,13 @@ @Getter @Setter +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class ErrorResponse { private int statusCode; private String message; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/validation/integration/validator/HL7DuplicateValidator.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/validation/integration/validator/HL7DuplicateValidator.java index 2e3592d1b..8d40494c0 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/validation/integration/validator/HL7DuplicateValidator.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/validation/integration/validator/HL7DuplicateValidator.java @@ -16,6 +16,13 @@ @Component @Slf4j +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class HL7DuplicateValidator implements IHL7DuplicateValidator { private final IValidatedELRRepository iValidatedELRRepository; diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/validation/integration/validator/HL7v2Validator.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/validation/integration/validator/HL7v2Validator.java index 5f6fa060c..05681cc64 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/validation/integration/validator/HL7v2Validator.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/validation/integration/validator/HL7v2Validator.java @@ -7,6 +7,13 @@ import gov.cdc.dataingestion.validation.integration.validator.interfaces.IHL7v2Validator; import gov.cdc.dataingestion.validation.repository.model.ValidatedELRModel; +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class HL7v2Validator implements IHL7v2Validator { private final HL7Helper hl7Helper; public HL7v2Validator(HL7Helper hl7Helper) { diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/validation/repository/model/ValidatedELRModel.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/validation/repository/model/ValidatedELRModel.java index 570655a2b..92e04d2f3 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/validation/repository/model/ValidatedELRModel.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/validation/repository/model/ValidatedELRModel.java @@ -7,6 +7,13 @@ @Entity @Table(name = "elr_validated") +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class ValidatedELRModel { @Id diff --git a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/validation/services/HL7Service.java b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/validation/services/HL7Service.java index 1460e071f..285a542db 100644 --- a/data-ingestion-service/src/main/java/gov/cdc/dataingestion/validation/services/HL7Service.java +++ b/data-ingestion-service/src/main/java/gov/cdc/dataingestion/validation/services/HL7Service.java @@ -7,6 +7,13 @@ import org.springframework.stereotype.Service; @Service +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class HL7Service implements IHL7Service { private final IHL7v2Validator hl7v2Validator; diff --git a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/camel/routes/ElrProcessStatusComponentTest.java b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/camel/routes/ElrProcessStatusComponentTest.java index 98b9c02b9..c3a256e65 100644 --- a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/camel/routes/ElrProcessStatusComponentTest.java +++ b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/camel/routes/ElrProcessStatusComponentTest.java @@ -14,7 +14,13 @@ import java.sql.Timestamp; import static org.mockito.Mockito.when; - +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) class ElrProcessStatusComponentTest { @Mock private ReportStatusService reportStatusServiceMock; @@ -114,7 +120,7 @@ void testProcessForNbsFailureWithLogComment_null(){ Assertions.assertTrue(processStatus.contains("Status:")); } @Test - void testProcessForNbsValidationFailed() throws Exception { + void testProcessForNbsValidationFailed() { String body = "HL7file-sftpstatus1.txt:7DAC34BD-B011-469A-BF27-25904370E9E3"; String rawId = "7DAC34BD-B011-469A-BF27-25904370E9E3"; diff --git a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/camel/routes/HL7FileProcessComponentTest.java b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/camel/routes/HL7FileProcessComponentTest.java index 673ff5b1b..6f2aedf70 100644 --- a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/camel/routes/HL7FileProcessComponentTest.java +++ b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/camel/routes/HL7FileProcessComponentTest.java @@ -10,7 +10,13 @@ import org.mockito.MockitoAnnotations; import static org.mockito.Mockito.when; - +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) class HL7FileProcessComponentTest { @Mock private RawELRService rawELRService; @@ -24,7 +30,7 @@ public void setUp() { } @Test - void testSaveHL7Message() throws Exception { + void testSaveHL7Message() { String hl7Payload = "testmessage"; String messageType = "HL7"; diff --git a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/camel/routes/SFTPRouteBuilderTest.java b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/camel/routes/SFTPRouteBuilderTest.java index 45141fedd..2bb90bf4e 100644 --- a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/camel/routes/SFTPRouteBuilderTest.java +++ b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/camel/routes/SFTPRouteBuilderTest.java @@ -10,7 +10,13 @@ import java.io.File; import static org.apache.camel.builder.AdviceWith.adviceWith; - +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) class SFTPRouteBuilderTest extends CamelTestSupport { @Override @@ -19,7 +25,7 @@ public boolean isUseAdviceWith() { } @Override - protected RouteBuilder createRouteBuilder() throws Exception { + protected RouteBuilder createRouteBuilder() { return new SFTPRouteBuilder(); } @@ -34,7 +40,7 @@ void testMockEndpoints() throws Exception { context, new AdviceWithRouteBuilder() { @Override - public void configure() throws Exception { + public void configure() { replaceFromWith("direct:fromSftpRoute"); weaveByToUri("sftp:/*").replace().to("mock:result"); @@ -45,7 +51,7 @@ public void configure() throws Exception { context, new AdviceWithRouteBuilder() { @Override - public void configure() throws Exception { + public void configure() { replaceFromWith("direct:sftpUnzipFileRoute"); weaveByToUri("file:files/sftpTextFileDir").replace().to("mock:sftpUnzipFileResult"); } @@ -55,7 +61,7 @@ public void configure() throws Exception { context, new AdviceWithRouteBuilder() { @Override - public void configure() throws Exception { + public void configure() { replaceFromWith("direct:sftpReadFromUnzipDirRoute"); weaveByToUri("seda:processfiles").replace().to("mock:sftpReadFromUnzippedFilesResult"); } @@ -65,7 +71,7 @@ public void configure() throws Exception { context, new AdviceWithRouteBuilder() { @Override - public void configure() throws Exception { + public void configure() { replaceFromWith("seda:sedaProcessFilesRoute"); weaveAddLast().to("mock:processBodyResult"); diff --git a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/config/ClassConfigTest.java b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/config/ClassConfigTest.java index 773e0d1cd..0757fdbd6 100644 --- a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/config/ClassConfigTest.java +++ b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/config/ClassConfigTest.java @@ -6,7 +6,13 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.springframework.context.annotation.AnnotationConfigApplicationContext; - +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) class ClassConfigTest { private AnnotationConfigApplicationContext context; diff --git a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/config/KafkaConsumerConfigTest.java b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/config/KafkaConsumerConfigTest.java index bf5bd2582..5f4e8163d 100644 --- a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/config/KafkaConsumerConfigTest.java +++ b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/config/KafkaConsumerConfigTest.java @@ -10,7 +10,13 @@ import org.testcontainers.utility.DockerImageName; import java.time.Duration; - +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) class KafkaConsumerConfigTest { private static KafkaConsumerConfig kafkaConsumerConfig; diff --git a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/config/KafkaProducerConfigTest.java b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/config/KafkaProducerConfigTest.java index 51d0ff3fe..c997220de 100644 --- a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/config/KafkaProducerConfigTest.java +++ b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/config/KafkaProducerConfigTest.java @@ -9,7 +9,13 @@ import org.testcontainers.utility.DockerImageName; import java.time.Duration; - +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) class KafkaProducerConfigTest { private static KafkaProducerConfig kafkaProducerConfig; diff --git a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/custommetrics/CustomMetricsBuilderTest.java b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/custommetrics/CustomMetricsBuilderTest.java index b3421a7cc..cf096d44c 100644 --- a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/custommetrics/CustomMetricsBuilderTest.java +++ b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/custommetrics/CustomMetricsBuilderTest.java @@ -2,18 +2,22 @@ import io.micrometer.core.instrument.Counter; import io.micrometer.core.instrument.MeterRegistry; -import io.micrometer.core.instrument.Timer; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.mockito.MockitoAnnotations; import static org.mockito.Mockito.*; - +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) class CustomMetricsBuilderTest { private MeterRegistry meterRegistryMock; private Counter counterMock; - private Timer timerMock; private CustomMetricsBuilder customMetricsBuilder; @BeforeEach @@ -21,7 +25,6 @@ void setUp() { MockitoAnnotations.openMocks(this); meterRegistryMock = mock(MeterRegistry.class); counterMock = mock(Counter.class); - timerMock = mock(Timer.class); customMetricsBuilder = new CustomMetricsBuilder(meterRegistryMock); } diff --git a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/deadletter/controller/ElrDeadLetterControllerTest.java b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/deadletter/controller/ElrDeadLetterControllerTest.java index 89208ea48..4cacc4e85 100644 --- a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/deadletter/controller/ElrDeadLetterControllerTest.java +++ b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/deadletter/controller/ElrDeadLetterControllerTest.java @@ -17,7 +17,13 @@ import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; - +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) @WebMvcTest(ElrDeadLetterController.class) @ActiveProfiles("test") class ElrDeadLetterControllerTest { diff --git a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/deadletter/service/ElrDeadLetterServiceTest.java b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/deadletter/service/ElrDeadLetterServiceTest.java index 53f30b497..e8a55cdbb 100644 --- a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/deadletter/service/ElrDeadLetterServiceTest.java +++ b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/deadletter/service/ElrDeadLetterServiceTest.java @@ -28,7 +28,13 @@ import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.anyString; import static org.mockito.Mockito.when; - +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) @Testcontainers class ElrDeadLetterServiceTest { @Mock diff --git a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/ecr/cdaMapping/CdaMapHelperTest.java b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/ecr/cdaMapping/CdaMapHelperTest.java index 39112aab5..973314a00 100644 --- a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/ecr/cdaMapping/CdaMapHelperTest.java +++ b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/ecr/cdaMapping/CdaMapHelperTest.java @@ -12,7 +12,13 @@ import org.mockito.MockitoAnnotations; import static org.mockito.Mockito.when; - +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) class CdaMapHelperTest { @Mock private ICdaLookUpService cdaLookUpService; diff --git a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/ecr/cdaMapping/CdaMapStringHelperTest.java b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/ecr/cdaMapping/CdaMapStringHelperTest.java index c7c5d2321..ed152a005 100644 --- a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/ecr/cdaMapping/CdaMapStringHelperTest.java +++ b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/ecr/cdaMapping/CdaMapStringHelperTest.java @@ -9,7 +9,13 @@ import java.util.ArrayList; import java.util.List; - +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) class CdaMapStringHelperTest { @InjectMocks private CdaMapStringHelper target; diff --git a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/ecr/cdaMapping/CdaMapperPatientTest.java b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/ecr/cdaMapping/CdaMapperPatientTest.java index 8c203217a..10699cada 100644 --- a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/ecr/cdaMapping/CdaMapperPatientTest.java +++ b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/ecr/cdaMapping/CdaMapperPatientTest.java @@ -16,7 +16,13 @@ import org.mockito.MockitoAnnotations; import static gov.cdc.dataingestion.ecr.cdaMapping.helper.TestDataInitiation.getTestData; - +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) class CdaMapperPatientTest { @Mock @@ -44,6 +50,7 @@ void mapToPatientTest() throws XmlException, EcrCdaXmlException { Assertions.assertNotNull(result); } + @SuppressWarnings("java:S6126") private POCDMT000040ClinicalDocument1 getPatientDocument() throws XmlException { String document = "\n" + " \n" + diff --git a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/ecr/cdaMapping/CdaMapperTest.java b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/ecr/cdaMapping/CdaMapperTest.java index e42c8cf18..1e89d0933 100644 --- a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/ecr/cdaMapping/CdaMapperTest.java +++ b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/ecr/cdaMapping/CdaMapperTest.java @@ -16,7 +16,13 @@ import static gov.cdc.dataingestion.ecr.cdaMapping.helper.TestDataInitiation.getTestData; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; - +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) class CdaMapperTest { @Mock private ICdaLookUpService cdaLookUpService; diff --git a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/ecr/cdaMapping/helper/TestDataInitiation.java b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/ecr/cdaMapping/helper/TestDataInitiation.java index dd6680dea..b85a26385 100644 --- a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/ecr/cdaMapping/helper/TestDataInitiation.java +++ b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/ecr/cdaMapping/helper/TestDataInitiation.java @@ -9,6 +9,13 @@ import java.io.InputStreamReader; import java.io.Reader; +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class TestDataInitiation { private static EcrSelectedRecord initTestData(EcrSelectedRecord ecrObject) throws EcrCdaXmlException { for(int i = 0; i < ecrObject.getMsgCases().get(0).getMsgCaseAnswers().size(); i++) { diff --git a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/ecr/repository/EcrLookUpRepositoryTest.java b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/ecr/repository/EcrLookUpRepositoryTest.java index e2dceb65c..5339f76bf 100644 --- a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/ecr/repository/EcrLookUpRepositoryTest.java +++ b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/ecr/repository/EcrLookUpRepositoryTest.java @@ -24,7 +24,13 @@ import static org.mockito.Mockito.*; @RunWith(MockitoJUnitRunner.class) - +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) class EcrLookUpRepositoryTest { @InjectMocks private EcrLookUpRepository target; diff --git a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/ecr/repository/EcrMsgQueryRepositoryTest.java b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/ecr/repository/EcrMsgQueryRepositoryTest.java index c835737c1..1b83dd6d8 100644 --- a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/ecr/repository/EcrMsgQueryRepositoryTest.java +++ b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/ecr/repository/EcrMsgQueryRepositoryTest.java @@ -22,7 +22,13 @@ import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.anyString; import static org.mockito.Mockito.*; - +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) @RunWith(MockitoJUnitRunner.class) class EcrMsgQueryRepositoryTest { @InjectMocks diff --git a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/ecr/service/CdaLookUpServiceTest.java b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/ecr/service/CdaLookUpServiceTest.java index 72622dc76..c238bc2c3 100644 --- a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/ecr/service/CdaLookUpServiceTest.java +++ b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/ecr/service/CdaLookUpServiceTest.java @@ -15,7 +15,13 @@ import org.mockito.MockitoAnnotations; import static org.mockito.Mockito.when; - +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) class CdaLookUpServiceTest { @Mock private IEcrLookUpRepository ecrLookUpRepository; diff --git a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/ecr/service/EcrMessagePollServiceTest.java b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/ecr/service/EcrMessagePollServiceTest.java index f261b4453..473ec899c 100644 --- a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/ecr/service/EcrMessagePollServiceTest.java +++ b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/ecr/service/EcrMessagePollServiceTest.java @@ -15,7 +15,13 @@ import static org.junit.jupiter.api.Assertions.assertThrows; import static org.mockito.Mockito.*; - +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) class EcrMessagePollServiceTest { @Mock diff --git a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/ecr/service/EcrMsgQueryServiceTest.java b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/ecr/service/EcrMsgQueryServiceTest.java index 3cb5a46a0..fd3f111d0 100644 --- a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/ecr/service/EcrMsgQueryServiceTest.java +++ b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/ecr/service/EcrMsgQueryServiceTest.java @@ -18,7 +18,13 @@ import static org.mockito.ArgumentMatchers.eq; import static org.mockito.Mockito.when; - +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) class EcrMsgQueryServiceTest { @Mock private IEcrMsgQueryRepository ecrMsgQueryRepository; diff --git a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/kafka/service/KafkaConsumerServiceTest.java b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/kafka/service/KafkaConsumerServiceTest.java index 3e5fdb8e5..990886d80 100644 --- a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/kafka/service/KafkaConsumerServiceTest.java +++ b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/kafka/service/KafkaConsumerServiceTest.java @@ -8,12 +8,10 @@ import gov.cdc.dataingestion.deadletter.repository.IElrDeadLetterRepository; import gov.cdc.dataingestion.deadletter.repository.model.ElrDeadLetterModel; import gov.cdc.dataingestion.exception.ConversionPrepareException; -import gov.cdc.dataingestion.exception.DuplicateHL7FileFoundException; import gov.cdc.dataingestion.exception.XmlConversionException; import gov.cdc.dataingestion.hl7.helper.integration.exception.DiHL7Exception; import gov.cdc.dataingestion.kafka.integration.service.KafkaConsumerService; import gov.cdc.dataingestion.kafka.integration.service.KafkaProducerService; -import gov.cdc.dataingestion.kafka.integration.service.KafkaProducerTransactionService; import gov.cdc.dataingestion.nbs.ecr.service.interfaces.ICdaMapper; import gov.cdc.dataingestion.nbs.repository.model.NbsInterfaceModel; import gov.cdc.dataingestion.nbs.services.NbsRepositoryServiceProvider; @@ -60,7 +58,13 @@ import static org.junit.jupiter.api.Assertions.assertThrows; import static org.mockito.ArgumentMatchers.any; import static org.mockito.Mockito.*; - +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) @ExtendWith(MockitoExtension.class) @Testcontainers class KafkaConsumerServiceTest { @@ -94,8 +98,6 @@ class KafkaConsumerServiceTest { @Mock private IEcrMsgQueryService ecrMsgQueryService; - @Mock - private KafkaProducerTransactionService kafkaProducerTransactionService; @Container public static KafkaContainer kafkaContainer = new KafkaContainer(DockerImageName.parse("confluentinc/cp-kafka:7.3.0")) .withStartupTimeout(Duration.ofMinutes(5)); @@ -165,7 +167,7 @@ public void setUp() { ecrMsgQueryService, iReportStatusRepository, customMetricsBuilder, - timeMetricsBuilder, kafkaProducerTransactionService); + timeMetricsBuilder); nbsInterfaceModel = new NbsInterfaceModel(); validatedELRModel = new ValidatedELRModel(); } @@ -176,7 +178,7 @@ public static void tearDown() { } @Test - void rawConsumerTest() throws DuplicateHL7FileFoundException, DiHL7Exception { + void rawConsumerTest() throws DiHL7Exception { // Produce a test message to the topic initialDataInsertionAndSelection(rawTopic); String message = guidForTesting; @@ -404,9 +406,8 @@ void xmlPreparationConsumerTestReInjection_Exception() { // Produce a test message to the topic // initialDataInsertionAndSelection(xmlPrepTopic); - var guidForTesting = "test"; - String message = guidForTesting; - produceMessage(xmlPrepTopic, message, EnumKafkaOperation.REINJECTION); + var guidForTesting1 = "test"; + produceMessage(xmlPrepTopic, guidForTesting1, EnumKafkaOperation.REINJECTION); // Consume the message ConsumerRecords records = consumer.poll(Duration.ofSeconds(5)); @@ -420,9 +421,8 @@ void xmlPreparationConsumerTestReInjection() { // Produce a test message to the topic // initialDataInsertionAndSelection(xmlPrepTopic); try { - var guidForTesting = "test"; - String message = guidForTesting; - produceMessage(xmlPrepTopic, message, EnumKafkaOperation.REINJECTION); + var guidForTesting1 = "test"; + produceMessage(xmlPrepTopic, guidForTesting1, EnumKafkaOperation.REINJECTION); // Consume the message ConsumerRecords records = consumer.poll(Duration.ofSeconds(5)); @@ -435,9 +435,9 @@ void xmlPreparationConsumerTestReInjection() { ElrDeadLetterModel model = new ElrDeadLetterModel(); - model.setErrorMessageId(guidForTesting); + model.setErrorMessageId(guidForTesting1); model.setMessage(testHL7Message); - when(elrDeadLetterRepository.findById(guidForTesting)) + when(elrDeadLetterRepository.findById(guidForTesting1)) .thenReturn(Optional.of(model)); when(iHl7v2Validator.messageStringValidation(testHL7Message)) @@ -461,7 +461,7 @@ void xmlPreparationConsumerTestReInjection() { kafkaConsumerService.handleMessageForXmlConversionElr(value, xmlPrepTopic, EnumKafkaOperation.REINJECTION.name(), "false"); verify(iHl7v2Validator, times(1)).messageStringValidation(testHL7Message); - verify(elrDeadLetterRepository, times(1)).findById(guidForTesting); + verify(elrDeadLetterRepository, times(1)).findById(guidForTesting1); } catch (Exception e) { throw new RuntimeException(e); } diff --git a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/kafka/service/KafkaProducerServiceTest.java b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/kafka/service/KafkaProducerServiceTest.java index 969cf79a4..ab3aee50c 100644 --- a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/kafka/service/KafkaProducerServiceTest.java +++ b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/kafka/service/KafkaProducerServiceTest.java @@ -23,6 +23,13 @@ import static org.mockito.Mockito.verify; @ExtendWith(MockitoExtension.class) @Testcontainers +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) class KafkaProducerServiceTest { @Mock private KafkaTemplate kafkaTemplate; diff --git a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/nbs/TestHelper.java b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/nbs/TestHelper.java index 7d1f21c08..8af982000 100644 --- a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/nbs/TestHelper.java +++ b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/nbs/TestHelper.java @@ -5,6 +5,13 @@ import java.io.FileReader; import java.io.IOException; +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class TestHelper { public static String testFileReading() throws IOException { diff --git a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/nbs/converter/Hl7ToRhapsodysXmlConverterTest.java b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/nbs/converter/Hl7ToRhapsodysXmlConverterTest.java index 44b1f20c9..fa1a6bfa4 100644 --- a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/nbs/converter/Hl7ToRhapsodysXmlConverterTest.java +++ b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/nbs/converter/Hl7ToRhapsodysXmlConverterTest.java @@ -32,7 +32,13 @@ import java.math.BigInteger; import java.util.ArrayList; import java.util.List; - +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) class Hl7ToRhapsodysXmlConverterTest { Hl7ToRhapsodysXmlConverter target = new Hl7ToRhapsodysXmlConverter(); HL7Helper hl7Helper = new HL7Helper(); diff --git a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/nbs/converter/RhapsodysXmlToHl7ConverterTest.java b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/nbs/converter/RhapsodysXmlToHl7ConverterTest.java index cbd38255c..2665772cc 100644 --- a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/nbs/converter/RhapsodysXmlToHl7ConverterTest.java +++ b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/nbs/converter/RhapsodysXmlToHl7ConverterTest.java @@ -11,7 +11,13 @@ import java.math.BigInteger; import java.util.ArrayList; import java.util.List; - +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) class RhapsodysXmlToHl7ConverterTest { RhapsodysXmlToHl7Converter target = new RhapsodysXmlToHl7Converter(); diff --git a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/nbs/converter/TestData.java b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/nbs/converter/TestData.java index 0ec329475..6428ce314 100644 --- a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/nbs/converter/TestData.java +++ b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/nbs/converter/TestData.java @@ -1,5 +1,12 @@ package gov.cdc.dataingestion.nbs.converter; +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class TestData { public static String randomGenerated251WithDataInAllFieldV1 = "MSH|^~\\&|SendingApp|SendingFac|ReceivApp|ReceivFac|20230615120000|20230615|ORU^R01^ORU_R01|123456789|P|2.5.1|20230615|20230615|20230615|20230615|20230615|20230615|20230615|20230615|20230615\r" + "SFT|20230615|20230615|20230615|20230615|20230615|20230615\r" + diff --git a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/nbs/service/NbsRepositoryServiceProviderTest.java b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/nbs/service/NbsRepositoryServiceProviderTest.java index 4bbeb410f..78eb569e7 100644 --- a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/nbs/service/NbsRepositoryServiceProviderTest.java +++ b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/nbs/service/NbsRepositoryServiceProviderTest.java @@ -24,7 +24,13 @@ import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.anyInt; import static org.mockito.Mockito.*; - +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) class NbsRepositoryServiceProviderTest { @Mock private NbsInterfaceRepository nbsInterfaceRepo; diff --git a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/odse/repository/model/EdxActivityDetailLogTest.java b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/odse/repository/model/EdxActivityDetailLogTest.java index a53b15111..14a3d57c4 100644 --- a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/odse/repository/model/EdxActivityDetailLogTest.java +++ b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/odse/repository/model/EdxActivityDetailLogTest.java @@ -3,7 +3,13 @@ import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; - +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) class EdxActivityDetailLogTest { @Test void testEdxActivityDetailLog() { diff --git a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/rawmessage/RawELRServiceTest.java b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/rawmessage/RawELRServiceTest.java index f8e39c727..bbd98e2b8 100644 --- a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/rawmessage/RawELRServiceTest.java +++ b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/rawmessage/RawELRServiceTest.java @@ -18,7 +18,13 @@ import static org.mockito.ArgumentMatchers.any; import static org.mockito.Mockito.when; - +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) class RawELRServiceTest { @Mock private IRawELRRepository rawELRRepository; diff --git a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/rawmessage/controller/EcrReportsControllerTest.java b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/rawmessage/controller/EcrReportsControllerTest.java index 47e78e606..79e787e6e 100644 --- a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/rawmessage/controller/EcrReportsControllerTest.java +++ b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/rawmessage/controller/EcrReportsControllerTest.java @@ -15,7 +15,13 @@ import static org.mockito.ArgumentMatchers.anyString; import static org.mockito.Mockito.*; - +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) @WebMvcTest(EcrReportsController.class) @ActiveProfiles("test") class EcrReportsControllerTest { diff --git a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/rawmessage/controller/ElrReportsControllerMockTest.java b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/rawmessage/controller/ElrReportsControllerMockTest.java index d44d31677..257a2da7c 100644 --- a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/rawmessage/controller/ElrReportsControllerMockTest.java +++ b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/rawmessage/controller/ElrReportsControllerMockTest.java @@ -21,6 +21,13 @@ import static org.mockito.ArgumentMatchers.any; import static org.mockito.Mockito.*; +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) public class ElrReportsControllerMockTest { @Mock private RawELRService rawELRService; diff --git a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/rawmessage/controller/ElrReportsControllerTest.java b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/rawmessage/controller/ElrReportsControllerTest.java index 1bac18146..6ad3c164e 100644 --- a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/rawmessage/controller/ElrReportsControllerTest.java +++ b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/rawmessage/controller/ElrReportsControllerTest.java @@ -17,7 +17,13 @@ import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; - +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) @WebMvcTest(ElrReportsController.class) @ActiveProfiles("test") class ElrReportsControllerTest { diff --git a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/reportstatus/controller/ReportStatusControllerTest.java b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/reportstatus/controller/ReportStatusControllerTest.java index 9336a9ae3..cedef1d67 100644 --- a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/reportstatus/controller/ReportStatusControllerTest.java +++ b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/reportstatus/controller/ReportStatusControllerTest.java @@ -16,7 +16,13 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.mockito.Mockito.*; - +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) @ActiveProfiles("test") class ReportStatusControllerTest { @Mock diff --git a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/reportstatus/service/ReportStatusServiceTest.java b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/reportstatus/service/ReportStatusServiceTest.java index 45767c9d4..6e0772fac 100644 --- a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/reportstatus/service/ReportStatusServiceTest.java +++ b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/reportstatus/service/ReportStatusServiceTest.java @@ -29,7 +29,13 @@ import static org.junit.jupiter.api.Assertions.*; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; - +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) class ReportStatusServiceTest { @Mock private IReportStatusRepository iReportStatusRepositoryMock; diff --git a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/security/controller/TokenControllerTest.java b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/security/controller/TokenControllerTest.java index 0f50298f5..a6d23b66f 100644 --- a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/security/controller/TokenControllerTest.java +++ b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/security/controller/TokenControllerTest.java @@ -16,7 +16,13 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.mockito.Mockito.*; - +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) class TokenControllerTest { CustomMetricsBuilder customMetricsBuilder; RestTemplate restTemplate; diff --git a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/share/ControllerExceptionHandlerTest.java b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/share/ControllerExceptionHandlerTest.java index 644b77b91..f7e98c640 100644 --- a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/share/ControllerExceptionHandlerTest.java +++ b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/share/ControllerExceptionHandlerTest.java @@ -5,7 +5,13 @@ import org.junit.jupiter.api.Test; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; - +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) class ControllerExceptionHandlerTest { private ControllerExceptionHandler handler; private Exception exception; diff --git a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/share/CustomAuthenticationEntryPointTest.java b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/share/CustomAuthenticationEntryPointTest.java index 21f675710..83e419160 100644 --- a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/share/CustomAuthenticationEntryPointTest.java +++ b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/share/CustomAuthenticationEntryPointTest.java @@ -12,7 +12,13 @@ import java.io.IOException; import java.io.PrintWriter; import java.io.StringWriter; - +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) class CustomAuthenticationEntryPointTest { private CustomAuthenticationEntryPoint entryPoint; private HttpServletRequest request; diff --git a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/share/CustomAuthenticationExceptionTest.java b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/share/CustomAuthenticationExceptionTest.java index 310710865..b3311f4ee 100644 --- a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/share/CustomAuthenticationExceptionTest.java +++ b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/share/CustomAuthenticationExceptionTest.java @@ -4,7 +4,13 @@ import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; - +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) class CustomAuthenticationExceptionTest { @Test void test_exception_custom() { diff --git a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/validation/integration/validator/HL7DuplicateValidatorTest.java b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/validation/integration/validator/HL7DuplicateValidatorTest.java index 203138435..fdd8843a5 100644 --- a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/validation/integration/validator/HL7DuplicateValidatorTest.java +++ b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/validation/integration/validator/HL7DuplicateValidatorTest.java @@ -16,7 +16,13 @@ import static org.junit.jupiter.api.Assertions.*; import static org.mockito.ArgumentMatchers.any; import static org.mockito.Mockito.*; - +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) class HL7DuplicateValidatorTest { HL7DuplicateValidator hl7DuplicateValidator; diff --git a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/validation/integration/validator/HL7v2ValidatorTests.java b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/validation/integration/validator/HL7v2ValidatorTests.java index 9d6f383dd..91c30352f 100644 --- a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/validation/integration/validator/HL7v2ValidatorTests.java +++ b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/validation/integration/validator/HL7v2ValidatorTests.java @@ -8,7 +8,13 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; - +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) class HL7v2ValidatorTests { private IHL7v2Validator target; diff --git a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/validation/services/HL7ServiceTest.java b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/validation/services/HL7ServiceTest.java index 16c88e931..4b5298918 100644 --- a/data-ingestion-service/src/test/java/gov/cdc/dataingestion/validation/services/HL7ServiceTest.java +++ b/data-ingestion-service/src/test/java/gov/cdc/dataingestion/validation/services/HL7ServiceTest.java @@ -10,7 +10,13 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.mockito.Mockito.when; - +/** + 1118 - require constructor complaint + 125 - comment complaint + 6126 - String block complaint + 1135 - todos complaint + * */ +@SuppressWarnings({"java:S1118","java:S125", "java:S6126", "java:S1135"}) class HL7ServiceTest { @Mock private IHL7v2Validator hl7v2Validator; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/ServiceApplication.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/ServiceApplication.java index 85a60a3bc..f3f94e9a0 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/ServiceApplication.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/ServiceApplication.java @@ -20,8 +20,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ServiceApplication { /** * Main method for spring boot application. diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/cache/OdseCache.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/cache/OdseCache.java index edaad97d2..f977ab257 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/cache/OdseCache.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/cache/OdseCache.java @@ -11,8 +11,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class OdseCache { public static Map fromPrePopFormMapping = new TreeMap(); public static Map toPrePopFormMapping = new TreeMap(); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/cache/PropertyUtilCache.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/cache/PropertyUtilCache.java index 827d94a37..a08b00319 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/cache/PropertyUtilCache.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/cache/PropertyUtilCache.java @@ -10,8 +10,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PropertyUtilCache { public static ArrayList cachedHivList = new ArrayList<>(); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/cache/SrteCache.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/cache/SrteCache.java index 19a32a084..230b9e10b 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/cache/SrteCache.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/cache/SrteCache.java @@ -13,8 +13,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class SrteCache { public static HashMap loinCodeWithComponentNameMap = new HashMap<>(); public static HashMap labResultByDescMap = new HashMap<>(); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/config/CacheConfig.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/config/CacheConfig.java index 9267ff54f..a3574bc9a 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/config/CacheConfig.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/config/CacheConfig.java @@ -20,8 +20,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class CacheConfig { @Bean diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/config/KafkaConsumerConfig.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/config/KafkaConsumerConfig.java index 7555cd76e..b4bbd88e6 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/config/KafkaConsumerConfig.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/config/KafkaConsumerConfig.java @@ -26,8 +26,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class KafkaConsumerConfig { @Value("${spring.kafka.group-id}") private String groupId = ""; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/config/KafkaProducerConfig.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/config/KafkaProducerConfig.java index 69bd90bd7..8feac4e2e 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/config/KafkaProducerConfig.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/config/KafkaProducerConfig.java @@ -21,8 +21,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class KafkaProducerConfig { @Value("${spring.kafka.bootstrap-servers}") private String bootstrapServers = ""; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/config/NbsDataSourceConfig.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/config/NbsDataSourceConfig.java index d9323ed5b..da1efb588 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/config/NbsDataSourceConfig.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/config/NbsDataSourceConfig.java @@ -34,8 +34,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NbsDataSourceConfig { @Value("${spring.datasource.driverClassName}") private String driverClassName; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/config/OdseDataSourceConfig.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/config/OdseDataSourceConfig.java index 289bd5ffd..fa46684d9 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/config/OdseDataSourceConfig.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/config/OdseDataSourceConfig.java @@ -36,8 +36,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class OdseDataSourceConfig { @Value("${spring.datasource.driverClassName}") private String driverClassName; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/config/SrteDataSourceConfig.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/config/SrteDataSourceConfig.java index e57c02335..e4bd5e98b 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/config/SrteDataSourceConfig.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/config/SrteDataSourceConfig.java @@ -36,8 +36,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class SrteDataSourceConfig { @Value("${spring.datasource.driverClassName}") private String driverClassName; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/CTConstants.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/CTConstants.java index c795ecf62..9eae19912 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/CTConstants.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/CTConstants.java @@ -8,8 +8,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class CTConstants { public static final String PROGRAM_AREA = "CON135"; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/ComplexQueries.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/ComplexQueries.java index 5ef5441cb..959dd6e3d 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/ComplexQueries.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/ComplexQueries.java @@ -10,8 +10,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ComplexQueries { public static final String DMB_QUESTION_OID_METADATA_SQL = "SELECT " + "NBS_UI_METADATA.nbs_question_uid, " diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/DecisionSupportConstants.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/DecisionSupportConstants.java index 5b6133a39..bd78e218d 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/DecisionSupportConstants.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/DecisionSupportConstants.java @@ -8,8 +8,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class DecisionSupportConstants { //Basic Criteria constants diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/DpConstant.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/DpConstant.java index d996da851..4d1401201 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/DpConstant.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/DpConstant.java @@ -8,8 +8,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class DpConstant { private DpConstant(){ diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/EdxPHCRConstants.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/EdxPHCRConstants.java index 03c920708..528480c15 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/EdxPHCRConstants.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/EdxPHCRConstants.java @@ -9,8 +9,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EdxPHCRConstants { public static final String SUM_MSG_INVESTIGATION_FAIL = "Error creating investigation. See Activity Details."; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/KafkaCustomHeader.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/KafkaCustomHeader.java index a7d3a34d6..6f227c0be 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/KafkaCustomHeader.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/KafkaCustomHeader.java @@ -8,8 +8,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class KafkaCustomHeader { public static final String DATA_TYPE = "DATA_TYPE"; } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/ManagerEvent.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/ManagerEvent.java index 9f6b10874..09285e666 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/ManagerEvent.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/ManagerEvent.java @@ -8,8 +8,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ManagerEvent { public static final String EVENT_ELR = "ELR"; public static final String EVENT_ECR = "ECR"; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/MessageConstants.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/MessageConstants.java index 4d7be8339..626a5ba5a 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/MessageConstants.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/MessageConstants.java @@ -8,8 +8,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class MessageConstants { public static final String New="New"; public static final String Read="Read"; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/NBSConstantUtil.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/NBSConstantUtil.java index 1cda29d25..88109ed7e 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/NBSConstantUtil.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/NBSConstantUtil.java @@ -8,8 +8,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NBSConstantUtil { //Constants use in NBSContext diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/RenderConstant.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/RenderConstant.java index e0fcaec2c..2ad0c58aa 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/RenderConstant.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/RenderConstant.java @@ -8,8 +8,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class RenderConstant { public static final String ACT_ID = "ACT_ID"; public static final String CONFIRMATION_METHOD = "CONFIRMATION_METHOD"; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/elr/DataTables.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/elr/DataTables.java index 8d20310d4..ec0978d89 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/elr/DataTables.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/elr/DataTables.java @@ -8,8 +8,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class DataTables { public static final String ORGANIZATION_TABLE = "Organization"; } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/elr/ELRConstant.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/elr/ELRConstant.java index 219794d0a..1b1801c44 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/elr/ELRConstant.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/elr/ELRConstant.java @@ -8,8 +8,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ELRConstant { public static final String PROGRAM_ASSIGN_1 = "PROGRAM_ASSIGN_1"; public static final String PROGRAM_ASSIGN_2 = "PROGRAM_ASSIGN_2"; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/elr/EdxELRConstant.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/elr/EdxELRConstant.java index 0655052d0..e7376e8b7 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/elr/EdxELRConstant.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/elr/EdxELRConstant.java @@ -10,8 +10,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EdxELRConstant { public static String PATIENT_LDF = "PAT"; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/elr/NBSBOLookup.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/elr/NBSBOLookup.java index c8c83a0de..aa666c3f3 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/elr/NBSBOLookup.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/elr/NBSBOLookup.java @@ -8,8 +8,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NBSBOLookup { public static final String ASSOCIATEINTERVENTIONVACCINERECORDS = "ASSOCIATEINTERVENTIONVACCINERECORDS"; public static final String ORGANIZATION = "ORGANIZATION"; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/elr/NEDSSConstant.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/elr/NEDSSConstant.java index a58a8837d..d2cedfc62 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/elr/NEDSSConstant.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/elr/NEDSSConstant.java @@ -11,8 +11,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NEDSSConstant { public static final String STATE_STR = "state"; public static final String CT_SHARED_IND_CD = "CT_CONTACT.shared_ind_cd"; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/elr/ProgramAreaJurisdiction.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/elr/ProgramAreaJurisdiction.java index 44f20e6ac..63ff40f52 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/elr/ProgramAreaJurisdiction.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/constant/elr/ProgramAreaJurisdiction.java @@ -8,8 +8,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ProgramAreaJurisdiction { /** * Constant for Shared = true diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/controller/Controller.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/controller/Controller.java index 50ac45c96..4eee21ff1 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/controller/Controller.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/controller/Controller.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class Controller { @Autowired public Controller( ) { diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/exception/DataProcessingConsumerException.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/exception/DataProcessingConsumerException.java index aaf7c1d5e..9019da400 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/exception/DataProcessingConsumerException.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/exception/DataProcessingConsumerException.java @@ -11,8 +11,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class DataProcessingConsumerException extends Exception{ private Object result; public DataProcessingConsumerException(String message, Object result) { diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/exception/DataProcessingException.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/exception/DataProcessingException.java index 322aae807..04636b5a4 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/exception/DataProcessingException.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/exception/DataProcessingException.java @@ -8,8 +8,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class DataProcessingException extends Exception{ public DataProcessingException(String message) { diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/exception/EdxLogException.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/exception/EdxLogException.java index b4acd02b2..7715b2e88 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/exception/EdxLogException.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/exception/EdxLogException.java @@ -8,8 +8,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EdxLogException extends Exception{ private final Object result; public EdxLogException(String message, Object result) { diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/kafka/consumer/KafkaEdxLogConsumer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/kafka/consumer/KafkaEdxLogConsumer.java index b8774fd77..320e73cb7 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/kafka/consumer/KafkaEdxLogConsumer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/kafka/consumer/KafkaEdxLogConsumer.java @@ -20,8 +20,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class KafkaEdxLogConsumer { private static final Logger logger = LoggerFactory.getLogger(KafkaEdxLogConsumer.class); //NOSONAR private final IEdxLogService edxLogService; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/kafka/consumer/KafkaHandleLabConsumer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/kafka/consumer/KafkaHandleLabConsumer.java index 16d0c00ff..1a22a685a 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/kafka/consumer/KafkaHandleLabConsumer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/kafka/consumer/KafkaHandleLabConsumer.java @@ -23,8 +23,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class KafkaHandleLabConsumer { private static final Logger logger = LoggerFactory.getLogger(KafkaHandleLabConsumer.class); //NOSONAR diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/kafka/consumer/KafkaManagerConsumer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/kafka/consumer/KafkaManagerConsumer.java index 49b44bfdc..268854cc5 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/kafka/consumer/KafkaManagerConsumer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/kafka/consumer/KafkaManagerConsumer.java @@ -24,8 +24,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class KafkaManagerConsumer { private static final Logger logger = LoggerFactory.getLogger(KafkaManagerConsumer.class); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/kafka/consumer/KafkaPublicHealthCaseConsumer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/kafka/consumer/KafkaPublicHealthCaseConsumer.java index 12ec9dd5c..793cacec0 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/kafka/consumer/KafkaPublicHealthCaseConsumer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/kafka/consumer/KafkaPublicHealthCaseConsumer.java @@ -23,8 +23,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class KafkaPublicHealthCaseConsumer { private static final Logger logger = LoggerFactory.getLogger(KafkaPublicHealthCaseConsumer.class); // NOSONAR diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/kafka/producer/KafkaManagerProducer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/kafka/producer/KafkaManagerProducer.java index 4b146cf28..9db4f90f6 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/kafka/producer/KafkaManagerProducer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/kafka/producer/KafkaManagerProducer.java @@ -19,8 +19,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class KafkaManagerProducer extends KafkaBaseProducer { private static final Logger logger = LoggerFactory.getLogger(KafkaManagerProducer.class); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/kafka/producer/share/KafkaBaseProducer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/kafka/producer/share/KafkaBaseProducer.java index 20b6f5c4d..ac3a31b75 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/kafka/producer/share/KafkaBaseProducer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/kafka/producer/share/KafkaBaseProducer.java @@ -13,8 +13,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class KafkaBaseProducer { private final KafkaTemplate kafkaTemplate; public KafkaBaseProducer(KafkaTemplate kafkaTemplate) { diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/base/BaseContainer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/base/BaseContainer.java index 7f6cf15f2..c50c93d38 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/base/BaseContainer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/base/BaseContainer.java @@ -16,8 +16,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class BaseContainer implements Serializable, Cloneable { public BaseContainer() diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/base/BasePamContainer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/base/BasePamContainer.java index 5aeb50ca4..d04d14711 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/base/BasePamContainer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/base/BasePamContainer.java @@ -20,8 +20,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class BasePamContainer implements Serializable { private static final long serialVersionUID = 1L; private Map pamAnswerDTMap = new HashMap<>(); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/interfaces/InterviewContainer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/interfaces/InterviewContainer.java index b7b912a37..30875ba1b 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/interfaces/InterviewContainer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/interfaces/InterviewContainer.java @@ -18,8 +18,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class InterviewContainer extends BaseContainer { private static final long serialVersionUID = 1L; private InterviewDto theInterviewDto = new InterviewDto(); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/interfaces/PageProxyContainer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/interfaces/PageProxyContainer.java index 239da24dc..a44bf2591 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/interfaces/PageProxyContainer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/interfaces/PageProxyContainer.java @@ -3,6 +3,24 @@ import gov.cdc.dataprocessing.model.container.model.InterventionContainer; import gov.cdc.dataprocessing.model.container.model.PublicHealthCaseContainer; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface PageProxyContainer { public static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/interfaces/ReportSummaryInterface.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/interfaces/ReportSummaryInterface.java index 472026026..9cf29668f 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/interfaces/ReportSummaryInterface.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/interfaces/ReportSummaryInterface.java @@ -2,6 +2,24 @@ import java.sql.Timestamp; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface ReportSummaryInterface { public boolean getIsTouched(); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/ClinicalDocumentContainer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/ClinicalDocumentContainer.java index da37cdea0..f28c23861 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/ClinicalDocumentContainer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/ClinicalDocumentContainer.java @@ -18,8 +18,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ClinicalDocumentContainer extends BaseContainer implements Serializable { // private boolean itDirty = false; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/CoinfectionSummaryContainer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/CoinfectionSummaryContainer.java index c5596bfb0..9f789488b 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/CoinfectionSummaryContainer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/CoinfectionSummaryContainer.java @@ -16,8 +16,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class CoinfectionSummaryContainer implements Serializable, Cloneable{ private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/DocumentSummaryContainer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/DocumentSummaryContainer.java index 9e334fd4f..3dc78485e 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/DocumentSummaryContainer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/DocumentSummaryContainer.java @@ -19,8 +19,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class DocumentSummaryContainer extends BaseContainer implements RootDtoInterface { private static final long serialVersionUID = 1L; private Long nbsDocumentUid; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/EdxActivityLogContainer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/EdxActivityLogContainer.java index 918c757ba..77cfadd89 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/EdxActivityLogContainer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/EdxActivityLogContainer.java @@ -14,8 +14,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EdxActivityLogContainer { private EDXActivityLogDto edxActivityLogDto=new EDXActivityLogDto(); } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/EntityGroupContainer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/EntityGroupContainer.java index a9d7be93f..612970770 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/EntityGroupContainer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/EntityGroupContainer.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EntityGroupContainer extends BaseContainer { public Collection theEntityLocatorParticipationDTCollection; public Collection theEntityIdDTCollection; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/InterventionContainer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/InterventionContainer.java index 82d712cac..91507cede 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/InterventionContainer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/InterventionContainer.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class InterventionContainer extends BaseContainer { private static final long serialVersionUID = 1L; private InterventionDto theInterventionDto = new InterventionDto(); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/InvestigationContainer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/InvestigationContainer.java index 4542b1d56..3f9a9179d 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/InvestigationContainer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/InvestigationContainer.java @@ -15,8 +15,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class InvestigationContainer extends LdfBaseContainer { private static final long serialVersionUID = 1L; public PublicHealthCaseContainer thePublicHealthCaseContainer; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/LabReportSummaryContainer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/LabReportSummaryContainer.java index efa17ede8..1b113c642 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/LabReportSummaryContainer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/LabReportSummaryContainer.java @@ -21,8 +21,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class LabReportSummaryContainer extends BaseContainer implements RootDtoInterface,Comparable, ReportSummaryInterface { private static final long serialVersionUID = 1L; private boolean isTouched; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/LabResultProxyContainer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/LabResultProxyContainer.java index 7322c42cc..282e4380b 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/LabResultProxyContainer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/LabResultProxyContainer.java @@ -20,8 +20,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class LabResultProxyContainer extends PageActProxyContainer { @Serial private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/LdfBaseContainer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/LdfBaseContainer.java index e8ceff559..ea1b24616 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/LdfBaseContainer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/LdfBaseContainer.java @@ -20,8 +20,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class LdfBaseContainer extends BaseContainer { private static final long serialVersionUID = 1L; private Collection ldfUids; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/MPRUpdateContainer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/MPRUpdateContainer.java index ca24843a5..b253b0329 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/MPRUpdateContainer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/MPRUpdateContainer.java @@ -15,8 +15,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class MPRUpdateContainer { private PersonContainer mpr = null; private Collection personVOs = null; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/MaterialContainer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/MaterialContainer.java index 1c1f8eea5..bb995d5b9 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/MaterialContainer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/MaterialContainer.java @@ -23,8 +23,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class MaterialContainer extends BaseContainer { diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/NbsDocumentContainer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/NbsDocumentContainer.java index e6c133de4..429c744bf 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/NbsDocumentContainer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/NbsDocumentContainer.java @@ -28,8 +28,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NbsDocumentContainer extends BaseContainer implements ReportSummaryInterface, RootDtoInterface { diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/NonPersonLivingSubjectContainer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/NonPersonLivingSubjectContainer.java index a3b76e83a..ff8ea5f77 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/NonPersonLivingSubjectContainer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/NonPersonLivingSubjectContainer.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NonPersonLivingSubjectContainer extends BaseContainer { private static final long serialVersionUID = 1L; // private Boolean itDirty = false; // defined in AbstractVO diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/NotificationContainer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/NotificationContainer.java index 15dcfd12d..77342c146 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/NotificationContainer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/NotificationContainer.java @@ -22,8 +22,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NotificationContainer extends BaseContainer { private static final long serialVersionUID = 1L; private NotificationDto theNotificationDT = new NotificationDto(); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/NotificationProxyContainer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/NotificationProxyContainer.java index 08e030925..c5379f54a 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/NotificationProxyContainer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/NotificationProxyContainer.java @@ -16,8 +16,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NotificationProxyContainer extends BaseContainer { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/NotificationSummaryContainer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/NotificationSummaryContainer.java index 74dd1e683..2673f80ca 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/NotificationSummaryContainer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/NotificationSummaryContainer.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NotificationSummaryContainer extends BaseContainer implements RootDtoInterface { diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/ObservationContainer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/ObservationContainer.java index ab963d19a..6ef93ada9 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/ObservationContainer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/ObservationContainer.java @@ -22,8 +22,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ObservationContainer extends BaseContainer { private static final long serialVersionUID = 1L; private ObservationDto theObservationDto = new ObservationDto(); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/OrganizationContainer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/OrganizationContainer.java index ef3d28507..c73308595 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/OrganizationContainer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/OrganizationContainer.java @@ -22,8 +22,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class OrganizationContainer extends LdfBaseContainer { // public OrganizationDto theOrganizationDto = new OrganizationDto(); // public Collection theOrganizationNameDtoCollection; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/PageActProxyContainer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/PageActProxyContainer.java index 75fec4593..d5139ac83 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/PageActProxyContainer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/PageActProxyContainer.java @@ -26,8 +26,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PageActProxyContainer extends BaseContainer { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/PageContainer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/PageContainer.java index d4c996a11..31f1f6e4a 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/PageContainer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/PageContainer.java @@ -15,8 +15,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PageContainer extends BasePamContainer { private boolean isCurrInvestgtrDynamic; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/PamProxyContainer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/PamProxyContainer.java index 5864345f9..d3e91c037 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/PamProxyContainer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/PamProxyContainer.java @@ -20,8 +20,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PamProxyContainer extends BaseContainer { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/PatientEncounterContainer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/PatientEncounterContainer.java index a328e2305..f9046d243 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/PatientEncounterContainer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/PatientEncounterContainer.java @@ -18,8 +18,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PatientEncounterContainer extends BaseContainer implements Serializable { private static final long serialVersionUID = 1L; public PatientEncounterDto thePatientEncounterDT = new PatientEncounterDto(); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/PersonContainer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/PersonContainer.java index 9611844f9..bcee101c0 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/PersonContainer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/PersonContainer.java @@ -10,6 +10,8 @@ import gov.cdc.dataprocessing.model.dto.person.PersonRaceDto; import lombok.Getter; import lombok.Setter; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import java.io.*; import java.util.ArrayList; @@ -25,9 +27,12 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PersonContainer extends LdfBaseContainer implements Serializable { + private static final Logger logger = LoggerFactory.getLogger(PersonContainer.class); // NOSONAR + public PersonDto thePersonDto = new PersonDto(); public Collection thePersonNameDtoCollection =new ArrayList<>(); public Collection thePersonRaceDtoCollection =new ArrayList<>(); @@ -67,7 +72,7 @@ public PersonContainer deepClone() { ObjectInputStream ois = new ObjectInputStream(bis); return (PersonContainer) ois.readObject(); } catch (IOException | ClassNotFoundException e) { - e.printStackTrace(); + logger.info(e.getMessage()); return null; } } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/PlaceContainer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/PlaceContainer.java index 254b8a831..87a00cf40 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/PlaceContainer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/PlaceContainer.java @@ -19,8 +19,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PlaceContainer extends BaseContainer implements Serializable { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/ProgramAreaContainer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/ProgramAreaContainer.java index b95a9676b..748247a41 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/ProgramAreaContainer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/ProgramAreaContainer.java @@ -16,8 +16,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ProgramAreaContainer implements Serializable, Comparable { diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/ProviderDataForPrintContainer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/ProviderDataForPrintContainer.java index c4fe67068..a61383829 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/ProviderDataForPrintContainer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/ProviderDataForPrintContainer.java @@ -15,8 +15,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ProviderDataForPrintContainer implements Serializable { private static final long serialVersionUID = -6215612766789766219L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/PublicHealthCaseContainer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/PublicHealthCaseContainer.java index c287791a3..f942741bc 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/PublicHealthCaseContainer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/PublicHealthCaseContainer.java @@ -27,8 +27,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PublicHealthCaseContainer extends BaseContainer { private static final long serialVersionUID = 1L; // private boolean itNew = false; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/ReferralContainer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/ReferralContainer.java index d3a67b409..34bc76f6d 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/ReferralContainer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/ReferralContainer.java @@ -18,8 +18,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ReferralContainer extends BaseContainer implements Serializable { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/ResultedTestSummaryContainer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/ResultedTestSummaryContainer.java index f19dd0055..d4ab15916 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/ResultedTestSummaryContainer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/ResultedTestSummaryContainer.java @@ -19,8 +19,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ResultedTestSummaryContainer extends BaseContainer implements RootDtoInterface { private Long sourceActUid; private String localId; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/TreatmentContainer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/TreatmentContainer.java index 5aaf7ffbf..7db14c40e 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/TreatmentContainer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/TreatmentContainer.java @@ -19,8 +19,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class TreatmentContainer extends BaseContainer implements RootDtoInterface { public String arTypeCd; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/UidSummaryContainer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/UidSummaryContainer.java index 52276463e..65803ffce 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/UidSummaryContainer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/UidSummaryContainer.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class UidSummaryContainer extends BaseContainer implements RootDtoInterface { private Long uid; private Timestamp addTime; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/auth_user/User.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/auth_user/User.java index d204ce4b1..f6d90b8e3 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/auth_user/User.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/auth_user/User.java @@ -14,8 +14,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class User extends BaseContainer { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/auth_user/UserProfile.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/auth_user/UserProfile.java index 35ee92fc3..079064bd5 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/auth_user/UserProfile.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/container/model/auth_user/UserProfile.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class UserProfile extends BaseContainer { private static final long serialVersionUID = 1L; public Collection theRealizedRoleDtoCollection; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/RootDtoInterface.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/RootDtoInterface.java index c83de61b5..45d35c57d 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/RootDtoInterface.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/RootDtoInterface.java @@ -1,7 +1,24 @@ package gov.cdc.dataprocessing.model.dto; import java.sql.Timestamp; - +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface RootDtoInterface { /** * A getter for last change user id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/act/ActIdDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/act/ActIdDto.java index caeac3e6b..98bb0460a 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/act/ActIdDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/act/ActIdDto.java @@ -19,8 +19,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ActIdDto extends BaseContainer implements RootDtoInterface { private Long actUid; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/act/ActRelationshipDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/act/ActRelationshipDto.java index 5357f6afc..f5d9e59d6 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/act/ActRelationshipDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/act/ActRelationshipDto.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ActRelationshipDto extends BaseContainer { private String addReasonCd; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/act/ActivityLocatorParticipationDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/act/ActivityLocatorParticipationDto.java index a619ef706..f092974ee 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/act/ActivityLocatorParticipationDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/act/ActivityLocatorParticipationDto.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ActivityLocatorParticipationDto extends BaseContainer { private static final long serialVersionUID = 1L; private Long actUid; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/auth_user/RealizedRoleDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/auth_user/RealizedRoleDto.java index 998d1f463..06999797c 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/auth_user/RealizedRoleDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/auth_user/RealizedRoleDto.java @@ -15,8 +15,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class RealizedRoleDto extends BaseContainer { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/dsm/DSMAlgorithmDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/dsm/DSMAlgorithmDto.java index 63f97a95d..1c1db1eb9 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/dsm/DSMAlgorithmDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/dsm/DSMAlgorithmDto.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class DSMAlgorithmDto extends BaseContainer { private static final long serialVersionUID = 4546705321489806575L; private Long dsmAlgorithmUid; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/dsm/DSMUpdateAlgorithmDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/dsm/DSMUpdateAlgorithmDto.java index e9ca01bc0..cc4c9bf72 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/dsm/DSMUpdateAlgorithmDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/dsm/DSMUpdateAlgorithmDto.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class DSMUpdateAlgorithmDto extends BaseContainer implements RootDtoInterface { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/edx/EDXDocumentDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/edx/EDXDocumentDto.java index d4cfc5eb0..9ad40d89d 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/edx/EDXDocumentDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/edx/EDXDocumentDto.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EDXDocumentDto extends BaseContainer { private Long eDXDocumentUid; private Long actUid; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/edx/EDXEventProcessCaseSummaryDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/edx/EDXEventProcessCaseSummaryDto.java index 61c67a663..b36e45c39 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/edx/EDXEventProcessCaseSummaryDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/edx/EDXEventProcessCaseSummaryDto.java @@ -13,8 +13,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EDXEventProcessCaseSummaryDto extends EDXEventProcessDto { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/edx/EDXEventProcessDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/edx/EDXEventProcessDto.java index a15410201..0eae8ae6d 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/edx/EDXEventProcessDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/edx/EDXEventProcessDto.java @@ -16,8 +16,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EDXEventProcessDto extends BaseContainer { private static final long serialVersionUID = 1L; private Long eDXEventProcessUid; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/edx/EdxELRLabMapDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/edx/EdxELRLabMapDto.java index b49559f18..dacc9306c 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/edx/EdxELRLabMapDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/edx/EdxELRLabMapDto.java @@ -15,8 +15,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EdxELRLabMapDto { private Long subjectEntityUid; private String roleCd; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/edx/EdxLabIdentiferDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/edx/EdxLabIdentiferDto.java index 36be589d1..31641b945 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/edx/EdxLabIdentiferDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/edx/EdxLabIdentiferDto.java @@ -15,8 +15,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EdxLabIdentiferDto { private static final long serialVersionUID = 1L; private String identifer; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/edx/EdxRuleAlgorothmManagerDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/edx/EdxRuleAlgorothmManagerDto.java index 5b9e68a3d..fdf12b190 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/edx/EdxRuleAlgorothmManagerDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/edx/EdxRuleAlgorothmManagerDto.java @@ -23,8 +23,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EdxRuleAlgorothmManagerDto implements Serializable { private static final long serialVersionUID = 1L; private String updateAction; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/edx/EdxRuleManageDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/edx/EdxRuleManageDto.java index 67e8f001a..3fea450e2 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/edx/EdxRuleManageDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/edx/EdxRuleManageDto.java @@ -16,8 +16,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EdxRuleManageDto implements Serializable { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/entity/EntityIdDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/entity/EntityIdDto.java index 190fdd0ac..dd571193c 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/entity/EntityIdDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/entity/EntityIdDto.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EntityIdDto extends BaseContainer { private Long entityUid; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/entity/EntityLocatorParticipationDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/entity/EntityLocatorParticipationDto.java index 597d65565..6df1ac817 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/entity/EntityLocatorParticipationDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/entity/EntityLocatorParticipationDto.java @@ -20,8 +20,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EntityLocatorParticipationDto extends BaseContainer { private Long locatorUid; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/entity/RoleDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/entity/RoleDto.java index 45c499f6f..3aaaf1193 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/entity/RoleDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/entity/RoleDto.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class RoleDto extends BaseContainer { private Long roleSeq; private String addReasonCd; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/generic_helper/StateDefinedFieldDataDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/generic_helper/StateDefinedFieldDataDto.java index 4e9d155e7..bb577d9ee 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/generic_helper/StateDefinedFieldDataDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/generic_helper/StateDefinedFieldDataDto.java @@ -16,8 +16,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class StateDefinedFieldDataDto extends BaseContainer { private Long ldfUid; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/lab_result/EdxLabInformationDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/lab_result/EdxLabInformationDto.java index ddab31f13..a1b8c20c2 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/lab_result/EdxLabInformationDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/lab_result/EdxLabInformationDto.java @@ -28,8 +28,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EdxLabInformationDto extends EdxRuleAlgorothmManagerDto implements Serializable { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/locator/PhysicalLocatorDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/locator/PhysicalLocatorDto.java index 54f911eee..3f828442f 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/locator/PhysicalLocatorDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/locator/PhysicalLocatorDto.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PhysicalLocatorDto extends BaseContainer { private Long physicalLocatorUid; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/locator/PostalLocatorDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/locator/PostalLocatorDto.java index 79767a0ec..954de773f 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/locator/PostalLocatorDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/locator/PostalLocatorDto.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PostalLocatorDto extends BaseContainer { private Long postalLocatorUid; private String addReasonCd; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/locator/TeleLocatorDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/locator/TeleLocatorDto.java index 81ea60b2d..1a6e86b2a 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/locator/TeleLocatorDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/locator/TeleLocatorDto.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class TeleLocatorDto extends BaseContainer { private Long teleLocatorUid; private String addReasonCd; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/log/EDXActivityDetailLogDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/log/EDXActivityDetailLogDto.java index d80d309ec..ab921b825 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/log/EDXActivityDetailLogDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/log/EDXActivityDetailLogDto.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EDXActivityDetailLogDto extends BaseContainer implements Serializable { private static final long serialVersionUID = 1L; private Long edxActivityDetailLogUid; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/log/EDXActivityLogDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/log/EDXActivityLogDto.java index c6110d612..842cb3ce1 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/log/EDXActivityLogDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/log/EDXActivityLogDto.java @@ -21,8 +21,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EDXActivityLogDto extends BaseContainer implements Serializable { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/log/MessageLogDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/log/MessageLogDto.java index 6ed7d97c6..71537dfa0 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/log/MessageLogDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/log/MessageLogDto.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class MessageLogDto extends BaseContainer { private static final long serialVersionUID = 1L; private Long messageLogUid; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/log/NNDActivityLogDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/log/NNDActivityLogDto.java index a03c37de0..ebb0497cd 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/log/NNDActivityLogDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/log/NNDActivityLogDto.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NNDActivityLogDto extends BaseContainer { private Long nndActivityLogUid; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/lookup/DropDownCodeDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/lookup/DropDownCodeDto.java index b812c603d..7c0580e69 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/lookup/DropDownCodeDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/lookup/DropDownCodeDto.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class DropDownCodeDto extends BaseContainer implements RootDtoInterface { private String key; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/lookup/LookupMappingDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/lookup/LookupMappingDto.java index 0af36e083..7d8242df4 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/lookup/LookupMappingDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/lookup/LookupMappingDto.java @@ -14,8 +14,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class LookupMappingDto { private Long lookupQuestionUid; private String fromQuestionIdentifier; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/lookup/PrePopMappingDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/lookup/PrePopMappingDto.java index 06fc9f392..7edd702cc 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/lookup/PrePopMappingDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/lookup/PrePopMappingDto.java @@ -16,8 +16,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PrePopMappingDto extends BaseContainer { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/matching/EdxEntityMatchDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/matching/EdxEntityMatchDto.java index 2fe9aa7ca..4ddb48db0 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/matching/EdxEntityMatchDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/matching/EdxEntityMatchDto.java @@ -16,8 +16,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EdxEntityMatchDto extends BaseContainer { private Long edxEntityMatchUid; private Long entityUid; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/matching/EdxPatientMatchDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/matching/EdxPatientMatchDto.java index bf8e88ba4..b3d830039 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/matching/EdxPatientMatchDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/matching/EdxPatientMatchDto.java @@ -16,8 +16,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EdxPatientMatchDto extends BaseContainer { private Long edxPatientMatchUid; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/material/ManufacturedMaterialDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/material/ManufacturedMaterialDto.java index ac55087e4..b7c79968d 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/material/ManufacturedMaterialDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/material/ManufacturedMaterialDto.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ManufacturedMaterialDto extends BaseContainer { diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/material/MaterialDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/material/MaterialDto.java index 51ab423dd..c73736668 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/material/MaterialDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/material/MaterialDto.java @@ -19,8 +19,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class MaterialDto extends BaseContainer implements RootDtoInterface { private Long materialUid; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/msgoute/NbsInterfaceDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/msgoute/NbsInterfaceDto.java index 316edea40..607ee67a7 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/msgoute/NbsInterfaceDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/msgoute/NbsInterfaceDto.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NbsInterfaceDto extends BaseContainer { private Long nbsInterfaceUid; private Blob payload; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/nbs/NBSDocumentDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/nbs/NBSDocumentDto.java index e3ba15d0b..6131f8541 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/nbs/NBSDocumentDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/nbs/NBSDocumentDto.java @@ -19,8 +19,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NBSDocumentDto extends BaseContainer implements RootDtoInterface { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/nbs/NbsActEntityDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/nbs/NbsActEntityDto.java index 0357f8722..c17c40697 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/nbs/NbsActEntityDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/nbs/NbsActEntityDto.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NbsActEntityDto extends BaseContainer { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/nbs/NbsAnswerDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/nbs/NbsAnswerDto.java index a03a4cb7a..d8675f39d 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/nbs/NbsAnswerDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/nbs/NbsAnswerDto.java @@ -18,8 +18,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NbsAnswerDto extends BaseContainer { private static final long serialVersionUID = 1L; protected Long nbsAnswerUid; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/nbs/NbsCaseAnswerDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/nbs/NbsCaseAnswerDto.java index 37d50cac2..5427b5955 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/nbs/NbsCaseAnswerDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/nbs/NbsCaseAnswerDto.java @@ -14,8 +14,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NbsCaseAnswerDto extends NbsAnswerDto { private static final long serialVersionUID = 1L; private Long nbsCaseAnswerUid; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/nbs/NbsNoteDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/nbs/NbsNoteDto.java index 70e8ac84e..14a91943c 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/nbs/NbsNoteDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/nbs/NbsNoteDto.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NbsNoteDto extends BaseContainer implements RootDtoInterface { private Long nbsNoteUid; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/nbs/NbsQuestionMetadata.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/nbs/NbsQuestionMetadata.java index 16edf2343..3f341bb02 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/nbs/NbsQuestionMetadata.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/nbs/NbsQuestionMetadata.java @@ -21,8 +21,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NbsQuestionMetadata extends BaseContainer { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/notification/NotificationDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/notification/NotificationDto.java index 94e7bfcba..c4c62c74d 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/notification/NotificationDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/notification/NotificationDto.java @@ -19,8 +19,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NotificationDto extends BaseContainer implements RootDtoInterface { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/notification/UpdatedNotificationDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/notification/UpdatedNotificationDto.java index 5b7e31eba..371a3a814 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/notification/UpdatedNotificationDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/notification/UpdatedNotificationDto.java @@ -16,8 +16,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class UpdatedNotificationDto extends BaseContainer { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/observation/ObsValueCodedDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/observation/ObsValueCodedDto.java index 2915a62fd..135093f96 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/observation/ObsValueCodedDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/observation/ObsValueCodedDto.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ObsValueCodedDto extends BaseContainer { diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/observation/ObsValueDateDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/observation/ObsValueDateDto.java index 11ebcbdcc..6a6831600 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/observation/ObsValueDateDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/observation/ObsValueDateDto.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ObsValueDateDto extends BaseContainer { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/observation/ObsValueNumericDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/observation/ObsValueNumericDto.java index d0d898b36..4a6e2c97f 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/observation/ObsValueNumericDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/observation/ObsValueNumericDto.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ObsValueNumericDto extends BaseContainer { private String numericValue; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/observation/ObsValueTxtDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/observation/ObsValueTxtDto.java index 42e61aefc..c6c6b5314 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/observation/ObsValueTxtDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/observation/ObsValueTxtDto.java @@ -15,8 +15,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ObsValueTxtDto extends BaseContainer { diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/observation/ObservationDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/observation/ObservationDto.java index 482db5a65..eee9d630c 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/observation/ObservationDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/observation/ObservationDto.java @@ -19,8 +19,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ObservationDto extends BaseContainer implements RootDtoInterface { private static final long serialVersionUID = 1L; private Long observationUid; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/observation/ObservationInterpDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/observation/ObservationInterpDto.java index 4780bbeb7..ac768330a 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/observation/ObservationInterpDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/observation/ObservationInterpDto.java @@ -15,8 +15,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ObservationInterpDto extends BaseContainer { private Long observationUid; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/observation/ObservationReasonDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/observation/ObservationReasonDto.java index 3c042b924..abe987753 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/observation/ObservationReasonDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/observation/ObservationReasonDto.java @@ -15,8 +15,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ObservationReasonDto extends BaseContainer { diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/organization/OrganizationDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/organization/OrganizationDto.java index 1b3d6a0d9..413a09264 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/organization/OrganizationDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/organization/OrganizationDto.java @@ -19,8 +19,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class OrganizationDto extends BaseContainer implements RootDtoInterface { private Long organizationUid; private String addReasonCd; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/organization/OrganizationNameDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/organization/OrganizationNameDto.java index 56563c80a..057778d38 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/organization/OrganizationNameDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/organization/OrganizationNameDto.java @@ -21,8 +21,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class OrganizationNameDto extends BaseContainer implements RootDtoInterface { private Long organizationUid; private Integer organizationNameSeq; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/participation/ParticipationDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/participation/ParticipationDto.java index f28a8e237..63140e9e0 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/participation/ParticipationDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/participation/ParticipationDto.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ParticipationDto extends BaseContainer { private String addReasonCd; private Timestamp addTime; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/person/PersonDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/person/PersonDto.java index 53fbbf3f4..56db76eb3 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/person/PersonDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/person/PersonDto.java @@ -19,8 +19,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PersonDto extends BaseContainer implements RootDtoInterface { private static final long serialVersionUID = 1L; private String dedupMatchInd; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/person/PersonEthnicGroupDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/person/PersonEthnicGroupDto.java index 994122464..f7d974fff 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/person/PersonEthnicGroupDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/person/PersonEthnicGroupDto.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PersonEthnicGroupDto extends BaseContainer { private Long personUid; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/person/PersonNameDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/person/PersonNameDto.java index 5831d1cf3..3764eaaad 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/person/PersonNameDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/person/PersonNameDto.java @@ -18,8 +18,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PersonNameDto extends BaseContainer implements RootDtoInterface { private Long personUid; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/person/PersonRaceDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/person/PersonRaceDto.java index 1da34fa33..ed63ef865 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/person/PersonRaceDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/person/PersonRaceDto.java @@ -19,8 +19,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PersonRaceDto extends BaseContainer implements RootDtoInterface { private Long personUid; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/CTContactSummaryDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/CTContactSummaryDto.java index 2f05803d9..bc8fd3edd 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/CTContactSummaryDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/CTContactSummaryDto.java @@ -18,8 +18,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class CTContactSummaryDto extends BaseContainer implements RootDtoInterface { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/CaseManagementDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/CaseManagementDto.java index 66f8833c8..eb1e647d3 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/CaseManagementDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/CaseManagementDto.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class CaseManagementDto extends BaseContainer { private static final long serialVersionUID = -5127476121435352079L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/ClinicalDocumentDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/ClinicalDocumentDto.java index e1f586432..b56d30221 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/ClinicalDocumentDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/ClinicalDocumentDto.java @@ -18,8 +18,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ClinicalDocumentDto extends BaseContainer implements RootDtoInterface { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/ConfirmationMethodDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/ConfirmationMethodDto.java index 17b6cdce9..1c2bbb43e 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/ConfirmationMethodDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/ConfirmationMethodDto.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ConfirmationMethodDto extends BaseContainer { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/EntityGroupDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/EntityGroupDto.java index 1ddbe5ba8..d6247813a 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/EntityGroupDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/EntityGroupDto.java @@ -18,8 +18,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EntityGroupDto extends BaseContainer implements RootDtoInterface { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/ExportReceivingFacilityDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/ExportReceivingFacilityDto.java index 1489e85c5..fd4039865 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/ExportReceivingFacilityDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/ExportReceivingFacilityDto.java @@ -16,8 +16,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ExportReceivingFacilityDto extends BaseContainer { private static final long serialVersionUID = 1L; private Timestamp addTime; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/InterventionDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/InterventionDto.java index 9c6afc10f..eb57fffc7 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/InterventionDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/InterventionDto.java @@ -19,8 +19,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class InterventionDto extends BaseContainer implements RootDtoInterface { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/InterviewDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/InterviewDto.java index ba3b351c9..9c8ce5f29 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/InterviewDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/InterviewDto.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class InterviewDto extends BaseContainer { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/NonPersonLivingSubjectDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/NonPersonLivingSubjectDto.java index 877aa0a44..578894c6d 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/NonPersonLivingSubjectDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/NonPersonLivingSubjectDto.java @@ -18,8 +18,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NonPersonLivingSubjectDto extends BaseContainer implements RootDtoInterface { private static final long serialVersionUID = 1L; private Long nonPersonUid; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/PatientEncounterDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/PatientEncounterDto.java index aeb4184c1..54e463f18 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/PatientEncounterDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/PatientEncounterDto.java @@ -18,8 +18,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PatientEncounterDto extends BaseContainer implements RootDtoInterface { private static final long serialVersionUID = 1L; private Long patientEncounterUid; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/PlaceDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/PlaceDto.java index 8ea8f3976..f77ab4a48 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/PlaceDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/PlaceDto.java @@ -18,8 +18,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PlaceDto extends BaseContainer implements RootDtoInterface { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/PublicHealthCaseDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/PublicHealthCaseDto.java index e511b59be..9a0f0067d 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/PublicHealthCaseDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/PublicHealthCaseDto.java @@ -20,8 +20,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PublicHealthCaseDto extends BaseContainer implements RootDtoInterface { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/ReferralDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/ReferralDto.java index 4c2681007..fc9437efe 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/ReferralDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/phc/ReferralDto.java @@ -18,8 +18,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ReferralDto extends BaseContainer implements RootDtoInterface { private static final long serialVersionUID = 1L; private Long referralUid; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/uid/LocalUidCacheModel.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/uid/LocalUidCacheModel.java index 13a2f66ce..f8b41dbca 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/uid/LocalUidCacheModel.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/uid/LocalUidCacheModel.java @@ -11,8 +11,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class LocalUidCacheModel { public static final Integer SEED_COUNTER = 1000; public static final ConcurrentMap localUidMap = new ConcurrentHashMap<>(); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/uid/LocalUidGeneratorDto.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/uid/LocalUidGeneratorDto.java index 21ccd5e73..2990e3d92 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/uid/LocalUidGeneratorDto.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/uid/LocalUidGeneratorDto.java @@ -15,8 +15,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class LocalUidGeneratorDto { private String classNameCd; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/uid/LocalUidModel.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/uid/LocalUidModel.java index b66f827c5..56064ebf2 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/uid/LocalUidModel.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/model/dto/uid/LocalUidModel.java @@ -13,8 +13,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class LocalUidModel { private LocalUidGeneratorDto classTypeUid; private LocalUidGeneratorDto gaTypeUid; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/msgoute/model/NbsInterfaceModel.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/msgoute/model/NbsInterfaceModel.java index bbf74399d..945b38e4f 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/msgoute/model/NbsInterfaceModel.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/msgoute/model/NbsInterfaceModel.java @@ -20,8 +20,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NbsInterfaceModel { @Id @GeneratedValue( strategy = GenerationType.IDENTITY ) diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/msgoute/repos/NbsInterfaceRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/msgoute/repos/NbsInterfaceRepository.java index 88de72d27..8643f0765 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/msgoute/repos/NbsInterfaceRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/msgoute/repos/NbsInterfaceRepository.java @@ -7,6 +7,24 @@ import java.util.Optional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface NbsInterfaceRepository extends JpaRepository { Optional findByNbsInterfaceUid(Integer id); } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/msgoute/repos/StoredProcRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/msgoute/repos/StoredProcRepository.java index 65067b71b..c6d918b29 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/msgoute/repos/StoredProcRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/msgoute/repos/StoredProcRepository.java @@ -9,6 +9,24 @@ import java.sql.Timestamp; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface StoredProcRepository extends CrudRepository { @Procedure(name = "UpdateSpecimenCollDate_SP") void updateSpecimenCollDateSP(@Param("NBSInterfaceUid") Long nbsInterfaceUid, @Param("specimentCollectionDate") Timestamp specimentCollectionDate); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/msgoute/repos/stored_proc/NbsInterfaceStoredProcRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/msgoute/repos/stored_proc/NbsInterfaceStoredProcRepository.java index 903bc5b6e..84bac2fac 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/msgoute/repos/stored_proc/NbsInterfaceStoredProcRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/msgoute/repos/stored_proc/NbsInterfaceStoredProcRepository.java @@ -19,8 +19,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NbsInterfaceStoredProcRepository { @PersistenceContext(unitName = "nbsEntityManagerFactory") // Specify the persistence unit name private EntityManager entityManager; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/msgoute/repos/stored_proc/ObservationMatchStoredProcRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/msgoute/repos/stored_proc/ObservationMatchStoredProcRepository.java index efa1e94d6..b32e88528 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/msgoute/repos/stored_proc/ObservationMatchStoredProcRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/msgoute/repos/stored_proc/ObservationMatchStoredProcRepository.java @@ -23,8 +23,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ObservationMatchStoredProcRepository { private static final Logger logger = LoggerFactory.getLogger(ObservationMatchStoredProcRepository.class); // NOSONAR diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/act/Act.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/act/Act.java index b478d8c23..37b33993b 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/act/Act.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/act/Act.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class Act { @Id @Column(name = "act_uid") diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/act/ActId.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/act/ActId.java index 159fe4ae3..112582b6d 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/act/ActId.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/act/ActId.java @@ -20,8 +20,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ActId implements Serializable { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/act/ActLocatorParticipation.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/act/ActLocatorParticipation.java index 5f25f9823..32698a2b3 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/act/ActLocatorParticipation.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/act/ActLocatorParticipation.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ActLocatorParticipation { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/act/ActRelationship.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/act/ActRelationship.java index 1ac789010..13f4db1b2 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/act/ActRelationship.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/act/ActRelationship.java @@ -20,8 +20,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ActRelationship implements Serializable { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/act/ActRelationshipHistory.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/act/ActRelationshipHistory.java index ff5143bc0..41048e331 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/act/ActRelationshipHistory.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/act/ActRelationshipHistory.java @@ -20,8 +20,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ActRelationshipHistory implements Serializable { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/auth/AuthUser.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/auth/AuthUser.java index 03d947502..2854c1570 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/auth/AuthUser.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/auth/AuthUser.java @@ -21,8 +21,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class AuthUser { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/auth/AuthUserRealizedRole.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/auth/AuthUserRealizedRole.java index e4e255cbc..a71388147 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/auth/AuthUserRealizedRole.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/auth/AuthUserRealizedRole.java @@ -13,8 +13,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class AuthUserRealizedRole { private String permSetNm; private Long authUserRoleUid; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/custom_model/QuestionRequiredNnd.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/custom_model/QuestionRequiredNnd.java index 5ca3ae8bb..d84679805 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/custom_model/QuestionRequiredNnd.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/custom_model/QuestionRequiredNnd.java @@ -11,8 +11,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class QuestionRequiredNnd { private Long nbsQuestionUid; private String questionIdentifier; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/dsm/DsmAlgorithm.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/dsm/DsmAlgorithm.java index 6ee7ae7d0..43a5e18cf 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/dsm/DsmAlgorithm.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/dsm/DsmAlgorithm.java @@ -16,8 +16,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class DsmAlgorithm { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/edx/EdxDocument.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/edx/EdxDocument.java index f462b6a68..98567c5f1 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/edx/EdxDocument.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/edx/EdxDocument.java @@ -20,8 +20,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EdxDocument { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/edx/EdxEventProcess.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/edx/EdxEventProcess.java index d6f43a71c..f0f8cdf42 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/edx/EdxEventProcess.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/edx/EdxEventProcess.java @@ -20,8 +20,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EdxEventProcess { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/entity/EntityId.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/entity/EntityId.java index 20699a18e..4f1dff246 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/entity/EntityId.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/entity/EntityId.java @@ -22,8 +22,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EntityId { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/entity/EntityLocatorParticipation.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/entity/EntityLocatorParticipation.java index 43e13c559..536d40069 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/entity/EntityLocatorParticipation.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/entity/EntityLocatorParticipation.java @@ -22,8 +22,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EntityLocatorParticipation { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/entity/EntityODSE.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/entity/EntityODSE.java index 1860b7459..44226ed5f 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/entity/EntityODSE.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/entity/EntityODSE.java @@ -21,8 +21,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EntityODSE implements Serializable { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/entity/Role.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/entity/Role.java index 726993585..ec70976c2 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/entity/Role.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/entity/Role.java @@ -21,8 +21,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class Role { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/generic_helper/LocalUidGenerator.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/generic_helper/LocalUidGenerator.java index 37a94b695..28a7609d2 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/generic_helper/LocalUidGenerator.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/generic_helper/LocalUidGenerator.java @@ -18,8 +18,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class LocalUidGenerator { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/generic_helper/PrepareEntity.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/generic_helper/PrepareEntity.java index f8968d5f1..d3bd247a2 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/generic_helper/PrepareEntity.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/generic_helper/PrepareEntity.java @@ -15,8 +15,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PrepareEntity { private String localId = null; private Long addUserId = null; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/generic_helper/StateDefinedFieldData.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/generic_helper/StateDefinedFieldData.java index e1455674e..9184f3e19 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/generic_helper/StateDefinedFieldData.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/generic_helper/StateDefinedFieldData.java @@ -21,8 +21,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class StateDefinedFieldData { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ActIdId.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ActIdId.java index 459aecfcb..ce6638a70 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ActIdId.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ActIdId.java @@ -15,8 +15,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ActIdId implements Serializable { private Long actUid; private Integer actIdSeq; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ActRelationshipId.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ActRelationshipId.java index ea8e095dc..bc8f41e93 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ActRelationshipId.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ActRelationshipId.java @@ -15,8 +15,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ActRelationshipId implements Serializable { private Long sourceActUid; private Long targetActUid; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/EntityIdId.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/EntityIdId.java index f5e4058d3..a404256f0 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/EntityIdId.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/EntityIdId.java @@ -15,8 +15,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EntityIdId implements Serializable { private Long entityUid; private Integer entityIdSeq; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/EntityLocatorParticipationId.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/EntityLocatorParticipationId.java index 9fafce340..8e3635918 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/EntityLocatorParticipationId.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/EntityLocatorParticipationId.java @@ -15,8 +15,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EntityLocatorParticipationId implements Serializable { private Long entityUid; private Long locatorUid; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ManufacturedMaterialId.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ManufacturedMaterialId.java index 0a77c5169..a57e10d82 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ManufacturedMaterialId.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ManufacturedMaterialId.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ManufacturedMaterialId implements Serializable { private Long materialUid; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/NNDActivityLogId.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/NNDActivityLogId.java index b3b018005..996957f7a 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/NNDActivityLogId.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/NNDActivityLogId.java @@ -15,8 +15,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NNDActivityLogId implements Serializable { private Long nndActivityLogUid; private Integer nndActivityLogSeq; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ObsValueCodedId.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ObsValueCodedId.java index 1edf051bd..259144463 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ObsValueCodedId.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ObsValueCodedId.java @@ -15,8 +15,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ObsValueCodedId implements Serializable { private Long observationUid; private String code; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ObsValueDateId.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ObsValueDateId.java index 1ec7f8491..dbda8bca4 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ObsValueDateId.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ObsValueDateId.java @@ -15,8 +15,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ObsValueDateId implements Serializable { private Long observationUid; private Integer obsValueDateSeq; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ObsValueNumericId.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ObsValueNumericId.java index f07fd4f1f..2a0af6942 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ObsValueNumericId.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ObsValueNumericId.java @@ -15,8 +15,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ObsValueNumericId implements Serializable { private Long observationUid; private Integer obsValueNumericSeq; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ObsValueTxtId.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ObsValueTxtId.java index 06f3abec1..0ffb467d3 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ObsValueTxtId.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ObsValueTxtId.java @@ -16,8 +16,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ObsValueTxtId implements Serializable { private Long observationUid; private Integer obsValueTxtSeq; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ObservationInterpId.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ObservationInterpId.java index 7aa61b2f8..8949e1f1d 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ObservationInterpId.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ObservationInterpId.java @@ -16,8 +16,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ObservationInterpId implements Serializable { private Long observationUid; private String interpretationCd; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ObservationReasonId.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ObservationReasonId.java index 5d5ac0bae..d73920c4b 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ObservationReasonId.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ObservationReasonId.java @@ -15,8 +15,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ObservationReasonId implements Serializable { private Long observationUid; private String reasonCd; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/OrganizationHistId.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/OrganizationHistId.java index e4ce2cc66..985df15b9 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/OrganizationHistId.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/OrganizationHistId.java @@ -15,8 +15,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class OrganizationHistId implements Serializable { private Long organizationUid; private int versionCtrlNbr; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/OrganizationNameHistId.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/OrganizationNameHistId.java index b4a413cc9..5bab26db8 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/OrganizationNameHistId.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/OrganizationNameHistId.java @@ -15,8 +15,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class OrganizationNameHistId implements Serializable { private Long organizationUid; private int organizationNameSeq; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/OrganizationNameId.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/OrganizationNameId.java index 306127f73..38a738587 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/OrganizationNameId.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/OrganizationNameId.java @@ -15,8 +15,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class OrganizationNameId implements Serializable { private Long organizationUid; private int organizationNameSeq; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ParticipationHistId.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ParticipationHistId.java index d2228cf0f..2f589e064 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ParticipationHistId.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ParticipationHistId.java @@ -15,8 +15,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ParticipationHistId implements Serializable { private Long subjectEntityUid; private Long actUid; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ParticipationId.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ParticipationId.java index 9279b70a8..7e3813d81 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ParticipationId.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/ParticipationId.java @@ -15,8 +15,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ParticipationId implements Serializable { private Long subjectEntityUid; private Long actUid; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/PersonEthnicGroupId.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/PersonEthnicGroupId.java index a49148ff0..01516d4fa 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/PersonEthnicGroupId.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/PersonEthnicGroupId.java @@ -15,8 +15,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PersonEthnicGroupId implements Serializable { private Long personUid; private String ethnicGroupCd; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/PersonNameId.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/PersonNameId.java index f9bc077d7..3c24e5e63 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/PersonNameId.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/PersonNameId.java @@ -15,8 +15,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PersonNameId implements Serializable { private Long personUid; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/PersonRaceId.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/PersonRaceId.java index 6cb8ccf45..2066bc586 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/PersonRaceId.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/id_class/PersonRaceId.java @@ -15,8 +15,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PersonRaceId implements Serializable { private Long personUid; private String raceCd; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/intervention/Intervention.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/intervention/Intervention.java index 5d6ef129c..a96282b89 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/intervention/Intervention.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/intervention/Intervention.java @@ -21,8 +21,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class Intervention { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/locator/PhysicalLocator.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/locator/PhysicalLocator.java index 8c7dfd4f6..01e978538 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/locator/PhysicalLocator.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/locator/PhysicalLocator.java @@ -21,8 +21,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PhysicalLocator { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/locator/PostalLocator.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/locator/PostalLocator.java index fcdfe96c3..4ebdc300a 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/locator/PostalLocator.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/locator/PostalLocator.java @@ -21,8 +21,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PostalLocator { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/locator/TeleLocator.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/locator/TeleLocator.java index 5885cb176..2d5ed7ada 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/locator/TeleLocator.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/locator/TeleLocator.java @@ -20,8 +20,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class TeleLocator { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/log/EdxActivityDetailLog.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/log/EdxActivityDetailLog.java index bc1033132..58b9def91 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/log/EdxActivityDetailLog.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/log/EdxActivityDetailLog.java @@ -18,8 +18,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EdxActivityDetailLog { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/log/EdxActivityLog.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/log/EdxActivityLog.java index 5bfe5f9cc..9634a4e95 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/log/EdxActivityLog.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/log/EdxActivityLog.java @@ -19,8 +19,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EdxActivityLog { @Id @GeneratedValue( strategy = GenerationType.IDENTITY ) diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/log/MessageLog.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/log/MessageLog.java index b70490aa7..4bb18d69a 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/log/MessageLog.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/log/MessageLog.java @@ -22,8 +22,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class MessageLog { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/log/NNDActivityLog.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/log/NNDActivityLog.java index 4ec52dab1..4d30ac5d6 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/log/NNDActivityLog.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/log/NNDActivityLog.java @@ -20,8 +20,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NNDActivityLog implements Serializable { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/lookup/LookupAnswer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/lookup/LookupAnswer.java index 6f15a5627..dadb24a91 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/lookup/LookupAnswer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/lookup/LookupAnswer.java @@ -18,8 +18,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class LookupAnswer implements Serializable { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/lookup/LookupQuestion.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/lookup/LookupQuestion.java index 7954c3cde..731b6995f 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/lookup/LookupQuestion.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/lookup/LookupQuestion.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class LookupQuestion implements Serializable { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/lookup/LookupQuestionExtended.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/lookup/LookupQuestionExtended.java index f168722f2..a6a679e46 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/lookup/LookupQuestionExtended.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/lookup/LookupQuestionExtended.java @@ -15,8 +15,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class LookupQuestionExtended extends LookupQuestion { private String fromAnsCodeSystemCd; private String toAnsCodeSystemCd; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/matching/EdxEntityMatch.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/matching/EdxEntityMatch.java index 2e6c799c6..eecd1a9ac 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/matching/EdxEntityMatch.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/matching/EdxEntityMatch.java @@ -16,8 +16,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EdxEntityMatch { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/matching/EdxPatientMatch.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/matching/EdxPatientMatch.java index 7074ff902..c266c9db4 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/matching/EdxPatientMatch.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/matching/EdxPatientMatch.java @@ -15,8 +15,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EdxPatientMatch { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/material/ManufacturedMaterial.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/material/ManufacturedMaterial.java index de3f3d99d..b1c00561c 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/material/ManufacturedMaterial.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/material/ManufacturedMaterial.java @@ -19,8 +19,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ManufacturedMaterial { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/material/Material.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/material/Material.java index db90ff5d3..df17e9742 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/material/Material.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/material/Material.java @@ -21,8 +21,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class Material { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/nbs/NbsActEntity.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/nbs/NbsActEntity.java index 9db8b5713..7f2b77932 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/nbs/NbsActEntity.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/nbs/NbsActEntity.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NbsActEntity { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/nbs/NbsActEntityHist.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/nbs/NbsActEntityHist.java index 7180348e9..b46451ed0 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/nbs/NbsActEntityHist.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/nbs/NbsActEntityHist.java @@ -21,8 +21,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NbsActEntityHist { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/nbs/NbsAnswer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/nbs/NbsAnswer.java index c97526efc..49af8ce61 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/nbs/NbsAnswer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/nbs/NbsAnswer.java @@ -20,8 +20,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NbsAnswer { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/nbs/NbsAnswerHist.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/nbs/NbsAnswerHist.java index 3486cd84c..8daf0a3e8 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/nbs/NbsAnswerHist.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/nbs/NbsAnswerHist.java @@ -20,8 +20,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NbsAnswerHist { diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/nbs/NbsCaseAnswer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/nbs/NbsCaseAnswer.java index 3c01ee7c5..2637908e7 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/nbs/NbsCaseAnswer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/nbs/NbsCaseAnswer.java @@ -20,8 +20,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NbsCaseAnswer { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/nbs/NbsDocument.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/nbs/NbsDocument.java index f702d24b0..2663bc93c 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/nbs/NbsDocument.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/nbs/NbsDocument.java @@ -20,8 +20,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NbsDocument { @Id @Column(name = "nbs_document_uid") diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/nbs/NbsDocumentHist.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/nbs/NbsDocumentHist.java index ef4401d69..dce3659e0 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/nbs/NbsDocumentHist.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/nbs/NbsDocumentHist.java @@ -21,8 +21,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NbsDocumentHist { @Id @Column(name = "nbs_document_hist_uid") diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/nbs/NbsNote.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/nbs/NbsNote.java index 77cdabe4b..a70a6f7bd 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/nbs/NbsNote.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/nbs/NbsNote.java @@ -20,8 +20,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NbsNote { @Id @Column(name = "nbs_note_uid") diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/nbs/NbsUiMetaData.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/nbs/NbsUiMetaData.java index dda6be747..2b12cc123 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/nbs/NbsUiMetaData.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/nbs/NbsUiMetaData.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NbsUiMetaData { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/notification/Notification.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/notification/Notification.java index a7c98b32f..27df78b45 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/notification/Notification.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/notification/Notification.java @@ -19,8 +19,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class Notification { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/ObsValueCoded.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/ObsValueCoded.java index 23312d27b..3e3167cf2 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/ObsValueCoded.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/ObsValueCoded.java @@ -20,8 +20,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ObsValueCoded implements Serializable { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/ObsValueDate.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/ObsValueDate.java index 045b76431..1d02fc040 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/ObsValueDate.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/ObsValueDate.java @@ -20,8 +20,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ObsValueDate implements Serializable { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/ObsValueNumeric.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/ObsValueNumeric.java index e2fafc48a..ca4eaf898 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/ObsValueNumeric.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/ObsValueNumeric.java @@ -20,8 +20,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ObsValueNumeric implements Serializable { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/ObsValueTxt.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/ObsValueTxt.java index d3eb21b9a..8ec9b9c73 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/ObsValueTxt.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/ObsValueTxt.java @@ -20,8 +20,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ObsValueTxt implements Serializable { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/Observation.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/Observation.java index f918c66c0..79b3b50d2 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/Observation.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/Observation.java @@ -21,8 +21,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class Observation implements Serializable { protected static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/ObservationBase.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/ObservationBase.java index 5c8f676b7..f25f722bf 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/ObservationBase.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/ObservationBase.java @@ -20,8 +20,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ObservationBase implements Serializable { protected static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/ObservationInterp.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/ObservationInterp.java index f1f1ad27d..32b629b2b 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/ObservationInterp.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/ObservationInterp.java @@ -20,8 +20,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ObservationInterp implements Serializable { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/ObservationReason.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/ObservationReason.java index fa3e82b5f..e3ef81525 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/ObservationReason.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/ObservationReason.java @@ -18,8 +18,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ObservationReason { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/Observation_Lab_Summary_ForWorkUp_New.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/Observation_Lab_Summary_ForWorkUp_New.java index c8bbb00c8..3d381bef0 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/Observation_Lab_Summary_ForWorkUp_New.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/Observation_Lab_Summary_ForWorkUp_New.java @@ -15,8 +15,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class Observation_Lab_Summary_ForWorkUp_New extends ObservationBase { private Long uid; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/Observation_Question.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/Observation_Question.java index 46d5f53f1..6bc9f9352 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/Observation_Question.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/Observation_Question.java @@ -19,8 +19,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class Observation_Question extends ObservationBase{ private Long obsCodeUid; private String code; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/Observation_Summary.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/Observation_Summary.java index c0ec9bd19..c10d2a4ab 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/Observation_Summary.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/observation/Observation_Summary.java @@ -13,8 +13,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class Observation_Summary { private Long uid; private Timestamp addTime; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/organization/Organization.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/organization/Organization.java index 79a44f8cf..ca897fe5a 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/organization/Organization.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/organization/Organization.java @@ -22,8 +22,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class Organization { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/organization/OrganizationHist.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/organization/OrganizationHist.java index e0eae134b..267e08448 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/organization/OrganizationHist.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/organization/OrganizationHist.java @@ -20,8 +20,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class OrganizationHist { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/organization/OrganizationName.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/organization/OrganizationName.java index 7176ee6e6..f5e46f95e 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/organization/OrganizationName.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/organization/OrganizationName.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class OrganizationName { @Id @Column(name = "organization_uid", nullable = false) diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/organization/OrganizationNameHist.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/organization/OrganizationNameHist.java index db90b4a21..4536371e3 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/organization/OrganizationNameHist.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/organization/OrganizationNameHist.java @@ -18,8 +18,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class OrganizationNameHist { // @EmbeddedId // private OrganizationNameHistId id; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/participation/Participation.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/participation/Participation.java index f3935e5b1..142328415 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/participation/Participation.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/participation/Participation.java @@ -19,8 +19,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class Participation { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/participation/ParticipationHist.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/participation/ParticipationHist.java index 8f568d0a2..01403cee9 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/participation/ParticipationHist.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/participation/ParticipationHist.java @@ -20,8 +20,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ParticipationHist implements Serializable { private static final long serialVersionUID = 1L; @Column(name = "subject_entity_uid") diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/person/Person.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/person/Person.java index d019037d5..6b1271d71 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/person/Person.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/person/Person.java @@ -24,8 +24,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class Person { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/person/PersonEthnicGroup.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/person/PersonEthnicGroup.java index 1a1bed09e..e873f4704 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/person/PersonEthnicGroup.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/person/PersonEthnicGroup.java @@ -21,8 +21,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PersonEthnicGroup { @Column(name = "person_uid", nullable = false) diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/person/PersonName.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/person/PersonName.java index f125b0740..d50b2037f 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/person/PersonName.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/person/PersonName.java @@ -21,8 +21,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PersonName { @Id @Column(name = "person_uid") diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/person/PersonRace.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/person/PersonRace.java index 7240cdd2d..add67d484 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/person/PersonRace.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/person/PersonRace.java @@ -21,8 +21,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PersonRace { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/phc/CaseManagement.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/phc/CaseManagement.java index b8fd7ebcf..b16eaa716 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/phc/CaseManagement.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/phc/CaseManagement.java @@ -22,8 +22,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class CaseManagement { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/phc/ClinicalDocument.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/phc/ClinicalDocument.java index a4e8bc3e1..bab712722 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/phc/ClinicalDocument.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/phc/ClinicalDocument.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ClinicalDocument implements Serializable { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/phc/ConfirmationMethod.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/phc/ConfirmationMethod.java index 6b8848abd..70778ad3e 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/phc/ConfirmationMethod.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/phc/ConfirmationMethod.java @@ -20,8 +20,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ConfirmationMethod { @Id @Column(name = "public_health_case_uid") diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/phc/EntityGroup.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/phc/EntityGroup.java index b5eb12ab7..1bfbf2838 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/phc/EntityGroup.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/phc/EntityGroup.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EntityGroup { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/phc/NonPersonLivingSubject.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/phc/NonPersonLivingSubject.java index fa362d917..203e04e3a 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/phc/NonPersonLivingSubject.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/phc/NonPersonLivingSubject.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NonPersonLivingSubject { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/phc/PatientEncounter.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/phc/PatientEncounter.java index 87e91f685..d89a11959 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/phc/PatientEncounter.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/phc/PatientEncounter.java @@ -18,8 +18,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PatientEncounter implements Serializable { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/phc/Place.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/phc/Place.java index 8fe70b6f9..992bd9634 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/phc/Place.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/phc/Place.java @@ -18,8 +18,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class Place implements Serializable { private static final long serialVersionUID = 1L; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/phc/PublicHealthCase.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/phc/PublicHealthCase.java index a600bf3b6..b57a7179a 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/phc/PublicHealthCase.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/phc/PublicHealthCase.java @@ -23,8 +23,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PublicHealthCase { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/phc/Referral.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/phc/Referral.java index 1543e5bb9..328583b1f 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/phc/Referral.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/phc/Referral.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class Referral { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/question/QuestionMetadata.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/question/QuestionMetadata.java index ea8d7e9e1..b4dac17fb 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/question/QuestionMetadata.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/question/QuestionMetadata.java @@ -15,8 +15,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class QuestionMetadata { private Long nbsQuestionUid; private Timestamp addTime; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/question/WAQuestion.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/question/WAQuestion.java index f7464e344..ff07178fc 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/question/WAQuestion.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/model/question/WAQuestion.java @@ -19,8 +19,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class WAQuestion { @Id @Column(name = "wa_question_uid") diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/CustomAuthUserRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/CustomAuthUserRepository.java index c83d0bed6..383b3c19f 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/CustomAuthUserRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/CustomAuthUserRepository.java @@ -5,6 +5,24 @@ import java.util.Collection; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface CustomAuthUserRepository { Collection getAuthUserRealizedRole(String userId); } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/CustomAuthUserRepositoryImpl.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/CustomAuthUserRepositoryImpl.java index 1347f48a6..6ba27c4e0 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/CustomAuthUserRepositoryImpl.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/CustomAuthUserRepositoryImpl.java @@ -19,9 +19,17 @@ 1141 - Nested complaint 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class CustomAuthUserRepositoryImpl implements CustomAuthUserRepository { @PersistenceContext(unitName = "odse") private EntityManager entityManager; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/CustomNbsQuestionRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/CustomNbsQuestionRepository.java index e79fd0ef8..60c056a0e 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/CustomNbsQuestionRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/CustomNbsQuestionRepository.java @@ -6,6 +6,24 @@ import java.util.Collection; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface CustomNbsQuestionRepository { Collection retrieveQuestionRequiredNnd(String formCd); } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/CustomNbsQuestionRepositoryImpl.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/CustomNbsQuestionRepositoryImpl.java index 6b700381a..d0b4fc786 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/CustomNbsQuestionRepositoryImpl.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/CustomNbsQuestionRepositoryImpl.java @@ -19,8 +19,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class CustomNbsQuestionRepositoryImpl implements CustomNbsQuestionRepository { @PersistenceContext(unitName = "odse") private EntityManager entityManager; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/CustomRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/CustomRepository.java index 7d1256bab..40b9e944c 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/CustomRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/CustomRepository.java @@ -13,6 +13,24 @@ import java.util.Map; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface CustomRepository { Collection getContactByPatientInfo(String queryString); Map getLabParticipations(Long observationUID); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/CustomRepositoryImpl.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/CustomRepositoryImpl.java index 844c5b72a..fd07752ce 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/CustomRepositoryImpl.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/CustomRepositoryImpl.java @@ -30,8 +30,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class CustomRepositoryImpl implements CustomRepository { @PersistenceContext(unitName = "odse") protected EntityManager entityManager; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/act/ActIdRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/act/ActIdRepository.java index 90f43be13..eacf576f4 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/act/ActIdRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/act/ActIdRepository.java @@ -10,6 +10,24 @@ import java.util.Optional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface ActIdRepository extends JpaRepository { @Query("SELECT data FROM ActId data WHERE data.actUid = :uid") Optional> findRecordsById(@Param("uid") Long uid); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/act/ActLocatorParticipationRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/act/ActLocatorParticipationRepository.java index 747380c61..a72dd1e68 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/act/ActLocatorParticipationRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/act/ActLocatorParticipationRepository.java @@ -9,6 +9,24 @@ import java.util.Collection; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface ActLocatorParticipationRepository extends JpaRepository { @Query("SELECT data FROM ActLocatorParticipation data WHERE data.actUid = :uid") Collection findRecordsById(@Param("uid") Long uid); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/act/ActRelationshipHistoryRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/act/ActRelationshipHistoryRepository.java index 63dcbe975..758a3723a 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/act/ActRelationshipHistoryRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/act/ActRelationshipHistoryRepository.java @@ -5,5 +5,23 @@ import org.springframework.stereotype.Repository; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface ActRelationshipHistoryRepository extends JpaRepository { } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/act/ActRelationshipRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/act/ActRelationshipRepository.java index d6daef487..1313dfeac 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/act/ActRelationshipRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/act/ActRelationshipRepository.java @@ -11,6 +11,24 @@ import java.util.Optional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface ActRelationshipRepository extends JpaRepository { @Query("SELECT data FROM ActRelationship data WHERE data.targetActUid = :uid") Optional> findRecordsByActUid(@Param("uid") Long uid); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/act/ActRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/act/ActRepository.java index aea808430..8303728af 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/act/ActRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/act/ActRepository.java @@ -5,5 +5,23 @@ import org.springframework.stereotype.Repository; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface ActRepository extends JpaRepository { } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/act/NbsActEntityHistRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/act/NbsActEntityHistRepository.java index 8d2e3df73..72cc080aa 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/act/NbsActEntityHistRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/act/NbsActEntityHistRepository.java @@ -5,5 +5,23 @@ import org.springframework.stereotype.Repository; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface NbsActEntityHistRepository extends JpaRepository { } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/act/NbsActEntityRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/act/NbsActEntityRepository.java index e8a91ac00..074f2705c 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/act/NbsActEntityRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/act/NbsActEntityRepository.java @@ -10,6 +10,24 @@ import java.util.Optional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface NbsActEntityRepository extends JpaRepository { /** * private final String SELECT_ACT_ENTITY_COLLECTION="SELECT nbs_act_entity_uid \"nbsActEntityUid\", add_time \"addTime\", add_user_id \"addUserId\", last_chg_time \"lastChgTime\", last_chg_user_id \"lastChgUserId\", act_uid \"actUid\", entity_uid \"entityUid\", type_cd \"typeCd\", entity_version_ctrl_nbr \"entityVersionCtrlNbr\" diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/act/WAQuestionRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/act/WAQuestionRepository.java index c011b606d..f8f72416b 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/act/WAQuestionRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/act/WAQuestionRepository.java @@ -10,6 +10,24 @@ import java.util.Optional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface WAQuestionRepository extends JpaRepository { @Query(value = ComplexQueries.GENERIC_QUESTION_OID_METADATA_SQL, nativeQuery = true) Optional> findGenericQuestionMetaData(); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/auth/AuthUserRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/auth/AuthUserRepository.java index a3e182124..040653963 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/auth/AuthUserRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/auth/AuthUserRepository.java @@ -9,6 +9,24 @@ import java.util.Optional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface AuthUserRepository extends JpaRepository { @Query("SELECT data FROM AuthUser data WHERE data.userId = :userId") Optional findAuthUserByUserId(@Param("userId") String userId); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/dsm/DsmAlgorithmRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/dsm/DsmAlgorithmRepository.java index 01b1be002..ab4748866 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/dsm/DsmAlgorithmRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/dsm/DsmAlgorithmRepository.java @@ -10,6 +10,24 @@ import java.util.Optional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface DsmAlgorithmRepository extends JpaRepository { // SELECT_DSM_ALGORITHM_LIST ="SELECT dsm_algorithm_uid \"dsmAlgorithmUid\", algorithm_nm \"algorithmNm\", event_type \"eventType\", condition_list \"conditionList\", frequency \"frequency\" , apply_to \"applyTo\", sending_system_list \"sendingSystemList\", reporting_system_list \"reportingSystemList\", event_action \"eventAction\"," diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/edx/EdxDocumentRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/edx/EdxDocumentRepository.java index 011637f18..a30acfceb 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/edx/EdxDocumentRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/edx/EdxDocumentRepository.java @@ -11,6 +11,24 @@ @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface EdxDocumentRepository extends JpaRepository { /* * String SELECT_EDX_DOCUMENT_COLLECTION = "SELECT EDX_Document_uid \"eDXDocumentUid\", act_uid \"actUid\", diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/edx/EdxEventProcessRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/edx/EdxEventProcessRepository.java index 66542e52b..55cae78db 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/edx/EdxEventProcessRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/edx/EdxEventProcessRepository.java @@ -5,5 +5,23 @@ import org.springframework.stereotype.Repository; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface EdxEventProcessRepository extends JpaRepository { } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/entity/EntityIdRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/entity/EntityIdRepository.java index f938c090d..e2270f2df 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/entity/EntityIdRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/entity/EntityIdRepository.java @@ -12,6 +12,24 @@ import java.util.Optional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface EntityIdRepository extends JpaRepository { @Query("SELECT pn FROM EntityId pn WHERE pn.entityUid = :parentUid") Optional> findByParentUid(@Param("parentUid") Long parentUid); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/entity/EntityLocatorParticipationRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/entity/EntityLocatorParticipationRepository.java index c9c98dafa..68af8e9f8 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/entity/EntityLocatorParticipationRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/entity/EntityLocatorParticipationRepository.java @@ -11,6 +11,24 @@ import java.util.Optional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface EntityLocatorParticipationRepository extends JpaRepository { @Query("SELECT pn FROM EntityLocatorParticipation pn WHERE pn.entityUid = :parentUid") Optional> findByParentUid(@Param("parentUid") Long parentUid); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/entity/EntityRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/entity/EntityRepository.java index a1df0ac4a..5ab609edc 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/entity/EntityRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/entity/EntityRepository.java @@ -5,5 +5,23 @@ import org.springframework.stereotype.Repository; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface EntityRepository extends JpaRepository { } \ No newline at end of file diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/locator/LocalUidGeneratorRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/locator/LocalUidGeneratorRepository.java index 938ed0e29..c371a3fdb 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/locator/LocalUidGeneratorRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/locator/LocalUidGeneratorRepository.java @@ -8,6 +8,24 @@ import java.util.Optional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface LocalUidGeneratorRepository extends JpaRepository { @Query("select lug from LocalUidGenerator lug where lug.classNameCd = :id") Optional findByIdForUpdate(String id); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/locator/PhysicalLocatorRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/locator/PhysicalLocatorRepository.java index 9911ba5d0..4f3a850a3 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/locator/PhysicalLocatorRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/locator/PhysicalLocatorRepository.java @@ -10,6 +10,24 @@ import java.util.Optional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface PhysicalLocatorRepository extends JpaRepository { @Query(value = "SELECT x FROM PhysicalLocator x WHERE x.physicalLocatorUid IN :uids", nativeQuery = false) Optional> findByPhysicalLocatorUids(@Param("uids") List uids); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/locator/PostalLocatorRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/locator/PostalLocatorRepository.java index 95d1fdea4..87f09a7b0 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/locator/PostalLocatorRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/locator/PostalLocatorRepository.java @@ -11,6 +11,24 @@ import java.util.Optional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface PostalLocatorRepository extends JpaRepository { @Query(value = "SELECT x FROM PostalLocator x WHERE x.postalLocatorUid IN :uids", nativeQuery = false) Optional> findByPostalLocatorUids(@Param("uids") List uids); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/locator/TeleLocatorRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/locator/TeleLocatorRepository.java index 515c694c1..e415f0820 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/locator/TeleLocatorRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/locator/TeleLocatorRepository.java @@ -10,6 +10,24 @@ import java.util.Optional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface TeleLocatorRepository extends JpaRepository { @Query(value = "SELECT x FROM TeleLocator x WHERE x.teleLocatorUid IN :uids", nativeQuery = false) Optional> findByTeleLocatorUids(@Param("uids") List uids); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/log/EdxActivityDetailLogRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/log/EdxActivityDetailLogRepository.java index d5a3b3cfd..afa4e372e 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/log/EdxActivityDetailLogRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/log/EdxActivityDetailLogRepository.java @@ -9,6 +9,24 @@ import java.util.List; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface EdxActivityDetailLogRepository extends JpaRepository { @Query(value = "SELECT edx_activity_detail_log_uid FROM NBS_ODSE.dbo.EDX_activity_detail_log WHERE edx_activity_log_uid = :edxActivityLogUid AND log_comment = :logComment", nativeQuery = true) List findIdsByEdxActivityLogUidAndLogComment(@Param("edxActivityLogUid") Long edxActivityLogUid, @Param("logComment") String logComment); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/log/EdxActivityLogRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/log/EdxActivityLogRepository.java index cae8a6b11..51ca565f3 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/log/EdxActivityLogRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/log/EdxActivityLogRepository.java @@ -7,6 +7,24 @@ import java.util.Optional; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface EdxActivityLogRepository extends JpaRepository { @Query("SELECT eal FROM EdxActivityLog eal WHERE eal.sourceUid = :sourceUid") diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/log/MessageLogRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/log/MessageLogRepository.java index ba726ab5d..778fbf258 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/log/MessageLogRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/log/MessageLogRepository.java @@ -5,5 +5,23 @@ import org.springframework.stereotype.Repository; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface MessageLogRepository extends JpaRepository { } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/log/NNDActivityLogRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/log/NNDActivityLogRepository.java index e325fd4ce..097a07f72 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/log/NNDActivityLogRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/log/NNDActivityLogRepository.java @@ -3,5 +3,23 @@ import gov.cdc.dataprocessing.repository.nbs.odse.model.log.NNDActivityLog; import org.springframework.data.jpa.repository.JpaRepository; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface NNDActivityLogRepository extends JpaRepository { } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/lookup/LookupMappingRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/lookup/LookupMappingRepository.java index 388d0dfb2..32b540a9c 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/lookup/LookupMappingRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/lookup/LookupMappingRepository.java @@ -10,6 +10,24 @@ import java.util.Optional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface LookupMappingRepository extends JpaRepository { @Query(value = "SELECT " + " LOOKUP_QUESTION.*, " + diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/matching/EdxEntityMatchRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/matching/EdxEntityMatchRepository.java index 4eb604791..18c1831a8 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/matching/EdxEntityMatchRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/matching/EdxEntityMatchRepository.java @@ -5,6 +5,24 @@ import org.springframework.stereotype.Repository; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface EdxEntityMatchRepository extends JpaRepository { } \ No newline at end of file diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/matching/EdxPatientMatchRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/matching/EdxPatientMatchRepository.java index edadbc91a..7784182f9 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/matching/EdxPatientMatchRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/matching/EdxPatientMatchRepository.java @@ -8,6 +8,24 @@ import org.springframework.transaction.annotation.Transactional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface EdxPatientMatchRepository extends JpaRepository { @Transactional @Modifying diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/material/ManufacturedMaterialRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/material/ManufacturedMaterialRepository.java index c2a9aa778..2df816ad8 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/material/ManufacturedMaterialRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/material/ManufacturedMaterialRepository.java @@ -8,6 +8,24 @@ import java.util.List; import java.util.Optional; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface ManufacturedMaterialRepository extends JpaRepository { @Query("SELECT data FROM ManufacturedMaterial data WHERE data.materialUid = :parentUid") Optional> findByParentUid(@Param("parentUid") Long parentUid); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/material/MaterialRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/material/MaterialRepository.java index c875266c3..ae1634d09 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/material/MaterialRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/material/MaterialRepository.java @@ -5,5 +5,23 @@ import org.springframework.stereotype.Repository; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface MaterialRepository extends JpaRepository { } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/nbs/NbsAnswerHistRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/nbs/NbsAnswerHistRepository.java index a7a636b7b..72752ff9d 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/nbs/NbsAnswerHistRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/nbs/NbsAnswerHistRepository.java @@ -5,5 +5,23 @@ import org.springframework.stereotype.Repository; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface NbsAnswerHistRepository extends JpaRepository { } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/nbs/NbsAnswerRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/nbs/NbsAnswerRepository.java index 814d27e58..5bddfbd86 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/nbs/NbsAnswerRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/nbs/NbsAnswerRepository.java @@ -10,6 +10,24 @@ import java.util.Optional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface NbsAnswerRepository extends JpaRepository { /** * diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/nbs/NbsCaseAnswerRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/nbs/NbsCaseAnswerRepository.java index 3533b89fe..b5351975d 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/nbs/NbsCaseAnswerRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/nbs/NbsCaseAnswerRepository.java @@ -10,6 +10,24 @@ import java.util.Optional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface NbsCaseAnswerRepository extends JpaRepository { // private final String SELECT_NBS_ANSWER_COLLECTION = "SELECT nbs_case_answer_uid \"nbsCaseAnswerUid\", seq_nbr \"seqNbr\", add_time \"addTime\", add_user_id \"addUserId\", answer_txt \"answerTxt\", last_chg_time \"lastChgTime\", last_chg_user_id \"lastChgUserId\", nbs_question_uid \"nbsQuestionUid\", act_uid \"actUid\", nbs_question_version_ctrl_nbr \"nbsQuestionVersionCtrlNbr\", answer_large_txt \"answerLargeTxt\",nbs_table_metadata_uid \"nbsTableMetadataUid\", answer_group_seq_nbr \"answerGroupSeqNbr\" FROM " diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/nbs/NbsDocumentHistRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/nbs/NbsDocumentHistRepository.java index b3a346307..157911e14 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/nbs/NbsDocumentHistRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/nbs/NbsDocumentHistRepository.java @@ -5,5 +5,23 @@ import org.springframework.stereotype.Repository; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface NbsDocumentHistRepository extends JpaRepository { } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/nbs/NbsDocumentRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/nbs/NbsDocumentRepository.java index 7f18d4986..a457e36f8 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/nbs/NbsDocumentRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/nbs/NbsDocumentRepository.java @@ -5,5 +5,23 @@ import org.springframework.stereotype.Repository; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface NbsDocumentRepository extends JpaRepository { } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/nbs/NbsNoteRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/nbs/NbsNoteRepository.java index 4ac805855..0c78df352 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/nbs/NbsNoteRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/nbs/NbsNoteRepository.java @@ -5,5 +5,23 @@ import org.springframework.stereotype.Repository; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface NbsNoteRepository extends JpaRepository { } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/nbs/NbsUiMetaDataRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/nbs/NbsUiMetaDataRepository.java index e47254b62..c58c56fc2 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/nbs/NbsUiMetaDataRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/nbs/NbsUiMetaDataRepository.java @@ -11,6 +11,24 @@ import java.util.Optional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface NbsUiMetaDataRepository extends JpaRepository { @Query(value = ComplexQueries.DMB_QUESTION_OID_METADATA_SQL, nativeQuery = true) Optional> findDmbQuestionMetaData(); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/notification/NotificationRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/notification/NotificationRepository.java index dad4a0253..80f7cb939 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/notification/NotificationRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/notification/NotificationRepository.java @@ -8,6 +8,24 @@ @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface NotificationRepository extends JpaRepository { @Query("SELECT COUNT(*) " + diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/observation/ObsValueCodedRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/observation/ObsValueCodedRepository.java index 59ba07ede..0bfc59bea 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/observation/ObsValueCodedRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/observation/ObsValueCodedRepository.java @@ -9,6 +9,24 @@ import java.util.Collection; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface ObsValueCodedRepository extends JpaRepository { @Query("SELECT data FROM ObsValueCoded data WHERE data.observationUid = :uid") Collection findRecordsById(@Param("uid") Long uid); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/observation/ObsValueDateRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/observation/ObsValueDateRepository.java index c8255f342..728c9489e 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/observation/ObsValueDateRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/observation/ObsValueDateRepository.java @@ -9,6 +9,24 @@ import java.util.Collection; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface ObsValueDateRepository extends JpaRepository { @Query("SELECT data FROM ObsValueDate data WHERE data.observationUid = :uid") Collection findRecordsById(@Param("uid") Long uid); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/observation/ObsValueNumericRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/observation/ObsValueNumericRepository.java index b38c9b79a..e5cd1fd29 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/observation/ObsValueNumericRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/observation/ObsValueNumericRepository.java @@ -9,6 +9,24 @@ import java.util.Collection; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface ObsValueNumericRepository extends JpaRepository { @Query("SELECT data FROM ObsValueNumeric data WHERE data.observationUid = :uid") Collection findRecordsById(@Param("uid") Long uid); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/observation/ObsValueTxtRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/observation/ObsValueTxtRepository.java index 02ec19e03..7573b834c 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/observation/ObsValueTxtRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/observation/ObsValueTxtRepository.java @@ -9,6 +9,24 @@ import java.util.Collection; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface ObsValueTxtRepository extends JpaRepository { @Query("SELECT data FROM ObsValueTxt data WHERE data.observationUid = :uid") Collection findRecordsById(@Param("uid") Long uid); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/observation/ObservationInterpRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/observation/ObservationInterpRepository.java index b3d163bc4..d1973b87c 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/observation/ObservationInterpRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/observation/ObservationInterpRepository.java @@ -9,6 +9,24 @@ import java.util.Collection; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface ObservationInterpRepository extends JpaRepository { @Query("SELECT data FROM ObservationInterp data WHERE data.observationUid = :uid") Collection findRecordsById(@Param("uid") Long uid); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/observation/ObservationReasonRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/observation/ObservationReasonRepository.java index 384a1166c..002888077 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/observation/ObservationReasonRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/observation/ObservationReasonRepository.java @@ -9,6 +9,24 @@ import java.util.Collection; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface ObservationReasonRepository extends JpaRepository { /** * public static final String SELECT_OBSERVATION_REASONS = diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/observation/ObservationRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/observation/ObservationRepository.java index 53b934aa4..ad71e92de 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/observation/ObservationRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/observation/ObservationRepository.java @@ -11,6 +11,24 @@ import java.util.Optional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface ObservationRepository extends JpaRepository { @Query(value = ComplexQueries.RETRIEVE_OBSERVATION_QUESTION_SQL, nativeQuery = true) diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/observation/Observation_SummaryRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/observation/Observation_SummaryRepository.java index 58f7469dc..d76f53d0c 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/observation/Observation_SummaryRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/observation/Observation_SummaryRepository.java @@ -6,6 +6,24 @@ import java.util.Collection; import java.util.Optional; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface Observation_SummaryRepository { Collection findAllActiveLabReportUidListForManage(Long investigationUid, String whereClause); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/observation/implementation/Observation_SummaryRepositoryImpl.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/observation/implementation/Observation_SummaryRepositoryImpl.java index 94b9b4f70..03bb1862c 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/observation/implementation/Observation_SummaryRepositoryImpl.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/observation/implementation/Observation_SummaryRepositoryImpl.java @@ -26,8 +26,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class Observation_SummaryRepositoryImpl implements Observation_SummaryRepository { @PersistenceContext(unitName = "odse") diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/organization/OrganizationHistRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/organization/OrganizationHistRepository.java index a6d3fd4d0..09bbbbe72 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/organization/OrganizationHistRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/organization/OrganizationHistRepository.java @@ -4,5 +4,23 @@ import gov.cdc.dataprocessing.repository.nbs.odse.model.organization.OrganizationHist; import org.springframework.data.jpa.repository.JpaRepository; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface OrganizationHistRepository extends JpaRepository { } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/organization/OrganizationNameHistRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/organization/OrganizationNameHistRepository.java index 706d64249..c4a7ad8a4 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/organization/OrganizationNameHistRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/organization/OrganizationNameHistRepository.java @@ -4,5 +4,23 @@ import gov.cdc.dataprocessing.repository.nbs.odse.model.organization.OrganizationNameHist; import org.springframework.data.jpa.repository.JpaRepository; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface OrganizationNameHistRepository extends JpaRepository { } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/organization/OrganizationNameRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/organization/OrganizationNameRepository.java index e26fb3509..c9c7df288 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/organization/OrganizationNameRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/organization/OrganizationNameRepository.java @@ -9,6 +9,24 @@ import java.util.Optional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface OrganizationNameRepository extends JpaRepository { Optional> findByOrganizationUid(long organizationUID); } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/organization/OrganizationRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/organization/OrganizationRepository.java index cdfa0fbd4..e1824a7c9 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/organization/OrganizationRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/organization/OrganizationRepository.java @@ -4,6 +4,24 @@ import org.springframework.stereotype.Repository; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface OrganizationRepository extends JpaRepository { } \ No newline at end of file diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/participation/ParticipationHistRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/participation/ParticipationHistRepository.java index 0029f413b..1e75557c4 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/participation/ParticipationHistRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/participation/ParticipationHistRepository.java @@ -10,6 +10,24 @@ import java.util.Optional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface ParticipationHistRepository extends JpaRepository { @Query("SELECT data.versionCtrlNbr FROM ParticipationHist data WHERE data.subjectEntityUid = ?1 AND data.actUid = ?2 AND data.typeCd = ?3") Optional> findVerNumberByKey(Long subjectEntityUid, Long actUid, String typeCd); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/participation/ParticipationRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/participation/ParticipationRepository.java index efc558ca1..41e23f1d0 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/participation/ParticipationRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/participation/ParticipationRepository.java @@ -14,6 +14,24 @@ @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface ParticipationRepository extends JpaRepository { @Query("SELECT data FROM Participation data WHERE data.actUid = :uid") Optional> findByActUid(@Param("uid") Long uid); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/person/PersonEthnicRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/person/PersonEthnicRepository.java index 677c4608e..5436d6cf0 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/person/PersonEthnicRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/person/PersonEthnicRepository.java @@ -10,6 +10,24 @@ import java.util.Optional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface PersonEthnicRepository extends JpaRepository { @Query("SELECT pn FROM PersonEthnicGroup pn WHERE pn.personUid = :parentUid") Optional> findByParentUid(@Param("parentUid") Long parentUid); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/person/PersonNameRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/person/PersonNameRepository.java index 40aee6779..379d89d04 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/person/PersonNameRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/person/PersonNameRepository.java @@ -12,6 +12,24 @@ import java.util.Optional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface PersonNameRepository extends JpaRepository { @Query("SELECT pn FROM PersonName pn WHERE pn.personUid = :parentUid") Optional> findByParentUid(@Param("parentUid") Long parentUid); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/person/PersonRaceRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/person/PersonRaceRepository.java index c19367ee6..3668c4c53 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/person/PersonRaceRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/person/PersonRaceRepository.java @@ -13,6 +13,24 @@ import java.util.Optional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface PersonRaceRepository extends JpaRepository { @Query("SELECT pn FROM PersonRace pn WHERE pn.personUid = :parentUid") Optional> findByParentUid(@Param("parentUid") Long parentUid); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/person/PersonRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/person/PersonRepository.java index 7f970b4cb..a0138c480 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/person/PersonRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/person/PersonRepository.java @@ -12,6 +12,24 @@ import java.util.Optional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface PersonRepository extends JpaRepository { @Query("SELECT pn FROM Person pn WHERE pn.personParentUid = :parentUid") Optional> findByParentUid(@Param("parentUid") Long parentUid); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/phc/CaseManagementRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/phc/CaseManagementRepository.java index 45c859d66..b2f32c719 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/phc/CaseManagementRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/phc/CaseManagementRepository.java @@ -10,6 +10,24 @@ import java.util.Optional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface CaseManagementRepository extends JpaRepository { @Query("SELECT data FROM CaseManagement data WHERE data.publicHealthCaseUid = :uid") Optional> findRecordsByPhcUid(@Param("uid") Long phcUid); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/phc/ClinicalDocumentRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/phc/ClinicalDocumentRepository.java index a2661a0f1..651031e37 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/phc/ClinicalDocumentRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/phc/ClinicalDocumentRepository.java @@ -5,6 +5,24 @@ import org.springframework.stereotype.Repository; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface ClinicalDocumentRepository extends JpaRepository { } \ No newline at end of file diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/phc/ConfirmationMethodRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/phc/ConfirmationMethodRepository.java index 698531816..2d4dd8d1b 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/phc/ConfirmationMethodRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/phc/ConfirmationMethodRepository.java @@ -10,6 +10,24 @@ import java.util.Optional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface ConfirmationMethodRepository extends JpaRepository { @Query("SELECT data FROM ConfirmationMethod data WHERE data.publicHealthCaseUid = :uid") Optional> findRecordsByPhcUid(@Param("uid") Long phcUid); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/phc/EntityGroupRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/phc/EntityGroupRepository.java index bcbc5f42d..ba0c48f42 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/phc/EntityGroupRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/phc/EntityGroupRepository.java @@ -5,5 +5,23 @@ import org.springframework.stereotype.Repository; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface EntityGroupRepository extends JpaRepository { } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/phc/NonPersonLivingSubjectRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/phc/NonPersonLivingSubjectRepository.java index 4776a8b90..d80f8dedf 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/phc/NonPersonLivingSubjectRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/phc/NonPersonLivingSubjectRepository.java @@ -5,5 +5,23 @@ import org.springframework.stereotype.Repository; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface NonPersonLivingSubjectRepository extends JpaRepository { } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/phc/PatientEncounterRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/phc/PatientEncounterRepository.java index 62923b053..db8401efa 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/phc/PatientEncounterRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/phc/PatientEncounterRepository.java @@ -5,5 +5,23 @@ import org.springframework.stereotype.Repository; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface PatientEncounterRepository extends JpaRepository { } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/phc/PlaceRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/phc/PlaceRepository.java index fe9315d8b..60d31d6f2 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/phc/PlaceRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/phc/PlaceRepository.java @@ -5,5 +5,23 @@ import org.springframework.stereotype.Repository; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface PlaceRepository extends JpaRepository { } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/phc/PublicHealthCaseRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/phc/PublicHealthCaseRepository.java index 536901600..bd09a89ff 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/phc/PublicHealthCaseRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/phc/PublicHealthCaseRepository.java @@ -5,5 +5,23 @@ import org.springframework.stereotype.Repository; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface PublicHealthCaseRepository extends JpaRepository { } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/phc/ReferralRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/phc/ReferralRepository.java index 535aed336..c872898c1 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/phc/ReferralRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/phc/ReferralRepository.java @@ -5,6 +5,24 @@ import org.springframework.stereotype.Repository; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface ReferralRepository extends JpaRepository { } \ No newline at end of file diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/role/RoleRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/role/RoleRepository.java index af65fb375..c16876f58 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/role/RoleRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/role/RoleRepository.java @@ -12,6 +12,24 @@ import java.util.Optional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface RoleRepository extends JpaRepository { @Query("SELECT pn FROM Role pn WHERE pn.subjectEntityUid = :parentUid") Optional> findByParentUid(@Param("parentUid") Long parentUid); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/stored_proc/EdxPatientMatchStoredProcRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/stored_proc/EdxPatientMatchStoredProcRepository.java index d06a8eef9..ba8807db8 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/stored_proc/EdxPatientMatchStoredProcRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/stored_proc/EdxPatientMatchStoredProcRepository.java @@ -19,8 +19,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EdxPatientMatchStoredProcRepository { @PersistenceContext(unitName = "odseEntityManagerFactory") // Specify the persistence unit name private EntityManager entityManager; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/stored_proc/ParticipationStoredProcRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/stored_proc/ParticipationStoredProcRepository.java index 7081157d6..8fda16907 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/stored_proc/ParticipationStoredProcRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/stored_proc/ParticipationStoredProcRepository.java @@ -5,6 +5,8 @@ import jakarta.persistence.ParameterMode; import jakarta.persistence.PersistenceContext; import jakarta.persistence.StoredProcedureQuery; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.stereotype.Repository; import java.sql.Timestamp; @@ -18,9 +20,12 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ParticipationStoredProcRepository { + private static final Logger logger = LoggerFactory.getLogger(ParticipationStoredProcRepository.class); // NOSONAR + @PersistenceContext(unitName = "odseEntityManagerFactory") // Specify the persistence unit name private EntityManager entityManager; @@ -92,7 +97,7 @@ public void insertParticipation(ParticipationDto participationDto) { } catch (Exception e) { - e.printStackTrace(); + logger.info(e.getMessage()); } } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/stored_proc/PrepareEntityStoredProcRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/stored_proc/PrepareEntityStoredProcRepository.java index 75f8b8c60..9d5db4324 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/stored_proc/PrepareEntityStoredProcRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/stored_proc/PrepareEntityStoredProcRepository.java @@ -19,8 +19,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PrepareEntityStoredProcRepository { @PersistenceContext(unitName = "odseEntityManagerFactory") // Specify the persistence unit name private EntityManager entityManager; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/stored_proc/ProgAreaSnomeCodeStoredProcRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/stored_proc/ProgAreaSnomeCodeStoredProcRepository.java index 93851ea00..a99f5be7d 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/stored_proc/ProgAreaSnomeCodeStoredProcRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/stored_proc/ProgAreaSnomeCodeStoredProcRepository.java @@ -22,8 +22,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ProgAreaSnomeCodeStoredProcRepository { @PersistenceContext(unitName = "odseEntityManagerFactory") // Specify the persistence unit name diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/stored_proc/PublicHealthCaseStoredProcRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/stored_proc/PublicHealthCaseStoredProcRepository.java index d0b7d3cbb..1536a0610 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/stored_proc/PublicHealthCaseStoredProcRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/odse/repos/stored_proc/PublicHealthCaseStoredProcRepository.java @@ -23,8 +23,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PublicHealthCaseStoredProcRepository { @PersistenceContext(unitName = "odseEntityManagerFactory") // Specify the persistence unit name diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/BaseConditionCode.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/BaseConditionCode.java index d4a7223cf..013ac9f9e 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/BaseConditionCode.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/BaseConditionCode.java @@ -20,8 +20,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class BaseConditionCode { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/CityCodeValue.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/CityCodeValue.java index 66b6594ef..5ae77d940 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/CityCodeValue.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/CityCodeValue.java @@ -19,8 +19,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class CityCodeValue { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/CodeValueGeneral.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/CodeValueGeneral.java index 2f0fe1419..2cc4e2261 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/CodeValueGeneral.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/CodeValueGeneral.java @@ -19,8 +19,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class CodeValueGeneral { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/ConditionCode.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/ConditionCode.java index 9ca1ba3a2..1e5063eec 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/ConditionCode.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/ConditionCode.java @@ -15,7 +15,8 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ConditionCode extends BaseConditionCode { } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/ConditionCodeWithPA.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/ConditionCodeWithPA.java index 5f1c1d937..863c0f160 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/ConditionCodeWithPA.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/ConditionCodeWithPA.java @@ -19,8 +19,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ConditionCodeWithPA extends BaseConditionCode implements Serializable, Comparable { // Constructors, getters, and setters diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/ElrXref.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/ElrXref.java index 41392f257..9ba2c9729 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/ElrXref.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/ElrXref.java @@ -19,8 +19,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ElrXref { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/JurisdictionCode.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/JurisdictionCode.java index 5649ecdbe..8d3649c5d 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/JurisdictionCode.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/JurisdictionCode.java @@ -20,8 +20,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class JurisdictionCode { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/JurisdictionParticipation.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/JurisdictionParticipation.java index ba82f6f8f..54ded0f56 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/JurisdictionParticipation.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/JurisdictionParticipation.java @@ -19,8 +19,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class JurisdictionParticipation implements Serializable{ @Id @Column(name = "jurisdiction_cd") diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/LOINCCode.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/LOINCCode.java index 2478b8560..73151950a 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/LOINCCode.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/LOINCCode.java @@ -20,8 +20,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class LOINCCode implements Serializable { private static final long serialVersionUID = 1L; // Generated serial version UID diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/LOINCCodeCondition.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/LOINCCodeCondition.java index 77aefbb47..ec54e940f 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/LOINCCodeCondition.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/LOINCCodeCondition.java @@ -19,8 +19,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class LOINCCodeCondition { @Id @Column(name = "loinc_cd", length = 20) diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/LabResult.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/LabResult.java index 85eeca106..e12609c2a 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/LabResult.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/LabResult.java @@ -19,8 +19,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class LabResult { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/LabResultSnomed.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/LabResultSnomed.java index 66581a158..d56fac4c8 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/LabResultSnomed.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/LabResultSnomed.java @@ -20,8 +20,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class LabResultSnomed { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/LabTest.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/LabTest.java index 53530a1a2..f5716fd73 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/LabTest.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/LabTest.java @@ -19,8 +19,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class LabTest { @Id @Column(name = "lab_test_cd") diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/LabTestLoinc.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/LabTestLoinc.java index e35c9d0d5..1c07233dd 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/LabTestLoinc.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/LabTestLoinc.java @@ -19,8 +19,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class LabTestLoinc { @Id @Column(name = "lab_test_cd") diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/ProgramAreaCode.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/ProgramAreaCode.java index 5de24527a..1097f1d89 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/ProgramAreaCode.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/ProgramAreaCode.java @@ -19,8 +19,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ProgramAreaCode { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/RaceCode.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/RaceCode.java index a9953180a..f57a3f7a1 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/RaceCode.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/RaceCode.java @@ -19,8 +19,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class RaceCode { @Id private String code; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/SnomedCode.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/SnomedCode.java index 6bf22fd54..73e0fae88 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/SnomedCode.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/SnomedCode.java @@ -19,8 +19,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class SnomedCode { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/SnomedCondition.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/SnomedCondition.java index 59facad8d..627615ae3 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/SnomedCondition.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/SnomedCondition.java @@ -20,8 +20,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class SnomedCondition { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/StateCode.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/StateCode.java index 3ca5079d5..7e1306578 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/StateCode.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/StateCode.java @@ -20,8 +20,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class StateCode { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/StateCountyCodeValue.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/StateCountyCodeValue.java index ee708ecf9..bea98404a 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/StateCountyCodeValue.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/StateCountyCodeValue.java @@ -19,8 +19,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class StateCountyCodeValue { @Id diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/id_class/JurisdictionParticipationId.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/id_class/JurisdictionParticipationId.java index d1c1dcbe9..91a45ecfa 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/id_class/JurisdictionParticipationId.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/model/id_class/JurisdictionParticipationId.java @@ -15,8 +15,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class JurisdictionParticipationId implements Serializable { private String jurisdictionCd; private String fipsCd; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/CodeValueGeneralRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/CodeValueGeneralRepository.java index 38500014d..05c1aec27 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/CodeValueGeneralRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/CodeValueGeneralRepository.java @@ -9,6 +9,24 @@ import java.util.Optional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface CodeValueGeneralRepository extends JpaRepository { Optional findByCodeSetNmAndCode(String codeSetNm, String code); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/ConditionCodeRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/ConditionCodeRepository.java index 450526005..debe314f7 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/ConditionCodeRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/ConditionCodeRepository.java @@ -12,6 +12,24 @@ import java.util.Optional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface ConditionCodeRepository extends JpaRepository { @Query("SELECT cc.progAreaCd AS key FROM ConditionCode cc " + "WHERE cc.conditionCd = (SELECT lr.defaultConditionCd FROM LabResult lr WHERE lr.laboratoryId = :laboratoryId AND lr.labResultCd = :labResultCd)") diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/ElrXrefRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/ElrXrefRepository.java index f7199dc3b..048345c12 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/ElrXrefRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/ElrXrefRepository.java @@ -9,6 +9,24 @@ @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface ElrXrefRepository extends JpaRepository { /** diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/JurisdictionCodeRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/JurisdictionCodeRepository.java index 4ce0d6c56..0541e98d6 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/JurisdictionCodeRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/JurisdictionCodeRepository.java @@ -9,6 +9,24 @@ import java.util.Optional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface JurisdictionCodeRepository extends JpaRepository { /** diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/JurisdictionParticipationRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/JurisdictionParticipationRepository.java index 388cc5b28..24cc7fdd8 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/JurisdictionParticipationRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/JurisdictionParticipationRepository.java @@ -11,6 +11,24 @@ import java.util.Optional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface JurisdictionParticipationRepository extends JpaRepository { diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/LOINCCodeRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/LOINCCodeRepository.java index fb260aef9..0f62dfeee 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/LOINCCodeRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/LOINCCodeRepository.java @@ -10,6 +10,24 @@ import java.util.Optional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface LOINCCodeRepository extends JpaRepository { @Query(value = "select * from LOINC_code where time_aspect = 'Pt' and system_cd = '^Patient'", nativeQuery = true) diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/LabResultRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/LabResultRepository.java index 019379e8e..5ec77d5b3 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/LabResultRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/LabResultRepository.java @@ -10,6 +10,24 @@ import java.util.Optional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface LabResultRepository extends JpaRepository { @Query(value = "SELECT lr.defaultConditionCd FROM LabResult lr WHERE lr.labResultCd = :labResultCd AND lr.laboratoryId = :laboratoryId") Optional> findDefaultConditionCdByLabResultCdAndLaboratoryId(@Param("labResultCd") String labResultCd, @Param("laboratoryId") String laboratoryId); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/LabResultSnomedRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/LabResultSnomedRepository.java index a896eb0b6..63e2da7cb 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/LabResultSnomedRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/LabResultSnomedRepository.java @@ -10,6 +10,24 @@ import java.util.Optional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface LabResultSnomedRepository extends JpaRepository { @Query(value = "SELECT lr.snomedCd FROM LabResultSnomed lr WHERE lr.laboratoryId = :laboratoryId AND lr.labResultCd = :labResultCd") Optional> findSnomedCds(@Param("laboratoryId") String laboratoryId, @Param("labResultCd") String labResultCd); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/LabTestLoincRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/LabTestLoincRepository.java index bd670079b..0318fd92a 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/LabTestLoincRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/LabTestLoincRepository.java @@ -10,6 +10,24 @@ import java.util.Optional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface LabTestLoincRepository extends JpaRepository { @Query(value = "SELECT lr.loincCd FROM LabTestLoinc lr WHERE lr.laboratoryId = :laboratoryId AND lr.labTestCd = :labTestCd") Optional> findLoincCds(@Param("laboratoryId") String laboratoryId, @Param("labTestCd") String labTestCd); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/LabTestRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/LabTestRepository.java index a733feffe..7ab13e4b5 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/LabTestRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/LabTestRepository.java @@ -10,6 +10,24 @@ import java.util.Optional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface LabTestRepository extends JpaRepository { @Query(value = "SELECT lr.defaultConditionCd FROM LabTest lr WHERE lr.laboratoryId = :laboratoryId AND lr.labTestCd = :labTestCd") Optional> findDefaultConditionForLabTest(@Param("laboratoryId") String laboratoryId, @Param("labTestCd") String labTestCd); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/ProgramAreaCodeRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/ProgramAreaCodeRepository.java index e4ca7351d..e28e027d0 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/ProgramAreaCodeRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/ProgramAreaCodeRepository.java @@ -5,5 +5,23 @@ import org.springframework.stereotype.Repository; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface ProgramAreaCodeRepository extends JpaRepository { } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/RaceCodeRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/RaceCodeRepository.java index 5526773f9..89408a904 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/RaceCodeRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/RaceCodeRepository.java @@ -9,6 +9,24 @@ import java.util.Optional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface RaceCodeRepository extends JpaRepository { /** diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/SnomedCodeRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/SnomedCodeRepository.java index 190d6ac11..f94b13394 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/SnomedCodeRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/SnomedCodeRepository.java @@ -10,6 +10,24 @@ import java.util.Optional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface SnomedCodeRepository extends JpaRepository { @Query("SELECT sc FROM SnomedCode sc WHERE sc.snomedCd = :snomedCd") Optional> findSnomedProgramAreaExclusion(@Param("snomedCd") String snomedCd); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/SnomedConditionRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/SnomedConditionRepository.java index bbd7c1fc5..bbe99ca50 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/SnomedConditionRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/SnomedConditionRepository.java @@ -10,6 +10,24 @@ import java.util.Optional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface SnomedConditionRepository extends JpaRepository { @Query("SELECT DISTINCT data.conditionCd FROM SnomedCondition data WHERE data.snomedCd = :cd") Optional> getConditionForSnomedCode(@Param("cd") String cd); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/StateCodeRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/StateCodeRepository.java index 440cd298c..69892df22 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/StateCodeRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/StateCodeRepository.java @@ -7,6 +7,24 @@ import java.util.Optional; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface StateCodeRepository extends JpaRepository { @Query("SELECT pn FROM StateCode pn WHERE pn.stateNm = :state_nm") Optional findStateCdByStateName( @Param("state_nm") String stateName); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/StateCountyCodeValueRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/StateCountyCodeValueRepository.java index 67ebc45b0..cfdaf3293 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/StateCountyCodeValueRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/StateCountyCodeValueRepository.java @@ -9,6 +9,24 @@ import java.util.Optional; @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface StateCountyCodeValueRepository extends JpaRepository { @Query(value = "SELECT * FROM State_county_code_value WHERE INDENT_LEVEL_NBR='2' ", nativeQuery = true) Optional> findByIndentLevelNbr(); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/custom/SrteCustomRepository.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/custom/SrteCustomRepository.java index e35768a19..0127f5cec 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/custom/SrteCustomRepository.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/custom/SrteCustomRepository.java @@ -7,6 +7,24 @@ @Repository +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface SrteCustomRepository { List getAllLabResultJoinWithLabCodingSystemWithOrganismNameInd(); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/custom/SrteCustomRepositoryImpl.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/custom/SrteCustomRepositoryImpl.java index c7bd6d1d1..aa77d9bcc 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/custom/SrteCustomRepositoryImpl.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/repository/nbs/srte/repository/custom/SrteCustomRepositoryImpl.java @@ -20,8 +20,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class SrteCustomRepositoryImpl implements SrteCustomRepository{ @PersistenceContext(unitName = "srte") private EntityManager entityManager; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/security/config/DataProcessingSecurityConfig.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/security/config/DataProcessingSecurityConfig.java index 678de30bd..0b61339dc 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/security/config/DataProcessingSecurityConfig.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/security/config/DataProcessingSecurityConfig.java @@ -19,9 +19,11 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class DataProcessingSecurityConfig { + @SuppressWarnings("java:S112") @Bean public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception { http diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/act/ActRelationshipService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/act/ActRelationshipService.java index fa571265d..881d356ea 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/act/ActRelationshipService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/act/ActRelationshipService.java @@ -20,8 +20,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ActRelationshipService implements IActRelationshipService { private final ActRelationshipRepository actRelationshipRepository; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/action/LabReportProcessing.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/action/LabReportProcessing.java index 9e5ebe419..d9adaf803 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/action/LabReportProcessing.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/action/LabReportProcessing.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class LabReportProcessing implements ILabReportProcessing { private final IObservationService observationService; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/answer/AnswerService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/answer/AnswerService.java index 328cde547..fe3f0d522 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/answer/AnswerService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/answer/AnswerService.java @@ -34,8 +34,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class AnswerService implements IAnswerService { private static final Logger logger = LoggerFactory.getLogger(AnswerService.class); //NOSONAR diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/auth_user/AuthUserService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/auth_user/AuthUserService.java index 7b2acd992..c1d2b62fc 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/auth_user/AuthUserService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/auth_user/AuthUserService.java @@ -16,8 +16,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class AuthUserService implements IAuthUserService { AuthUserRepository authUserRepository; CustomAuthUserRepository customAuthUserRepository; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/cache/CachingValueService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/cache/CachingValueService.java index 99a063139..54e3a0eb6 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/cache/CachingValueService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/cache/CachingValueService.java @@ -30,8 +30,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class CachingValueService implements ICatchingValueService { private final JurisdictionCodeRepository jurisdictionCodeRepository; private final CodeValueGeneralRepository codeValueGeneralRepository; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/data_extraction/DataExtractionService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/data_extraction/DataExtractionService.java index 141874d6c..410a2c729 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/data_extraction/DataExtractionService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/data_extraction/DataExtractionService.java @@ -38,8 +38,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class DataExtractionService implements IDataExtractionService { private static final Logger logger = LoggerFactory.getLogger(DataExtractionService.class); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/data_extraction/DataExtractionServiceUtility.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/data_extraction/DataExtractionServiceUtility.java index a14e87b91..ed55dbd0f 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/data_extraction/DataExtractionServiceUtility.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/data_extraction/DataExtractionServiceUtility.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class DataExtractionServiceUtility { public Container parsingElrXmlPayload(String xmlPayload) throws JAXBException { diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/entity/EntityLocatorParticipationService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/entity/EntityLocatorParticipationService.java index c9128742c..9d3d4eb0f 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/entity/EntityLocatorParticipationService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/entity/EntityLocatorParticipationService.java @@ -32,8 +32,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EntityLocatorParticipationService implements IEntityLocatorParticipationService { private static final Logger logger = LoggerFactory.getLogger(EntityLocatorParticipationService.class); // NOSONAR diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/investigation/AutoInvestigationService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/investigation/AutoInvestigationService.java index b2d63bcfb..cefd81857 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/investigation/AutoInvestigationService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/investigation/AutoInvestigationService.java @@ -51,8 +51,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class AutoInvestigationService implements IAutoInvestigationService { private static final Logger logger = LoggerFactory.getLogger(AutoInvestigationService.class); private final ConditionCodeRepository conditionCodeRepository; @@ -394,7 +395,7 @@ else if (obs.getTheObsValueTxtDtoCollection() != null && obs.getTheObsValueTxtDt @SuppressWarnings("java:S3776") private void populateFromPrePopMapping(TreeMap prePopMap, PageActProxyContainer pageActProxyContainer) - throws Exception { + throws DataProcessingException { try { PublicHealthCaseDto phcDT = pageActProxyContainer.getPublicHealthCaseContainer().getThePublicHealthCaseDto(); var res = conditionCodeRepository.findProgramAreaConditionCode( diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/investigation/DecisionSupportService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/investigation/DecisionSupportService.java index 16c348942..fb9563ba2 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/investigation/DecisionSupportService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/investigation/DecisionSupportService.java @@ -47,8 +47,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class DecisionSupportService implements IDecisionSupportService { private static final Logger logger = LoggerFactory.getLogger(DecisionSupportService.class); @@ -225,7 +226,7 @@ protected boolean checkActiveWdsAlgorithm(EdxLabInformationDto edxLabInformation } } catch (Exception e) { //if one fails to parse - continue processing with error - e.printStackTrace(); + logger.info(e.getMessage()); } @@ -574,7 +575,7 @@ private Collection selectDSMAlgorithmDTCollection() throws DataPro private Algorithm parseAlgorithmXml(String xmlPayLoadContent) - throws Exception { + throws DataProcessingException { Algorithm algorithmDocument; try { @@ -594,7 +595,7 @@ private Algorithm parseAlgorithmXml(String xmlPayLoadContent) /** * Execute when action in available * */ - @SuppressWarnings({"java:S6541", "java:S3776"}) + @SuppressWarnings({"java:S6541", "java:S3776", "javaS3740"}) protected boolean specimenCollectionDateCriteria(EventDateLogicType eventDateLogicType, EdxLabInformationDto edxLabInformationDT) throws DataProcessingException { boolean isdateLogicValidForNewInv; @@ -672,7 +673,7 @@ else if(eventDateLogicType.getElrTimeLogic()!=null } } }else{ - isdateLogicValidForNewInv= true; + isdateLogicValidForNewInv= true; //NOSONAR } } } @@ -692,6 +693,7 @@ else if(eventDateLogicType.getElrTimeLogic()!=null return isdateLogicValidForNewInv; } + @SuppressWarnings("java:S1871") protected boolean specimenDateTimeCheck(String comparatorCode, int daysDifference, int value, boolean isdateLogicValidWithThisInv) { if (comparatorCode.contains(NEDSSConstant.LESS_THAN_LOGIC) && daysDifference > value) { @@ -855,7 +857,7 @@ else if (actionType.getCreateInvestigationWithNND() != null) } else if (actionType.getDeleteDocument() != null) { - DeleteDocumentType specificActionType = actionType.getDeleteDocument(); + DeleteDocumentType specificActionType = actionType.getDeleteDocument(); //NOSONAR } if (applicationMap.size() > 0) diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/investigation/DsmAlgorithmService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/investigation/DsmAlgorithmService.java index 201e36b91..5c899c3ae 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/investigation/DsmAlgorithmService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/investigation/DsmAlgorithmService.java @@ -16,8 +16,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class DsmAlgorithmService { private final DsmAlgorithmRepository dsmAlgorithmRepository; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/investigation/LookupService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/investigation/LookupService.java index 619637f9c..a5a3150f7 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/investigation/LookupService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/investigation/LookupService.java @@ -14,6 +14,8 @@ import gov.cdc.dataprocessing.service.interfaces.cache.ICatchingValueService; import gov.cdc.dataprocessing.service.interfaces.lookup_data.ILookupService; import gov.cdc.dataprocessing.service.model.lookup_data.MetaAndWaCommonAttribute; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.stereotype.Service; import java.util.ArrayList; @@ -30,9 +32,11 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class LookupService implements ILookupService { + private static final Logger logger = LoggerFactory.getLogger(LookupService.class); // NOSONAR private final LookupMappingRepository lookupMappingRepository; private final NbsUiMetaDataRepository nbsUiMetaDataRepository; @@ -76,7 +80,7 @@ public TreeMap getQuestionMap() { questionMap = createQuestionMap(qColl); } catch (Exception e) { - e.printStackTrace(); + logger.info(e.getMessage()); } if (questionMap != null) { @@ -112,7 +116,7 @@ public TreeMap getDMBQuestionMapAfterPublish() { dmbQuestionMap = createDMBQuestionMap(metaQuestion); } catch (Exception e) { - e.printStackTrace(); + logger.info(e.getMessage()); } if(dmbQuestionMap != null) { @@ -130,7 +134,7 @@ public void fillPrePopMap() { createPrePopFromMap(qColl); } catch (Exception e) { - e.printStackTrace(); + logger.info(e.getMessage()); } } @@ -140,7 +144,7 @@ public void fillPrePopMap() { Collection qColl = retrievePrePopMapping(); createPrePopToMap(qColl); } catch (Exception e) { - e.printStackTrace(); + logger.info(e.getMessage()); } } @@ -162,7 +166,7 @@ private Collection retrievePrePopMapping () { } @SuppressWarnings("java:S3776") - private static void createPrePopFromMap(Collection coll) throws Exception { + private static void createPrePopFromMap(Collection coll) throws DataProcessingException { int count = 0; int loopcount = 0; int sizecount = 0; @@ -353,7 +357,7 @@ private static void createPrePopToMap(Collection coll) throws @SuppressWarnings("java:S3776") - private TreeMap createDMBQuestionMap(Collection coll) throws Exception{ + private TreeMap createDMBQuestionMap(Collection coll) throws DataProcessingException{ TreeMap qCodeMap = new TreeMap<>(); int count =0; int loopcount=0; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/jurisdiction/JurisdictionService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/jurisdiction/JurisdictionService.java index fe9ddc10e..41d0e5a46 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/jurisdiction/JurisdictionService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/jurisdiction/JurisdictionService.java @@ -19,6 +19,8 @@ import gov.cdc.dataprocessing.utilities.auth.AuthUtil; import gov.cdc.dataprocessing.utilities.component.organization.OrganizationRepositoryUtil; import gov.cdc.dataprocessing.utilities.component.patient.PatientRepositoryUtil; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.stereotype.Service; import java.util.*; @@ -34,9 +36,12 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class JurisdictionService implements IJurisdictionService { + private static final Logger logger = LoggerFactory.getLogger(JurisdictionService.class); // NOSONAR + private StringBuffer detailError= null; private final PatientRepositoryUtil patientRepositoryUtil; private final OrganizationRepositoryUtil organizationRepositoryUtil; @@ -334,7 +339,7 @@ private HashMap resolveLabReportJurisdiction(PersonContainer pat detailError= null; return map; } catch (Exception e) { - e.printStackTrace(); + logger.info(e.getMessage()); throw new DataProcessingException(e.getMessage(), e); } } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/jurisdiction/ProgramAreaService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/jurisdiction/ProgramAreaService.java index e3821a6de..fb7f1cec0 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/jurisdiction/ProgramAreaService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/jurisdiction/ProgramAreaService.java @@ -28,8 +28,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ProgramAreaService implements IProgramAreaService { boolean programAreaDerivationExcludeFlag; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/log/EdxLogService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/log/EdxLogService.java index f493e3ed4..41efe9689 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/log/EdxLogService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/log/EdxLogService.java @@ -32,8 +32,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EdxLogService implements IEdxLogService { private final EdxActivityLogRepository edxActivityLogRepository; private final EdxActivityDetailLogRepository edxActivityDetailLogRepository; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/log/MessageLogService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/log/MessageLogService.java index 219ecbf88..1bf165774 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/log/MessageLogService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/log/MessageLogService.java @@ -19,8 +19,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class MessageLogService implements IMessageLogService { private final MessageLogRepository messageLogRepository; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/log/NNDActivityLogService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/log/NNDActivityLogService.java index e788ba63a..cd47adf94 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/log/NNDActivityLogService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/log/NNDActivityLogService.java @@ -21,8 +21,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NNDActivityLogService implements INNDActivityLogService { private final NNDActivityLogRepository nndActivityLogRepository; private final IOdseIdGeneratorWCacheService odseIdGeneratorService; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/lookup_data/SrteCodeObsService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/lookup_data/SrteCodeObsService.java index 6dbf84e88..6f5b8942a 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/lookup_data/SrteCodeObsService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/lookup_data/SrteCodeObsService.java @@ -9,6 +9,8 @@ import gov.cdc.dataprocessing.repository.nbs.odse.repos.stored_proc.ProgAreaSnomeCodeStoredProcRepository; import gov.cdc.dataprocessing.repository.nbs.srte.repository.*; import gov.cdc.dataprocessing.service.interfaces.lookup_data.ISrteCodeObsService; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.stereotype.Service; import java.util.*; @@ -24,9 +26,12 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class SrteCodeObsService implements ISrteCodeObsService { + private static final Logger logger = LoggerFactory.getLogger(SrteCodeObsService.class); // NOSONAR + private boolean programAreaDerivationExcludeFlag = false; //NOSONAR private final ProgAreaSnomeCodeStoredProcRepository progAreaSnomeCodeStoredProcRepository; private final SnomedConditionRepository snomedConditionRepository; @@ -565,7 +570,7 @@ else if (!currentPACode.equals(lastPACode)) } } catch (Exception e) { - e.printStackTrace(); + logger.info(e.getMessage()); return null; //????leave observation.progAreaCd == null????? } //end of catch return lastPACode; @@ -598,7 +603,7 @@ else if (!currentPACode.equals(lastPACode)) } } catch (Exception e) { - e.printStackTrace(); + logger.info(e.getMessage()); return null; //????leave observation.progAreaCd == null????? } //end of catch return lastPACode; @@ -671,7 +676,7 @@ else if (!currentPACode.equals(lastPACode)) } } catch (Exception e) { - e.printStackTrace(); + logger.info(e.getMessage()); return null; //????leave observation.progAreaCd == null????? } //end of catch return lastPACode; @@ -706,7 +711,7 @@ else if (!currentPACode.equals(lastPACode)) } } catch (Exception e) { - e.printStackTrace(); + logger.info(e.getMessage()); return null; //????leave observation.progAreaCd == null????? } //end of catch return lastPACode; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/manager/ManagerAggregationService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/manager/ManagerAggregationService.java index 94017c85b..198ee24bf 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/manager/ManagerAggregationService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/manager/ManagerAggregationService.java @@ -36,8 +36,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ManagerAggregationService implements IManagerAggregationService { private final IOrganizationService organizationService; private final IPersonService patientService; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/manager/ManagerCacheService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/manager/ManagerCacheService.java index 1ec57cedd..7a97dd182 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/manager/ManagerCacheService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/manager/ManagerCacheService.java @@ -22,8 +22,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ManagerCacheService implements IManagerCacheService { private final ICatchingValueService cachingValueService; private final CacheManager cacheManager; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/manager/ManagerService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/manager/ManagerService.java index cc2d9707f..ba3e4f7f0 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/manager/ManagerService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/manager/ManagerService.java @@ -58,8 +58,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ManagerService implements IManagerService { private static final Logger logger = LoggerFactory.getLogger(ManagerService.class); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/material/MaterialService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/material/MaterialService.java index a39315b01..b2f53a8ce 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/material/MaterialService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/material/MaterialService.java @@ -45,8 +45,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class MaterialService implements IMaterialService { private final MaterialRepository materialRepository; private final EntityIdRepository entityIdRepository; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/notification/NotificationService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/notification/NotificationService.java index a3b30f420..566390632 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/notification/NotificationService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/notification/NotificationService.java @@ -34,8 +34,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NotificationService implements INotificationService { private final NotificationRepository notificationRepository; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/observation/EdxDocumentService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/observation/EdxDocumentService.java index 4d6016e57..219f0cdef 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/observation/EdxDocumentService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/observation/EdxDocumentService.java @@ -19,8 +19,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EdxDocumentService implements IEdxDocumentService { private final EdxDocumentRepository edxDocumentRepository; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/observation/ObservationCodeService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/observation/ObservationCodeService.java index de4fe39ea..476c85390 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/observation/ObservationCodeService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/observation/ObservationCodeService.java @@ -15,6 +15,8 @@ import gov.cdc.dataprocessing.service.interfaces.observation.IObservationCodeService; import gov.cdc.dataprocessing.utilities.component.observation.ObservationUtil; import gov.cdc.dataprocessing.utilities.component.organization.OrganizationRepositoryUtil; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.stereotype.Service; import java.util.*; @@ -30,9 +32,11 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ObservationCodeService implements IObservationCodeService { + private static final Logger logger = LoggerFactory.getLogger(ObservationCodeService.class); // NOSONAR private final ISrteCodeObsService srteCodeObsService; private final OrganizationRepositoryUtil organizationRepositoryUtil; @@ -347,7 +351,7 @@ else if (codeSystemCd.equals("SNM")) { try { conditionCd = srteCodeObsService.getConditionForSnomedCode(snomedCd); } catch (Exception e) { - e.printStackTrace(); + logger.info(e.getMessage()); } if (conditionCd != null && !conditionCd.isEmpty()) { snomedConditionList.add(conditionCd); @@ -400,7 +404,7 @@ private String getConditionForLOINCCode(String reportingLabCLIA, ObservationCont try { conditionCd = srteCodeObsService.getConditionForLoincCode(loincCd); } catch (Exception e) { - e.printStackTrace(); + logger.info(e.getMessage()); } return (conditionCd); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/observation/ObservationMatchingService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/observation/ObservationMatchingService.java index 81cd18da4..3d5bd9220 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/observation/ObservationMatchingService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/observation/ObservationMatchingService.java @@ -33,8 +33,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ObservationMatchingService implements IObservationMatchingService { private static final Logger logger = LoggerFactory.getLogger(ObservationMatchingService.class); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/observation/ObservationService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/observation/ObservationService.java index d4176d3f3..105aff32a 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/observation/ObservationService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/observation/ObservationService.java @@ -62,8 +62,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ObservationService implements IObservationService { private static final Logger logger = LoggerFactory.getLogger(ObservationService.class); @@ -766,7 +767,7 @@ private LabResultProxyContainer loadingObservationToLabResultContainer(Long obse lrProxyVO.setPageVO(pageContainer); } catch (Exception e) { logger.error("Exception while getting data from NBS Answer for Lab"); - e.printStackTrace(); + logger.info(e.getMessage()); } return lrProxyVO; @@ -819,7 +820,7 @@ protected NNDActivityLogDto updateLabResultWithAutoResendNotification(LabResultP //catch & store auto resend notifications exceptions in NNDActivityLog table nndActivityLogService.saveNddActivityLog(nndActivityLogDto); logger.error("Exception occurred while calling nndMessageSenderHelper.updateAutoResendNotificationsAsync"); - e.printStackTrace(); + logger.info(e.getMessage()); } return nndActivityLogDto; @@ -1017,7 +1018,7 @@ else if (organizationContainer.isItDirty()) actRelationshipService.saveActRelationship(actRelationshipDto); } } catch (Exception e) { - e.printStackTrace(); + logger.info(e.getMessage()); throw new DataProcessingException(e.getMessage(), e); } } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/observation/ObservationSummaryService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/observation/ObservationSummaryService.java index d34b9794c..ad491fa08 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/observation/ObservationSummaryService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/observation/ObservationSummaryService.java @@ -29,8 +29,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ObservationSummaryService implements IObservationSummaryService { private final Observation_SummaryRepository observationSummaryRepository; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/organization/OrganizationMatchingService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/organization/OrganizationMatchingService.java index 08bf84cce..52672bfac 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/organization/OrganizationMatchingService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/organization/OrganizationMatchingService.java @@ -37,8 +37,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class OrganizationMatchingService implements IOrganizationMatchingService { private static final Logger logger = LoggerFactory.getLogger(OrganizationMatchingService.class); private final EdxPatientMatchRepositoryUtil edxPatientMatchRepositoryUtil; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/organization/OrganizationService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/organization/OrganizationService.java index 4d6b8bcab..76b2f674b 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/organization/OrganizationService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/organization/OrganizationService.java @@ -23,8 +23,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class OrganizationService implements IOrganizationService { private static IOrganizationMatchingService iOrganizationMatchingService; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/page_and_pam/PageService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/page_and_pam/PageService.java index df434517f..127dd88cc 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/page_and_pam/PageService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/page_and_pam/PageService.java @@ -21,8 +21,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PageService implements IPageService { private final IInvestigationService investigationService; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/page_and_pam/PamService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/page_and_pam/PamService.java index cb0373c55..5bf99ac4b 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/page_and_pam/PamService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/page_and_pam/PamService.java @@ -39,8 +39,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PamService implements IPamService { private static final Logger logger = LoggerFactory.getLogger(PamService.class); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/participation/ParticipationService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/participation/ParticipationService.java index 61f118756..902d9a790 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/participation/ParticipationService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/participation/ParticipationService.java @@ -21,8 +21,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ParticipationService implements IParticipationService { private final ParticipationRepository participationRepository; private final ParticipationHistRepository participationHistRepository; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/person/NokMatchingService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/person/NokMatchingService.java index 48528039c..eba80f1ed 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/person/NokMatchingService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/person/NokMatchingService.java @@ -34,8 +34,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NokMatchingService extends NokMatchingBaseService implements INokMatchingService { private static final Logger logger = LoggerFactory.getLogger(NokMatchingService.class); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/person/PatientMatchingService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/person/PatientMatchingService.java index 0f1ba22df..ddf181c45 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/person/PatientMatchingService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/person/PatientMatchingService.java @@ -35,8 +35,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PatientMatchingService extends PatientMatchingBaseService implements IPatientMatchingService { private static final Logger logger = LoggerFactory.getLogger(PatientMatchingService.class); private boolean multipleMatchFound = false; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/person/PersonService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/person/PersonService.java index 2b6e20705..71de180be 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/person/PersonService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/person/PersonService.java @@ -35,8 +35,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PersonService implements IPersonService { private final IPatientMatchingService patientMatchingService; private final INokMatchingService nokMatchingService; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/person/ProviderMatchingService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/person/ProviderMatchingService.java index 44dccdb4e..8b5add024 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/person/ProviderMatchingService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/person/ProviderMatchingService.java @@ -35,8 +35,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ProviderMatchingService extends ProviderMatchingBaseService implements IProviderMatchingService { private static final Logger logger = LoggerFactory.getLogger(ProviderMatchingService.class); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/person/base/MatchingBaseService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/person/base/MatchingBaseService.java index e6fd3f4ac..9719dfca7 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/person/base/MatchingBaseService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/person/base/MatchingBaseService.java @@ -31,8 +31,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class MatchingBaseService { private static final Logger logger = LoggerFactory.getLogger(MatchingBaseService.class); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/person/base/NokMatchingBaseService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/person/base/NokMatchingBaseService.java index 90a4f5bbc..7ab0b90e9 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/person/base/NokMatchingBaseService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/person/base/NokMatchingBaseService.java @@ -16,8 +16,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NokMatchingBaseService extends PatientMatchingBaseService { public NokMatchingBaseService(EdxPatientMatchRepositoryUtil edxPatientMatchRepositoryUtil, diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/person/base/PatientMatchingBaseService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/person/base/PatientMatchingBaseService.java index 22b6e1fd0..a0ee8afdb 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/person/base/PatientMatchingBaseService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/person/base/PatientMatchingBaseService.java @@ -42,8 +42,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PatientMatchingBaseService extends MatchingBaseService{ private static final Logger logger = LoggerFactory.getLogger(PatientMatchingBaseService.class); @@ -655,7 +656,7 @@ protected void setPersonHashCdNok(PersonContainer personContainer) throws DataPr setPersonToMatchEntityNok(personContainer); } } catch (Exception e) { - e.printStackTrace(); + logger.info(e.getMessage()); } } catch (Exception e) { throw new DataProcessingException(e.getMessage(), e); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/person/base/ProviderMatchingBaseService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/person/base/ProviderMatchingBaseService.java index 48949ce24..7005a50e6 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/person/base/ProviderMatchingBaseService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/person/base/ProviderMatchingBaseService.java @@ -35,8 +35,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ProviderMatchingBaseService extends MatchingBaseService{ private static final Logger logger = LoggerFactory.getLogger(ProviderMatchingBaseService.class); @@ -186,7 +187,7 @@ protected Long persistingProvider(PersonContainer personContainer, String busine } @SuppressWarnings("java:S3776") - protected void setProvidertoEntityMatch(PersonContainer personContainer) throws Exception { + protected void setProvidertoEntityMatch(PersonContainer personContainer) throws DataProcessingException { Long entityUid = personContainer.getThePersonDto().getPersonUid(); String identifier ; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/public_health_case/ContactSummaryService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/public_health_case/ContactSummaryService.java index a335ec22c..035e48911 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/public_health_case/ContactSummaryService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/public_health_case/ContactSummaryService.java @@ -30,8 +30,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ContactSummaryService implements IContactSummaryService { private final QueryHelper queryHelper; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/public_health_case/InvestigationNotificationService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/public_health_case/InvestigationNotificationService.java index 6fe6406c2..54998c49c 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/public_health_case/InvestigationNotificationService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/public_health_case/InvestigationNotificationService.java @@ -5,6 +5,7 @@ import gov.cdc.dataprocessing.constant.elr.EdxELRConstant; import gov.cdc.dataprocessing.constant.elr.NEDSSConstant; import gov.cdc.dataprocessing.exception.DataProcessingException; +import gov.cdc.dataprocessing.kafka.consumer.KafkaPublicHealthCaseConsumer; import gov.cdc.dataprocessing.model.container.base.BasePamContainer; import gov.cdc.dataprocessing.model.container.model.*; import gov.cdc.dataprocessing.model.dto.act.ActIdDto; @@ -24,6 +25,8 @@ import gov.cdc.dataprocessing.service.interfaces.notification.INotificationService; import gov.cdc.dataprocessing.service.interfaces.public_health_case.IInvestigationNotificationService; import gov.cdc.dataprocessing.service.interfaces.public_health_case.IInvestigationService; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.stereotype.Service; import java.io.PrintWriter; @@ -43,9 +46,12 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class InvestigationNotificationService implements IInvestigationNotificationService { + private static final Logger logger = LoggerFactory.getLogger(KafkaPublicHealthCaseConsumer.class); // NOSONAR + private final IInvestigationService investigationService; private final INotificationService notificationService; private final CustomNbsQuestionRepository customNbsQuestionRepository; @@ -184,7 +190,7 @@ private EDXActivityDetailLogDto sendProxyToEJB(NotificationProxyContainer notif } } catch (Exception e) { - e.printStackTrace(); + logger.info(e.getMessage()); eDXActivityDetailLogDT.setLogType(EdxRuleAlgorothmManagerDto.STATUS_VAL.Failure.name()); StringWriter errors = new StringWriter(); e.printStackTrace(new PrintWriter(errors)); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/public_health_case/InvestigationService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/public_health_case/InvestigationService.java index f6fa06244..07103b133 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/public_health_case/InvestigationService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/implementation/public_health_case/InvestigationService.java @@ -57,8 +57,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class InvestigationService implements IInvestigationService { private static final Logger logger = LoggerFactory.getLogger(InvestigationService.class); @@ -258,7 +259,7 @@ public void setObservationAssociationsImpl(Long investigationUID, Collection loadActRelationshipBySrcIdAndTypeCode(Long uid, String type); void saveActRelationship(ActRelationshipDto actRelationshipDto) throws DataProcessingException; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/action/ILabReportProcessing.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/action/ILabReportProcessing.java index 733c9ea4e..d670cd2fd 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/action/ILabReportProcessing.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/action/ILabReportProcessing.java @@ -3,6 +3,24 @@ import gov.cdc.dataprocessing.exception.DataProcessingException; import gov.cdc.dataprocessing.model.dto.lab_result.EdxLabInformationDto; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface ILabReportProcessing { String markAsReviewedHandler(Long observationUid, EdxLabInformationDto edxLabInformationDT) throws DataProcessingException; } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/answer/IAnswerService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/answer/IAnswerService.java index 3d434daea..2548910fb 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/answer/IAnswerService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/answer/IAnswerService.java @@ -8,6 +8,24 @@ import java.util.Collection; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface IAnswerService { PageContainer getNbsAnswerAndAssociation(Long uid) throws DataProcessingException; void storePageAnswer(PageContainer pageContainer, ObservationDto observationDto) throws DataProcessingException; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/auth_user/IAuthUserService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/auth_user/IAuthUserService.java index 7127ea6da..3ad030b8f 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/auth_user/IAuthUserService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/auth_user/IAuthUserService.java @@ -3,6 +3,24 @@ import gov.cdc.dataprocessing.exception.DataProcessingException; import gov.cdc.dataprocessing.service.model.auth_user.AuthUserProfileInfo; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface IAuthUserService { AuthUserProfileInfo getAuthUserInfo(String authUserId) throws DataProcessingException; } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/cache/ICatchingValueService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/cache/ICatchingValueService.java index a50c1a4ac..758682e1c 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/cache/ICatchingValueService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/cache/ICatchingValueService.java @@ -9,6 +9,24 @@ import java.util.HashMap; import java.util.List; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface ICatchingValueService { // HashMap getCodedValues(String pType) throws DataProcessingException; HashMap getRaceCodes() throws DataProcessingException; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/data_extraction/IDataExtractionService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/data_extraction/IDataExtractionService.java index ee288d5d0..207a02cdd 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/data_extraction/IDataExtractionService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/data_extraction/IDataExtractionService.java @@ -7,6 +7,24 @@ import gov.cdc.dataprocessing.repository.nbs.msgoute.model.NbsInterfaceModel; import jakarta.xml.bind.JAXBException; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface IDataExtractionService { LabResultProxyContainer parsingDataToObject(NbsInterfaceModel nbsInterfaceModel, EdxLabInformationDto edxLabInformationDto) throws DataProcessingConsumerException, JAXBException, DataProcessingException; } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/entity/IEntityLocatorParticipationService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/entity/IEntityLocatorParticipationService.java index dfd7be0aa..8559234ad 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/entity/IEntityLocatorParticipationService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/entity/IEntityLocatorParticipationService.java @@ -7,6 +7,24 @@ import java.util.Collection; import java.util.List; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface IEntityLocatorParticipationService { void updateEntityLocatorParticipation(Collection locatorCollection, Long uid) throws DataProcessingException; void createEntityLocatorParticipation(Collection locatorCollection, Long uid) throws DataProcessingException; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/jurisdiction/IJurisdictionService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/jurisdiction/IJurisdictionService.java index c7eb6f299..3e68a15fc 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/jurisdiction/IJurisdictionService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/jurisdiction/IJurisdictionService.java @@ -10,6 +10,24 @@ import java.util.List; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface IJurisdictionService { String deriveJurisdictionCd(BaseContainer proxyVO, ObservationDto rootObsDT) throws DataProcessingException; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/jurisdiction/IProgramAreaService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/jurisdiction/IProgramAreaService.java index f1982273f..8845a0499 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/jurisdiction/IProgramAreaService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/jurisdiction/IProgramAreaService.java @@ -8,6 +8,24 @@ import java.util.Collection; import java.util.List; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface IProgramAreaService { void getProgramArea(Collection observationResults, ObservationContainer observationRequest, String clia) throws DataProcessingException; List getAllProgramAreaCode(); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/log/IEdxLogService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/log/IEdxLogService.java index 19fc701fd..247853a4d 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/log/IEdxLogService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/log/IEdxLogService.java @@ -7,6 +7,24 @@ import gov.cdc.dataprocessing.repository.nbs.msgoute.model.NbsInterfaceModel; import gov.cdc.dataprocessing.repository.nbs.odse.model.log.EdxActivityDetailLog; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface IEdxLogService { EdxActivityDetailLog saveEdxActivityDetailLog(EDXActivityDetailLogDto detailLogDto) throws EdxLogException; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/log/IMessageLogService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/log/IMessageLogService.java index bfca67e7b..11b46eaf2 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/log/IMessageLogService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/log/IMessageLogService.java @@ -5,6 +5,24 @@ import java.util.Collection; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface IMessageLogService { void saveMessageLog(Collection messageLogDtoCollection) throws DataProcessingException; } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/log/INNDActivityLogService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/log/INNDActivityLogService.java index ac6f82e91..4cd06d12a 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/log/INNDActivityLogService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/log/INNDActivityLogService.java @@ -3,6 +3,24 @@ import gov.cdc.dataprocessing.exception.DataProcessingException; import gov.cdc.dataprocessing.model.dto.log.NNDActivityLogDto; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface INNDActivityLogService { void saveNddActivityLog(NNDActivityLogDto nndActivityLogDto) throws DataProcessingException; } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/lookup_data/ILookupService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/lookup_data/ILookupService.java index 07ef64852..8a4200110 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/lookup_data/ILookupService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/lookup_data/ILookupService.java @@ -4,6 +4,24 @@ import java.util.TreeMap; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface ILookupService { TreeMap getToPrePopFormMapping(String formCd) throws DataProcessingException; TreeMap getQuestionMap(); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/lookup_data/ISrteCodeObsService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/lookup_data/ISrteCodeObsService.java index 31bb7979f..bcfc77b3b 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/lookup_data/ISrteCodeObsService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/lookup_data/ISrteCodeObsService.java @@ -8,6 +8,24 @@ import java.util.HashMap; import java.util.Map; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface ISrteCodeObsService { Map getSnomed(String code, String type, String clia) throws DataProcessingException; String getConditionForSnomedCode(String snomedCd); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/manager/IManagerAggregationService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/manager/IManagerAggregationService.java index bda33f0a1..a2a94dd1c 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/manager/IManagerAggregationService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/manager/IManagerAggregationService.java @@ -5,6 +5,24 @@ import gov.cdc.dataprocessing.model.container.model.LabResultProxyContainer; import gov.cdc.dataprocessing.model.dto.lab_result.EdxLabInformationDto; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface IManagerAggregationService { void serviceAggregationAsync(LabResultProxyContainer labResult, EdxLabInformationDto edxLabInformationDto) throws DataProcessingConsumerException, DataProcessingException; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/manager/IManagerCacheService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/manager/IManagerCacheService.java index b34bc5915..15651ccae 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/manager/IManagerCacheService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/manager/IManagerCacheService.java @@ -2,6 +2,24 @@ import java.util.concurrent.CompletableFuture; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface IManagerCacheService { CompletableFuture loadAndInitCachedValueAsync(); } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/manager/IManagerService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/manager/IManagerService.java index cc2f443f0..78535bf2d 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/manager/IManagerService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/manager/IManagerService.java @@ -4,6 +4,24 @@ import gov.cdc.dataprocessing.exception.DataProcessingException; import gov.cdc.dataprocessing.service.model.phc.PublicHealthCaseFlowContainer; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface IManagerService { void processDistribution(Integer data) throws DataProcessingConsumerException; void initiatingInvestigationAndPublicHealthCase(PublicHealthCaseFlowContainer data) throws DataProcessingException; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/material/IMaterialService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/material/IMaterialService.java index 608ca6100..93e061a24 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/material/IMaterialService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/material/IMaterialService.java @@ -3,6 +3,24 @@ import gov.cdc.dataprocessing.exception.DataProcessingException; import gov.cdc.dataprocessing.model.container.model.MaterialContainer; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface IMaterialService { MaterialContainer loadMaterialObject(Long materialUid); Long saveMaterial(MaterialContainer materialContainer) throws DataProcessingException; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/notification/INotificationService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/notification/INotificationService.java index 6c2ade67b..d77b1cd34 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/notification/INotificationService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/notification/INotificationService.java @@ -6,6 +6,24 @@ import gov.cdc.dataprocessing.model.container.model.NotificationProxyContainer; import gov.cdc.dataprocessing.model.dto.notification.NotificationDto; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface INotificationService { boolean checkForExistingNotification(BaseContainer vo) throws DataProcessingException; NotificationDto getNotificationById(Long uid); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/observation/IEdxDocumentService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/observation/IEdxDocumentService.java index fe8b5b699..fd79f8e12 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/observation/IEdxDocumentService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/observation/IEdxDocumentService.java @@ -5,6 +5,24 @@ import java.util.Collection; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface IEdxDocumentService { Collection selectEdxDocumentCollectionByActUid(Long uid); EDXDocumentDto saveEdxDocument(EDXDocumentDto edxDocumentDto) throws DataProcessingException; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/observation/IObservationCodeService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/observation/IObservationCodeService.java index d0c688eef..e2cf6e45d 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/observation/IObservationCodeService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/observation/IObservationCodeService.java @@ -7,6 +7,24 @@ import java.util.ArrayList; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface IObservationCodeService { ArrayList deriveTheConditionCodeList(LabResultProxyContainer labResultProxyVO, ObservationContainer orderTest) throws DataProcessingException; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/observation/IObservationMatchingService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/observation/IObservationMatchingService.java index 5b24dd78b..4fb18c1c3 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/observation/IObservationMatchingService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/observation/IObservationMatchingService.java @@ -5,6 +5,24 @@ import gov.cdc.dataprocessing.model.dto.lab_result.EdxLabInformationDto; import gov.cdc.dataprocessing.model.dto.observation.ObservationDto; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface IObservationMatchingService { void processMatchedProxyVO(LabResultProxyContainer labResultProxyVO, LabResultProxyContainer matchedlabResultProxyVO, diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/observation/IObservationService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/observation/IObservationService.java index 53249ee49..ec437d957 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/observation/IObservationService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/observation/IObservationService.java @@ -4,6 +4,24 @@ import gov.cdc.dataprocessing.model.container.model.LabResultProxyContainer; import gov.cdc.dataprocessing.model.dto.observation.ObservationDto; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface IObservationService { ObservationDto processingLabResultContainer(LabResultProxyContainer labResultProxyContainer) throws DataProcessingException; LabResultProxyContainer getObservationToLabResultContainer(Long observationUid) throws DataProcessingException; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/observation/IObservationSummaryService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/observation/IObservationSummaryService.java index 70289be1d..15cf8411e 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/observation/IObservationSummaryService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/observation/IObservationSummaryService.java @@ -9,6 +9,24 @@ import java.util.Collection; import java.util.Map; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface IObservationSummaryService { Collection findAllActiveLabReportUidListForManage(Long investigationUid, String whereClause) throws DataProcessingException; Map getLabParticipations(Long observationUID) throws DataProcessingException; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/organization/IOrganizationMatchingService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/organization/IOrganizationMatchingService.java index 636d35792..b5ce984a9 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/organization/IOrganizationMatchingService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/organization/IOrganizationMatchingService.java @@ -4,6 +4,24 @@ import gov.cdc.dataprocessing.model.container.model.OrganizationContainer; import gov.cdc.dataprocessing.model.dto.log.EDXActivityDetailLogDto; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface IOrganizationMatchingService { EDXActivityDetailLogDto getMatchingOrganization( OrganizationContainer organizationContainer) diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/organization/IOrganizationService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/organization/IOrganizationService.java index b266f16f6..4e98a9187 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/organization/IOrganizationService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/organization/IOrganizationService.java @@ -5,6 +5,24 @@ import gov.cdc.dataprocessing.model.container.model.OrganizationContainer; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface IOrganizationService { OrganizationContainer processingOrganization(LabResultProxyContainer labResultProxyContainer) throws DataProcessingConsumerException; } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/page_and_pam/IPageService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/page_and_pam/IPageService.java index 2d73b4431..e6d787690 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/page_and_pam/IPageService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/page_and_pam/IPageService.java @@ -3,6 +3,24 @@ import gov.cdc.dataprocessing.exception.DataProcessingException; import gov.cdc.dataprocessing.model.container.model.PageActProxyContainer; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface IPageService { Long setPageProxyWithAutoAssoc(String typeCd, PageActProxyContainer pageProxyVO, Long observationUid, String observationTypeCd, String processingDecision) throws DataProcessingException; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/page_and_pam/IPamService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/page_and_pam/IPamService.java index 36ae5ad17..7d51be22b 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/page_and_pam/IPamService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/page_and_pam/IPamService.java @@ -5,6 +5,24 @@ import gov.cdc.dataprocessing.model.container.model.PamProxyContainer; import gov.cdc.dataprocessing.model.container.model.PublicHealthCaseContainer; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface IPamService { Long setPamProxyWithAutoAssoc(PamProxyContainer pamProxyVO, Long observationUid, String observationTypeCd) throws DataProcessingException; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/paticipation/IParticipationService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/paticipation/IParticipationService.java index f71ac0851..de17cc790 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/paticipation/IParticipationService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/paticipation/IParticipationService.java @@ -3,6 +3,24 @@ import gov.cdc.dataprocessing.exception.DataProcessingException; import gov.cdc.dataprocessing.model.dto.participation.ParticipationDto; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface IParticipationService { Long findPatientMprUidByObservationUid(String classCode, String typeCode, Long actUid); void saveParticipation(ParticipationDto participationDto) throws DataProcessingException; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/person/INokMatchingService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/person/INokMatchingService.java index c20fa6bf8..0b5a634bd 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/person/INokMatchingService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/person/INokMatchingService.java @@ -4,6 +4,24 @@ import gov.cdc.dataprocessing.model.container.model.PersonContainer; import gov.cdc.dataprocessing.model.dto.matching.EdxPatientMatchDto; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface INokMatchingService { EdxPatientMatchDto getMatchingNextOfKin(PersonContainer personContainer) throws DataProcessingException; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/person/IPatientMatchingService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/person/IPatientMatchingService.java index 74fa88475..dee5a8605 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/person/IPatientMatchingService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/person/IPatientMatchingService.java @@ -4,6 +4,24 @@ import gov.cdc.dataprocessing.model.container.model.PersonContainer; import gov.cdc.dataprocessing.model.dto.matching.EdxPatientMatchDto; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface IPatientMatchingService { EdxPatientMatchDto getMatchingPatient(PersonContainer personContainer) throws DataProcessingException; boolean getMultipleMatchFound(); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/person/IPersonService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/person/IPersonService.java index 4a5e88356..a59358025 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/person/IPersonService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/person/IPersonService.java @@ -6,6 +6,24 @@ import gov.cdc.dataprocessing.model.container.model.PersonContainer; import gov.cdc.dataprocessing.model.dto.lab_result.EdxLabInformationDto; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface IPersonService { PersonContainer processingPatient(LabResultProxyContainer labResultProxyContainer, EdxLabInformationDto edxLabInformationDto, PersonContainer personContainer) throws DataProcessingConsumerException, DataProcessingException; PersonContainer processingNextOfKin(LabResultProxyContainer labResultProxyContainer, PersonContainer personContainer) throws DataProcessingException; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/person/IProviderMatchingService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/person/IProviderMatchingService.java index 1bead0d9f..d22dc6fde 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/person/IProviderMatchingService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/person/IProviderMatchingService.java @@ -4,6 +4,24 @@ import gov.cdc.dataprocessing.model.container.model.PersonContainer; import gov.cdc.dataprocessing.model.dto.log.EDXActivityDetailLogDto; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface IProviderMatchingService { EDXActivityDetailLogDto getMatchingProvider(PersonContainer personContainer) throws DataProcessingException; Long setProvider(PersonContainer personContainer, String businessTriggerCd) throws DataProcessingException; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/public_health_case/IAutoInvestigationService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/public_health_case/IAutoInvestigationService.java index 426f63085..0d8a22f14 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/public_health_case/IAutoInvestigationService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/public_health_case/IAutoInvestigationService.java @@ -10,6 +10,24 @@ import java.util.Collection; import java.util.Map; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface IAutoInvestigationService { /** * Description: this method create either pageAct or pam; for object to Become PAM investigation type must be INV_FORM_VAR or INV_FORM_RVCT. diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/public_health_case/IContactSummaryService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/public_health_case/IContactSummaryService.java index a159985c4..c526c24c7 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/public_health_case/IContactSummaryService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/public_health_case/IContactSummaryService.java @@ -4,6 +4,24 @@ import java.util.Collection; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface IContactSummaryService { Collection getContactListForInvestigation(Long publicHealthCaseUID) throws DataProcessingException; } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/public_health_case/IDecisionSupportService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/public_health_case/IDecisionSupportService.java index 59c56d71a..39e8360f1 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/public_health_case/IDecisionSupportService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/public_health_case/IDecisionSupportService.java @@ -4,6 +4,24 @@ import gov.cdc.dataprocessing.model.container.model.LabResultProxyContainer; import gov.cdc.dataprocessing.model.dto.lab_result.EdxLabInformationDto; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface IDecisionSupportService { EdxLabInformationDto validateProxyContainer(LabResultProxyContainer labResultProxyVO, EdxLabInformationDto edxLabInformationDT) throws DataProcessingException; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/public_health_case/IInvestigationNotificationService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/public_health_case/IInvestigationNotificationService.java index 039d8bedb..7d1f04f5c 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/public_health_case/IInvestigationNotificationService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/public_health_case/IInvestigationNotificationService.java @@ -3,6 +3,24 @@ import gov.cdc.dataprocessing.exception.DataProcessingException; import gov.cdc.dataprocessing.model.dto.log.EDXActivityDetailLogDto; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface IInvestigationNotificationService { EDXActivityDetailLogDto sendNotification(Object pageObj, String nndComment) throws DataProcessingException; } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/public_health_case/IInvestigationService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/public_health_case/IInvestigationService.java index cec39c12f..7469e67ae 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/public_health_case/IInvestigationService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/public_health_case/IInvestigationService.java @@ -7,6 +7,24 @@ import java.util.Collection; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface IInvestigationService { void updateAutoResendNotificationsAsync(BaseContainer v); void setAssociations(Long investigationUID, diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/public_health_case/ILdfService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/public_health_case/ILdfService.java index ae48ddfc3..249da3e1e 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/public_health_case/ILdfService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/public_health_case/ILdfService.java @@ -5,6 +5,24 @@ import java.util.List; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface ILdfService { List getLDFCollection(Long busObjectUid, String conditionCode) throws DataProcessingException; } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/public_health_case/IPublicHealthCaseService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/public_health_case/IPublicHealthCaseService.java index 5621f5f88..d24d6dd03 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/public_health_case/IPublicHealthCaseService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/public_health_case/IPublicHealthCaseService.java @@ -3,6 +3,24 @@ import gov.cdc.dataprocessing.exception.DataProcessingException; import gov.cdc.dataprocessing.model.container.model.PublicHealthCaseContainer; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface IPublicHealthCaseService { Long setPublicHealthCase(PublicHealthCaseContainer publicHealthCaseContainer) throws DataProcessingException; } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/public_health_case/IRetrieveSummaryService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/public_health_case/IRetrieveSummaryService.java index 4b3fd9111..44a13a580 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/public_health_case/IRetrieveSummaryService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/public_health_case/IRetrieveSummaryService.java @@ -7,6 +7,24 @@ import java.util.Collection; import java.util.Map; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface IRetrieveSummaryService { void checkBeforeCreateAndStoreMessageLogDTCollection(Long investigationUID, Collection reportSumVOCollection); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/role/IRoleService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/role/IRoleService.java index 3420eaa5a..78e20c000 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/role/IRoleService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/role/IRoleService.java @@ -5,6 +5,24 @@ import java.util.Collection; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface IRoleService { Collection findRoleScopedToPatient(Long uid); void saveRole(RoleDto roleDto); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/stored_proc/IMsgOutEStoredProcService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/stored_proc/IMsgOutEStoredProcService.java index ee159e4d6..e55c34575 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/stored_proc/IMsgOutEStoredProcService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/stored_proc/IMsgOutEStoredProcService.java @@ -3,6 +3,24 @@ import gov.cdc.dataprocessing.exception.DataProcessingException; import gov.cdc.dataprocessing.model.dto.lab_result.EdxLabInformationDto; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface IMsgOutEStoredProcService { void callUpdateSpecimenCollDateSP(EdxLabInformationDto edxLabInformationDto) throws DataProcessingException; } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/uid_generator/IOdseIdGeneratorService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/uid_generator/IOdseIdGeneratorService.java index 3177d3144..578348733 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/uid_generator/IOdseIdGeneratorService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/uid_generator/IOdseIdGeneratorService.java @@ -1,5 +1,23 @@ package gov.cdc.dataprocessing.service.interfaces.uid_generator; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface IOdseIdGeneratorService { // LocalUidGenerator getLocalIdAndUpdateSeed(LocalIdClass localIdClass) throws DataProcessingException; } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/uid_generator/IOdseIdGeneratorWCacheService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/uid_generator/IOdseIdGeneratorWCacheService.java index aedea24c6..a78e887a8 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/uid_generator/IOdseIdGeneratorWCacheService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/uid_generator/IOdseIdGeneratorWCacheService.java @@ -4,6 +4,24 @@ import gov.cdc.dataprocessing.exception.DataProcessingException; import gov.cdc.dataprocessing.model.dto.uid.LocalUidModel; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface IOdseIdGeneratorWCacheService { LocalUidModel getValidLocalUid(LocalIdClass localIdClass, boolean gaApplied) throws DataProcessingException; } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/uid_generator/IUidService.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/uid_generator/IUidService.java index bd0058f2d..6af9e5b32 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/uid_generator/IUidService.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/interfaces/uid_generator/IUidService.java @@ -8,6 +8,24 @@ import gov.cdc.dataprocessing.model.container.model.PamProxyContainer; import gov.cdc.dataprocessing.model.dto.act.ActRelationshipDto; +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint +/** + 125 - Comment complaint + 3776 - Complex complaint + 6204 - Forcing convert to stream to list complaint + 1141 - Nested complaint + 1118 - Private constructor complaint + 1186 - Add nested comment for empty constructor complaint + 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain + */ +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public interface IUidService { /** * This method checks for the negative uid value for any ACT & ENTITY DT then compare them diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/action/PageActPatient.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/action/PageActPatient.java index 2c6700c2e..445051164 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/action/PageActPatient.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/action/PageActPatient.java @@ -14,8 +14,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PageActPatient { Long patientRevisionUid; Long mprUid; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/action/PageActPhc.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/action/PageActPhc.java index c8c62981a..524bee8da 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/action/PageActPhc.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/action/PageActPhc.java @@ -13,8 +13,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PageActPhc { Long falsePublicHealthCaseUid; Long actualUid; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/auth_user/AuthUserProfileInfo.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/auth_user/AuthUserProfileInfo.java index a964c9bf7..a976dc6d6 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/auth_user/AuthUserProfileInfo.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/auth_user/AuthUserProfileInfo.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class AuthUserProfileInfo { private AuthUser authUser; private Collection authUserRealizedRoleCollection; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/decision_support/DsmLabMatchHelper.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/decision_support/DsmLabMatchHelper.java index 007758a5b..4229a9224 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/decision_support/DsmLabMatchHelper.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/decision_support/DsmLabMatchHelper.java @@ -17,6 +17,8 @@ import gov.cdc.dataprocessing.service.model.wds.WdsValueTextReport; import lombok.Getter; import lombok.Setter; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import java.math.BigDecimal; import java.util.*; @@ -31,9 +33,12 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class DsmLabMatchHelper { + private static final Logger logger = LoggerFactory.getLogger(DsmLabMatchHelper.class); // NOSONAR + static final String NULL_STRING = "null"; //hold quick access values for this Workflow Decision Support algorithm private Map systemNameMap = new HashMap(); //name-OID @@ -156,7 +161,7 @@ public DsmLabMatchHelper(Algorithm algorithmDocument) throws DataProcessingExcep BigDecimal algorithmNumericValue1 = new BigDecimal(elrCriteria.getElrNumericResultValue().getValue1()); thisNumericValue.setValue1(algorithmNumericValue1); } catch (Exception e) { - e.printStackTrace(); + logger.info(e.getMessage()); } } //separator @@ -168,7 +173,7 @@ public DsmLabMatchHelper(Algorithm algorithmDocument) throws DataProcessingExcep BigDecimal algorithmNumericValue2 = new BigDecimal(elrCriteria.getElrNumericResultValue().getValue2()); thisNumericValue.setValue2(algorithmNumericValue2); } catch (Exception e) { - e.printStackTrace(); + logger.info(e.getMessage()); } //units if (elrCriteria.getElrNumericResultValue().getUnit() != null) { @@ -247,7 +252,7 @@ public WdsReport isThisLabAMatch(Collection resultedTestCodeColl, wdsReport = testIfAlgorthmMatchesLab(resultedTestColl, resultedTestCodedValueList, resultedTestTextValueList, resultedTestNumericValueList); } catch (Exception e) { - e.printStackTrace(); + logger.info(e.getMessage()); } return wdsReport; } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/decision_support/TestCodedValue.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/decision_support/TestCodedValue.java index 5c99ec36f..b24be338a 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/decision_support/TestCodedValue.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/decision_support/TestCodedValue.java @@ -13,8 +13,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class TestCodedValue { private String testCode; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/decision_support/TestNumericValue.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/decision_support/TestNumericValue.java index 8c358bffa..68218a2b5 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/decision_support/TestNumericValue.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/decision_support/TestNumericValue.java @@ -15,8 +15,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class TestNumericValue { private String testCode; private String testCodeDesc; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/decision_support/TestTextValue.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/decision_support/TestTextValue.java index 45a314bf1..b8339f9ce 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/decision_support/TestTextValue.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/decision_support/TestTextValue.java @@ -14,8 +14,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class TestTextValue { private String testCode; private String testCodeDesc; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/lookup_data/MetaAndWaCommonAttribute.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/lookup_data/MetaAndWaCommonAttribute.java index cc1ce2972..aa0a4fd13 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/lookup_data/MetaAndWaCommonAttribute.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/lookup_data/MetaAndWaCommonAttribute.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class MetaAndWaCommonAttribute { private Long id; private Long questionUid; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/person/PersonAggContainer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/person/PersonAggContainer.java index e2c51b996..a47216f7f 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/person/PersonAggContainer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/person/PersonAggContainer.java @@ -14,8 +14,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PersonAggContainer { PersonContainer personContainer; PersonContainer providerContainer; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/person/PersonId.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/person/PersonId.java index 40b316b70..d4aeb7b4c 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/person/PersonId.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/person/PersonId.java @@ -13,8 +13,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PersonId { public Long personId; //NOSONAR public Long personParentId; //NOSONAR diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/phc/PublicHealthCaseFlowContainer.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/phc/PublicHealthCaseFlowContainer.java index 261d6730f..347ebbc80 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/phc/PublicHealthCaseFlowContainer.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/phc/PublicHealthCaseFlowContainer.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PublicHealthCaseFlowContainer { LabResultProxyContainer labResultProxyContainer; EdxLabInformationDto edxLabInformationDto; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/wds/WdsReport.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/wds/WdsReport.java index 3e2122c60..0d8ebe050 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/wds/WdsReport.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/wds/WdsReport.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class WdsReport { private WdsValueCodedReport wdsValueCodedReport; private List wdsValueTextReportList = new ArrayList<>(); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/wds/WdsTrackerView.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/wds/WdsTrackerView.java index 881a9d88e..cfd110d29 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/wds/WdsTrackerView.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/wds/WdsTrackerView.java @@ -16,8 +16,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class WdsTrackerView { private List wdsReport; PublicHealthCaseDto publicHealthCase; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/wds/WdsValueCodedReport.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/wds/WdsValueCodedReport.java index 7013189f7..c8b7f3aa5 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/wds/WdsValueCodedReport.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/wds/WdsValueCodedReport.java @@ -14,8 +14,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class WdsValueCodedReport { private String codeType; private String inputCode; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/wds/WdsValueNumericReport.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/wds/WdsValueNumericReport.java index 7ee1904f7..38637ed63 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/wds/WdsValueNumericReport.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/wds/WdsValueNumericReport.java @@ -13,8 +13,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class WdsValueNumericReport { private String codeType; private String inputCode1; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/wds/WdsValueTextReport.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/wds/WdsValueTextReport.java index b21cb37da..d0daa36da 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/wds/WdsValueTextReport.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/service/model/wds/WdsValueTextReport.java @@ -13,8 +13,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class WdsValueTextReport { private String codeType; private String inputCode; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/DataParserForSql.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/DataParserForSql.java index edfb5eb33..daae8851a 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/DataParserForSql.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/DataParserForSql.java @@ -12,8 +12,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class DataParserForSql { public static T parseValue(Object value, Class type) { diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/DynamicBeanBinding.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/DynamicBeanBinding.java index f61cb5cc2..7b3aaf9ad 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/DynamicBeanBinding.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/DynamicBeanBinding.java @@ -18,8 +18,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class DynamicBeanBinding { private static Map beanMethodMap = new HashMap<>(); @@ -30,7 +31,7 @@ public class DynamicBeanBinding { * returns */ public static void populateBean(Object bean, String colNm, String colVal) - throws Exception { + throws DataProcessingException { try { @@ -90,7 +91,7 @@ public static void populateBean(Object bean, String colNm, String colVal) } } - private static String getSetterName(String columnName) throws Exception { + private static String getSetterName(String columnName) throws DataProcessingException { try { StringBuilder sb = new StringBuilder("set"); StringTokenizer st = new StringTokenizer(columnName, "_"); @@ -109,7 +110,7 @@ private static String getSetterName(String columnName) throws Exception { @SuppressWarnings("unchecked") private static Map getMethods(Class beanClass) - throws Exception { + throws DataProcessingException { try { if (beanMethodMap.get(beanClass) == null) { Method[] gettingMethods = beanClass.getMethods(); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/GsonUtil.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/GsonUtil.java index 2e61b905c..27eb1f5fd 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/GsonUtil.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/GsonUtil.java @@ -10,8 +10,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class GsonUtil { public static Gson GSON = new Gson(); } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/RulesEngineUtil.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/RulesEngineUtil.java index 8466ef956..c01098e28 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/RulesEngineUtil.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/RulesEngineUtil.java @@ -12,8 +12,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class RulesEngineUtil { public static int[] CalcMMWR(String pDate) { diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/StringUtils.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/StringUtils.java index 7b3d683d3..adddc14df 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/StringUtils.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/StringUtils.java @@ -11,8 +11,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class StringUtils { public static Timestamp stringToStrutsTimestamp(String strTime) { diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/auth/AuthUtil.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/auth/AuthUtil.java index f015e0668..05f177bbe 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/auth/AuthUtil.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/auth/AuthUtil.java @@ -14,8 +14,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class AuthUtil { public static AuthUser authUser; public static Collection authUserRealizedRoleCollection; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/act/ActIdRepositoryUtil.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/act/ActIdRepositoryUtil.java index 950b9d3af..347872290 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/act/ActIdRepositoryUtil.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/act/ActIdRepositoryUtil.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ActIdRepositoryUtil { private final ActIdRepository actIdRepository; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/act/ActLocatorParticipationRepositoryUtil.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/act/ActLocatorParticipationRepositoryUtil.java index 3efe8a8d6..0dc3414f2 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/act/ActLocatorParticipationRepositoryUtil.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/act/ActLocatorParticipationRepositoryUtil.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ActLocatorParticipationRepositoryUtil { private final ActLocatorParticipationRepository actLocatorParticipationRepository; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/act/ActRelationshipRepositoryUtil.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/act/ActRelationshipRepositoryUtil.java index e94f3e6ac..6cb664cb1 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/act/ActRelationshipRepositoryUtil.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/act/ActRelationshipRepositoryUtil.java @@ -22,8 +22,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ActRelationshipRepositoryUtil { private final ActRelationshipRepository actRelationshipRepository; private final ActRelationshipHistoryRepository actRelationshipHistoryRepository; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/act/ActRepositoryUtil.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/act/ActRepositoryUtil.java index 5d6d51b25..ffe74e3a9 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/act/ActRepositoryUtil.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/act/ActRepositoryUtil.java @@ -13,8 +13,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ActRepositoryUtil { private final ActRepository actRepository; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/data_parser/HL7PatientHandler.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/data_parser/HL7PatientHandler.java index 60eb891cd..a3ae74027 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/data_parser/HL7PatientHandler.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/data_parser/HL7PatientHandler.java @@ -40,8 +40,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class HL7PatientHandler { private static final Logger logger = LoggerFactory.getLogger(HL7PatientHandler.class); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/data_parser/NBSObjectConverter.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/data_parser/NBSObjectConverter.java index 9ea5a9265..78b53bd83 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/data_parser/NBSObjectConverter.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/data_parser/NBSObjectConverter.java @@ -37,8 +37,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NBSObjectConverter { private static final Logger logger = LoggerFactory.getLogger(NBSObjectConverter.class); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/data_parser/ORCHandler.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/data_parser/ORCHandler.java index 250b34942..6d2df73d6 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/data_parser/ORCHandler.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/data_parser/ORCHandler.java @@ -33,8 +33,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ORCHandler { private static final Logger logger = LoggerFactory.getLogger(ORCHandler.class); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/data_parser/ObservationRequestHandler.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/data_parser/ObservationRequestHandler.java index e013fd46c..66fffa25f 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/data_parser/ObservationRequestHandler.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/data_parser/ObservationRequestHandler.java @@ -41,8 +41,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ObservationRequestHandler { private static final Logger logger = LoggerFactory.getLogger(ObservationRequestHandler.class); @@ -306,7 +307,7 @@ else if(hl7OBRType.getSetIDOBR()!=null && !hl7OBRType.getSetIDOBR().getHL7Sequen return labResultProxyContainer; } - @SuppressWarnings({"java:S6541", "java:S3776"}) + @SuppressWarnings({"java:S6541", "java:S3776", "java:S2692"}) private void processSusOBR(HL7OBRType hl7OBRType, ObservationDto observationDto, LabResultProxyContainer labResultProxyContainer, EdxLabInformationDto edxLabInformationDto) throws DataProcessingException { try { diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/data_parser/ObservationResultRequestHandler.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/data_parser/ObservationResultRequestHandler.java index e86648736..597f836d5 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/data_parser/ObservationResultRequestHandler.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/data_parser/ObservationResultRequestHandler.java @@ -41,8 +41,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ObservationResultRequestHandler { private static final Logger logger = LoggerFactory.getLogger(ObservationResultRequestHandler.class); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/data_parser/util/CommonLabUtil.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/data_parser/util/CommonLabUtil.java index ab16a05cd..26c7833b1 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/data_parser/util/CommonLabUtil.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/data_parser/util/CommonLabUtil.java @@ -18,8 +18,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class CommonLabUtil { public String getXMLElementNameForOBR(HL7OBRType hl7OBRType) throws DataProcessingException { try { diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/data_parser/util/EntityIdUtil.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/data_parser/util/EntityIdUtil.java index 084f22455..ba8eb376e 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/data_parser/util/EntityIdUtil.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/data_parser/util/EntityIdUtil.java @@ -25,8 +25,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EntityIdUtil { private static final Logger logger = LoggerFactory.getLogger(EntityIdUtil.class); private final ICatchingValueService catchingValueService; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/data_parser/util/HL7SpecimenUtil.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/data_parser/util/HL7SpecimenUtil.java index 4b66b3bf6..a9eaa773a 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/data_parser/util/HL7SpecimenUtil.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/data_parser/util/HL7SpecimenUtil.java @@ -31,8 +31,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class HL7SpecimenUtil { private static final Logger logger = LoggerFactory.getLogger(HL7SpecimenUtil.class); private final NBSObjectConverter nbsObjectConverter; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/data_parser/util/LabResultUtil.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/data_parser/util/LabResultUtil.java index bafd9f102..94ad4c651 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/data_parser/util/LabResultUtil.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/data_parser/util/LabResultUtil.java @@ -26,8 +26,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class LabResultUtil { diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/edx/EdxEventProcessRepositoryUtil.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/edx/EdxEventProcessRepositoryUtil.java index 638298158..e93521094 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/edx/EdxEventProcessRepositoryUtil.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/edx/EdxEventProcessRepositoryUtil.java @@ -19,8 +19,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EdxEventProcessRepositoryUtil { private final EdxEventProcessRepository edxEventProcessRepository; private final ActRepositoryUtil actRepositoryUtil; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/edx/EdxPhcrDocumentUtil.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/edx/EdxPhcrDocumentUtil.java index d9e078e5f..e1ef3c2f1 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/edx/EdxPhcrDocumentUtil.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/edx/EdxPhcrDocumentUtil.java @@ -8,6 +8,8 @@ import gov.cdc.dataprocessing.model.dto.nbs.NbsCaseAnswerDto; import gov.cdc.dataprocessing.model.dto.nbs.NbsQuestionMetadata; import gov.cdc.dataprocessing.service.interfaces.lookup_data.ILookupService; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.stereotype.Component; import java.util.*; @@ -21,9 +23,12 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EdxPhcrDocumentUtil { + private static final Logger logger = LoggerFactory.getLogger(EdxPhcrDocumentUtil.class); // NOSONAR + public static final String REQUIRED = "_REQUIRED"; private final ILookupService lookupService; @@ -114,7 +119,7 @@ public String requiredFieldCheck(Map requiredQuestionIdentifierM } } } catch (Exception e) { - e.printStackTrace(); + logger.info(e.getMessage()); } if(errorTextColl!=null && errorTextColl.size()>0){ Iterator iterator = errorTextColl.iterator(); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/entity/EntityHelper.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/entity/EntityHelper.java index 913280ec5..ad0a67b9a 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/entity/EntityHelper.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/entity/EntityHelper.java @@ -24,8 +24,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EntityHelper { private static final Logger logger = LoggerFactory.getLogger(EntityHelper.class); private final PrepareAssocModelHelper prepareAssocModel; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/entity/EntityRepositoryUtil.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/entity/EntityRepositoryUtil.java index 7f6e0d2fd..0cff8ffd3 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/entity/EntityRepositoryUtil.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/entity/EntityRepositoryUtil.java @@ -15,8 +15,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EntityRepositoryUtil { private final EntityRepository entityRepository; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/generic_helper/ConcurrentCheck.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/generic_helper/ConcurrentCheck.java index 74fcfa15d..87071ab1f 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/generic_helper/ConcurrentCheck.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/generic_helper/ConcurrentCheck.java @@ -17,8 +17,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ConcurrentCheck { diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/generic_helper/ManagerUtil.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/generic_helper/ManagerUtil.java index a1da732b8..7003e8f04 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/generic_helper/ManagerUtil.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/generic_helper/ManagerUtil.java @@ -25,8 +25,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ManagerUtil { private final IPersonService patientService; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/generic_helper/PrepareAssocModelHelper.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/generic_helper/PrepareAssocModelHelper.java index 660dc99a7..4acb87aea 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/generic_helper/PrepareAssocModelHelper.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/generic_helper/PrepareAssocModelHelper.java @@ -31,8 +31,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PrepareAssocModelHelper { private static final Logger logger = LoggerFactory.getLogger(PrepareAssocModelHelper.class); @@ -131,7 +132,7 @@ else if(!(recStatusCd.equals(NEDSSConstant.RECORD_STATUS_ACTIVE) || recStatusCd. } catch(Exception e) { - e.printStackTrace(); + logger.info(e.getMessage()); } assocDTInterface.setLastChgUserId(AuthUtil.authUser.getNedssEntryId()); @@ -182,7 +183,7 @@ else if(!(recStatusCd.equals(NEDSSConstant.RECORD_STATUS_ACTIVE) || recStatusCd. } catch(Exception e) { - e.printStackTrace(); + logger.info(e.getMessage()); } // if(!nbsSecurityObj.getEntryID().equals("")) // { @@ -241,7 +242,7 @@ else if( } catch(Exception e) { - e.printStackTrace(); + logger.info(e.getMessage()); } assocDTInterface.setLastChgUserId(AuthUtil.authUser.getNedssEntryId()); assocDTInterface.setLastChgReasonCd(null); @@ -510,7 +511,7 @@ protected RootDtoInterface prepareNewEntityVO(RootDtoInterface theRootDTInterfac } catch(Exception e) { - e.printStackTrace(); + logger.info(e.getMessage()); throw new DataProcessingException(e.getMessage(), e); } } @@ -570,7 +571,7 @@ protected RootDtoInterface prepareDirtyActVO(RootDtoInterface theRootDTInterface } catch(Exception e) { - e.printStackTrace(); + logger.info(e.getMessage()); throw new DataProcessingException(e.getMessage(), e); } } @@ -677,7 +678,7 @@ else if(!(recStatusCd.equals(NEDSSConstant.RECORD_STATUS_ACTIVE) || recStatusCd. } catch(Exception e) { - e.printStackTrace(); + logger.info(e.getMessage()); } assocDTInterface.setLastChgUserId(AuthUtil.authUser.getNedssEntryId()); assocDTInterface.setLastChgReasonCd(null); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/generic_helper/PropertyUtil.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/generic_helper/PropertyUtil.java index d3569131e..d692a6969 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/generic_helper/PropertyUtil.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/generic_helper/PropertyUtil.java @@ -1,6 +1,8 @@ package gov.cdc.dataprocessing.utilities.component.generic_helper; import gov.cdc.dataprocessing.cache.PropertyUtilCache; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; @@ -15,9 +17,11 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PropertyUtil { + private static final Logger logger = LoggerFactory.getLogger(PropertyUtil.class); // NOSONAR @Value("${nbs.data.hiv_program_areas}") private String hivProgArea = ""; @@ -46,7 +50,7 @@ private void cachedHivProgramArea(){ } } } catch (Exception e) { - e.printStackTrace(); + logger.info(e.getMessage()); } } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/jurisdiction/ProgAreaJurisdictionUtil.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/jurisdiction/ProgAreaJurisdictionUtil.java index 219bffe9a..723a98a99 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/jurisdiction/ProgAreaJurisdictionUtil.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/jurisdiction/ProgAreaJurisdictionUtil.java @@ -1,6 +1,8 @@ package gov.cdc.dataprocessing.utilities.component.jurisdiction; import gov.cdc.dataprocessing.cache.SrteCache; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.stereotype.Component; import java.util.ArrayList; @@ -16,9 +18,12 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ProgAreaJurisdictionUtil { + private static final Logger logger = LoggerFactory.getLogger(ProgAreaJurisdictionUtil.class); // NOSONAR + public long getPAJHash(String programAreaCode, String jurisdictionCode) { long hashCode = 0; @@ -32,7 +37,7 @@ public long getPAJHash(String programAreaCode, String jurisdictionCode) } catch(Exception e) { - e.printStackTrace(); + logger.info(e.getMessage()); } } return hashCode; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/nbs/NbsDocumentRepositoryUtil.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/nbs/NbsDocumentRepositoryUtil.java index 318abe441..0394f40a9 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/nbs/NbsDocumentRepositoryUtil.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/nbs/NbsDocumentRepositoryUtil.java @@ -26,8 +26,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NbsDocumentRepositoryUtil { private final CustomRepository customRepository; private final PatientRepositoryUtil patientRepositoryUtil; @@ -71,7 +72,7 @@ public NbsDocumentContainer getNBSDocumentWithoutActRelationship(Long nbsDocUid) } - public Long updateDocumentWithOutthePatient(NbsDocumentContainer nbsDocVO) throws Exception { + public Long updateDocumentWithOutthePatient(NbsDocumentContainer nbsDocVO) throws DataProcessingException { Long nbsDocUid = null; try { diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/nbs/NbsNoteRepositoryUtil.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/nbs/NbsNoteRepositoryUtil.java index 49b36809c..55089c4e9 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/nbs/NbsNoteRepositoryUtil.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/nbs/NbsNoteRepositoryUtil.java @@ -16,8 +16,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NbsNoteRepositoryUtil { private final NbsNoteRepository nbsNoteRepository; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/notification/NotificationRepositoryUtil.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/notification/NotificationRepositoryUtil.java index 7a90c7791..35c593f5b 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/notification/NotificationRepositoryUtil.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/notification/NotificationRepositoryUtil.java @@ -31,8 +31,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class NotificationRepositoryUtil { private final NotificationRepository notificationRepository; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/observation/ObservationRepositoryUtil.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/observation/ObservationRepositoryUtil.java index 070a871e7..835e9bd9b 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/observation/ObservationRepositoryUtil.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/observation/ObservationRepositoryUtil.java @@ -41,8 +41,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ObservationRepositoryUtil { private static final Logger logger = LoggerFactory.getLogger(ObservationRepositoryUtil.class); // NOSONAR diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/observation/ObservationUtil.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/observation/ObservationUtil.java index 83425ecd7..4c5de8998 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/observation/ObservationUtil.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/observation/ObservationUtil.java @@ -23,8 +23,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ObservationUtil { diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/organization/OrganizationRepositoryUtil.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/organization/OrganizationRepositoryUtil.java index d41429b36..f1b44a5ea 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/organization/OrganizationRepositoryUtil.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/organization/OrganizationRepositoryUtil.java @@ -58,8 +58,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class OrganizationRepositoryUtil { private static final Logger logger = LoggerFactory.getLogger(OrganizationRepositoryUtil.class); /** diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/page_and_pam/PageRepositoryUtil.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/page_and_pam/PageRepositoryUtil.java index 07ca9ba69..6c3831f5a 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/page_and_pam/PageRepositoryUtil.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/page_and_pam/PageRepositoryUtil.java @@ -48,8 +48,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PageRepositoryUtil { private final IInvestigationService investigationService; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/page_and_pam/PamRepositoryUtil.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/page_and_pam/PamRepositoryUtil.java index 0ff377274..a08c1f0ce 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/page_and_pam/PamRepositoryUtil.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/page_and_pam/PamRepositoryUtil.java @@ -21,8 +21,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PamRepositoryUtil { NbsActEntityRepository nbsActEntityRepository; NbsCaseAnswerRepository nbsCaseAnswerRepository; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/participation/ParticipationRepositoryUtil.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/participation/ParticipationRepositoryUtil.java index 07c1fcf59..0d7bbd703 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/participation/ParticipationRepositoryUtil.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/participation/ParticipationRepositoryUtil.java @@ -21,8 +21,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ParticipationRepositoryUtil { private final ParticipationRepository participationRepository; private final ParticipationHistRepository participationHistRepository; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/patient/EdxPatientMatchRepositoryUtil.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/patient/EdxPatientMatchRepositoryUtil.java index d15c32b72..60aebd17b 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/patient/EdxPatientMatchRepositoryUtil.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/patient/EdxPatientMatchRepositoryUtil.java @@ -22,8 +22,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class EdxPatientMatchRepositoryUtil { private static final Logger logger = LoggerFactory.getLogger(EdxPatientMatchRepositoryUtil.class); private final EdxPatientMatchRepository edxPatientMatchRepository; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/patient/PatientRepositoryUtil.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/patient/PatientRepositoryUtil.java index 3759739e3..64b4d0695 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/patient/PatientRepositoryUtil.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/patient/PatientRepositoryUtil.java @@ -47,8 +47,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PatientRepositoryUtil { private static final Logger logger = LoggerFactory.getLogger(PatientRepositoryUtil.class); diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/patient/PersonUtil.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/patient/PersonUtil.java index b01f3d1c5..db12174c4 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/patient/PersonUtil.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/patient/PersonUtil.java @@ -23,8 +23,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PersonUtil { private final ObservationUtil observationUtil; private final PatientRepositoryUtil patientRepositoryUtil; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/public_health_case/AdvancedCriteria.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/public_health_case/AdvancedCriteria.java index 8cb32ce82..da8c50182 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/public_health_case/AdvancedCriteria.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/public_health_case/AdvancedCriteria.java @@ -21,8 +21,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class AdvancedCriteria { public Map getAdvancedInvCriteriaMap(Algorithm algorithmDocument) throws DataProcessingException { diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/public_health_case/CaseManagementRepositoryUtil.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/public_health_case/CaseManagementRepositoryUtil.java index 2e94a5971..30c441821 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/public_health_case/CaseManagementRepositoryUtil.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/public_health_case/CaseManagementRepositoryUtil.java @@ -18,8 +18,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class CaseManagementRepositoryUtil { private final CaseManagementRepository caseManagementRepository; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/public_health_case/CdaPhcProcessor.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/public_health_case/CdaPhcProcessor.java index 6b143504b..513716f0d 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/public_health_case/CdaPhcProcessor.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/public_health_case/CdaPhcProcessor.java @@ -13,8 +13,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class CdaPhcProcessor { public static void setStandardNBSCaseAnswerVals(PublicHealthCaseDto phcDT, NbsCaseAnswerDto nbsCaseAnswerDT) throws DataProcessingException { diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/public_health_case/ConfirmationMethodRepositoryUtil.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/public_health_case/ConfirmationMethodRepositoryUtil.java index 91fa35ed9..5650a99d6 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/public_health_case/ConfirmationMethodRepositoryUtil.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/public_health_case/ConfirmationMethodRepositoryUtil.java @@ -16,8 +16,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ConfirmationMethodRepositoryUtil { private final ConfirmationMethodRepository confirmationMethodRepository; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/public_health_case/PublicHealthCaseRepositoryUtil.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/public_health_case/PublicHealthCaseRepositoryUtil.java index 168124bca..bf9497b83 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/public_health_case/PublicHealthCaseRepositoryUtil.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/public_health_case/PublicHealthCaseRepositoryUtil.java @@ -46,8 +46,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class PublicHealthCaseRepositoryUtil { private final PublicHealthCaseRepository publicHealthCaseRepository; private final EntityGroupRepository entityGroupRepository; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/sql/QueryHelper.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/sql/QueryHelper.java index 19f7ebcc3..1b9670507 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/sql/QueryHelper.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/sql/QueryHelper.java @@ -21,8 +21,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class QueryHelper { private final ProgAreaJurisdictionUtil progAreaJurisdictionUtil; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/wds/ValidateDecisionSupport.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/wds/ValidateDecisionSupport.java index 73dd01c61..beed62ae1 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/wds/ValidateDecisionSupport.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/wds/ValidateDecisionSupport.java @@ -36,8 +36,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class ValidateDecisionSupport { private static final Logger logger = LoggerFactory.getLogger(ValidateDecisionSupport.class); @@ -106,7 +107,7 @@ else if (value.getReturnType().equals(String.class)) // Added because question I } } } catch (Exception e) { - e.printStackTrace(); + logger.info(e.getMessage()); } @@ -346,7 +347,7 @@ else if (edxRuleManageDT.getDefaultCommentValue() != null && !edxRuleManageDT.ge } } } catch (Exception e) { - e.printStackTrace(); + logger.info(e.getMessage()); } } @SuppressWarnings({"java:S3776", "java:S6541"}) diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/wds/WdsObjectChecker.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/wds/WdsObjectChecker.java index b71863ebe..e0f67833d 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/wds/WdsObjectChecker.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/component/wds/WdsObjectChecker.java @@ -4,6 +4,8 @@ import gov.cdc.dataprocessing.model.dto.edx.EdxRuleManageDto; import gov.cdc.dataprocessing.model.dto.nbs.NbsQuestionMetadata; import gov.cdc.dataprocessing.utilities.StringUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.stereotype.Component; import java.lang.reflect.Method; @@ -18,9 +20,12 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class WdsObjectChecker { + private static final Logger logger = LoggerFactory.getLogger(WdsObjectChecker.class); // NOSONAR + @SuppressWarnings("java:S6541") public boolean checkNbsObject(EdxRuleManageDto edxRuleManageDT, Object object, NbsQuestionMetadata metaData) { String dataLocation = metaData.getDataLocation(); @@ -150,7 +155,7 @@ else if (ob == null) } } } catch (Exception e) { - e.printStackTrace(); + logger.info(e.getMessage()); } return false; } diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/model/Coded.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/model/Coded.java index 998d1893b..003d1becb 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/model/Coded.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/model/Coded.java @@ -13,8 +13,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class Coded { private String code; private String codeDescription; diff --git a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/time/TimeStampUtil.java b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/time/TimeStampUtil.java index d1b596638..0fee2344d 100644 --- a/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/time/TimeStampUtil.java +++ b/data-processing-service/src/main/java/gov/cdc/dataprocessing/utilities/time/TimeStampUtil.java @@ -16,8 +16,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class TimeStampUtil { public static Timestamp getCurrentTimeStamp() { long currentTimeMillis = System.currentTimeMillis(); diff --git a/data-processing-service/src/test/java/gov/cdc/dataprocessing/service/implementation/investigation/DecisionSupportServiceTest.java b/data-processing-service/src/test/java/gov/cdc/dataprocessing/service/implementation/investigation/DecisionSupportServiceTest.java index c6eef7474..3c3c7fa08 100644 --- a/data-processing-service/src/test/java/gov/cdc/dataprocessing/service/implementation/investigation/DecisionSupportServiceTest.java +++ b/data-processing-service/src/test/java/gov/cdc/dataprocessing/service/implementation/investigation/DecisionSupportServiceTest.java @@ -38,6 +38,7 @@ import java.math.BigInteger; import java.util.*; +import static gov.cdc.dataprocessing.test_data.TestDataReader.gsonForTest; import static org.junit.jupiter.api.Assertions.*; import static org.mockito.ArgumentMatchers.any; import static org.mockito.Mockito.*; @@ -85,7 +86,7 @@ void tearDown() { void validateProxyContainer_Success_MarkedAsReview() throws DataProcessingException { var alsoCol = "[{\"dsmAlgorithmUid\":9,\"algorithmNm\":\"He\",\"eventType\":\"11648804\",\"conditionList\":\"11065\",\"frequency\":\"1\",\"applyTo\":\"1\",\"sendingSystemList\":\"\",\"eventAction\":\"3\",\"algorithmPayload\":\"\\u003cAlgorithm xmlns\\u003d\\\"http://www.cdc.gov/NEDSS\\\"\\u003e\\n \\u003cAlgorithmName\\u003eHe\\u003c/AlgorithmName\\u003e\\n \\u003cEvent\\u003e\\n \\u003cCode\\u003e11648804\\u003c/Code\\u003e\\n \\u003cCodeDescTxt\\u003eLaboratory Report\\u003c/CodeDescTxt\\u003e\\n \\u003cCodeSystemCode\\u003e2.16.840.1.113883.6.96\\u003c/CodeSystemCode\\u003e\\n \\u003c/Event\\u003e\\n \\u003cFrequency\\u003e\\n \\u003cCode\\u003e1\\u003c/Code\\u003e\\n \\u003cCodeDescTxt\\u003eReal-Time\\u003c/CodeDescTxt\\u003e\\n \\u003cCodeSystemCode\\u003eL\\u003c/CodeSystemCode\\u003e\\n \\u003c/Frequency\\u003e\\n \\u003cAppliesToEntryMethods\\u003e\\n \\u003cEntryMethod\\u003e\\n \\u003cCode\\u003e1\\u003c/Code\\u003e\\n \\u003cCodeDescTxt\\u003eElectronic Document\\u003c/CodeDescTxt\\u003e\\n \\u003cCodeSystemCode\\u003eL\\u003c/CodeSystemCode\\u003e\\n \\u003c/EntryMethod\\u003e\\n \\u003c/AppliesToEntryMethods\\u003e\\n \\u003cInvestigationType/\\u003e\\n \\u003cApplyToConditions\\u003e\\n \\u003cCondition\\u003e\\n \\u003cCode\\u003e11065\\u003c/Code\\u003e\\n \\u003cCodeDescTxt\\u003e2019 Novel Coronavirus\\u003c/CodeDescTxt\\u003e\\n \\u003cCodeSystemCode\\u003e2.16.840.1.114222.4.5.277\\u003c/CodeSystemCode\\u003e\\n \\u003c/Condition\\u003e\\n \\u003c/ApplyToConditions\\u003e\\n \\u003cComment/\\u003e\\n \\u003cElrAdvancedCriteria\\u003e\\n \\u003cEventDateLogic\\u003e\\n \\u003cElrTimeLogic\\u003e\\n \\u003cElrTimeLogicInd\\u003e\\n \\u003cCode\\u003eN\\u003c/Code\\u003e\\n \\u003c/ElrTimeLogicInd\\u003e\\n \\u003c/ElrTimeLogic\\u003e\\n \\u003c/EventDateLogic\\u003e\\n \\u003cAndOrLogic\\u003eOR\\u003c/AndOrLogic\\u003e\\n \\u003cElrCriteria\\u003e\\n \\u003cResultedTest\\u003e\\n \\u003cCode\\u003e77190-7\\u003c/Code\\u003e\\n \\u003cCodeDescTxt\\u003eHepatitis B virus core and surface Ab and surface Ag panel - Serum (77190-7)\\u003c/CodeDescTxt\\u003e\\n \\u003c/ResultedTest\\u003e\\n \\u003cElrNumericResultValue\\u003e\\n \\u003cComparatorCode\\u003e\\n \\u003cCode\\u003e\\u003e\\u003d\\u003c/Code\\u003e\\n \\u003cCodeDescTxt\\u003e\\u003e\\u003d\\u003c/CodeDescTxt\\u003e\\n \\u003c/ComparatorCode\\u003e\\n \\u003cValue1\\u003e1\\u003c/Value1\\u003e\\n \\u003cUnit\\u003e\\n \\u003cCode\\u003emL\\u003c/Code\\u003e\\n \\u003cCodeDescTxt\\u003emL\\u003c/CodeDescTxt\\u003e\\n \\u003c/Unit\\u003e\\n \\u003c/ElrNumericResultValue\\u003e\\n \\u003c/ElrCriteria\\u003e\\n \\u003cInvLogic\\u003e\\n \\u003cInvLogicInd\\u003e\\n \\u003cCode\\u003eN\\u003c/Code\\u003e\\n \\u003c/InvLogicInd\\u003e\\n \\u003c/InvLogic\\u003e\\n \\u003c/ElrAdvancedCriteria\\u003e\\n \\u003cAction\\u003e\\n \\u003cMarkAsReviewed\\u003e\\n \\u003cOnFailureToMarkAsReviewed\\u003e\\n \\u003cCode\\u003e2\\u003c/Code\\u003e\\n \\u003cCodeDescTxt\\u003eRetain Event Record\\u003c/CodeDescTxt\\u003e\\n \\u003cCodeSystemCode\\u003eL\\u003c/CodeSystemCode\\u003e\\n \\u003c/OnFailureToMarkAsReviewed\\u003e\\n \\u003cAdditionalComment/\\u003e\\n \\u003c/MarkAsReviewed\\u003e\\n \\u003c/Action\\u003e\\n\\u003c/Algorithm\\u003e\",\"adminComment\":\"\",\"statusCd\":\"A\",\"statusTime\":\"Jun 13, 2024, 7:18:51 PM\",\"lastChgUserId\":10055282,\"lastChgTime\":\"Jun 13, 2024, 7:18:48 PM\",\"resultedTestList\":\"77190-7\"}]"; - Gson gson = new Gson(); + Gson gson = gsonForTest(); TestDataReader test = new TestDataReader(); LabResultProxyContainer labProxyContainer = test.readDataFromJsonPath("wds/wds_reviewed_lab.json", LabResultProxyContainer.class); EdxLabInformationDto edxLab = test.readDataFromJsonPath("wds/wds_reviewed_edx.json", EdxLabInformationDto.class); @@ -107,7 +108,7 @@ void validateProxyContainer_Success_MarkedAsReview() throws DataProcessingExcept void validateProxyContainer_Success_Investigation() throws DataProcessingException { var alsoCol = "[{\"dsmAlgorithmUid\":9,\"algorithmNm\":\"He\",\"eventType\":\"11648804\",\"conditionList\":\"11065\",\"frequency\":\"1\",\"applyTo\":\"1\",\"sendingSystemList\":\"\",\"eventAction\":\"1\",\"algorithmPayload\":\"\\u003cAlgorithm xmlns\\u003d\\\"http://www.cdc.gov/NEDSS\\\"\\u003e\\n \\u003cAlgorithmName\\u003eHe\\u003c/AlgorithmName\\u003e\\n \\u003cEvent\\u003e\\n \\u003cCode\\u003e11648804\\u003c/Code\\u003e\\n \\u003cCodeDescTxt\\u003eLaboratory Report\\u003c/CodeDescTxt\\u003e\\n \\u003cCodeSystemCode\\u003e2.16.840.1.113883.6.96\\u003c/CodeSystemCode\\u003e\\n \\u003c/Event\\u003e\\n \\u003cFrequency\\u003e\\n \\u003cCode\\u003e1\\u003c/Code\\u003e\\n \\u003cCodeDescTxt\\u003eReal-Time\\u003c/CodeDescTxt\\u003e\\n \\u003cCodeSystemCode\\u003eL\\u003c/CodeSystemCode\\u003e\\n \\u003c/Frequency\\u003e\\n \\u003cAppliesToEntryMethods\\u003e\\n \\u003cEntryMethod\\u003e\\n \\u003cCode\\u003e1\\u003c/Code\\u003e\\n \\u003cCodeDescTxt\\u003eElectronic Document\\u003c/CodeDescTxt\\u003e\\n \\u003cCodeSystemCode\\u003eL\\u003c/CodeSystemCode\\u003e\\n \\u003c/EntryMethod\\u003e\\n \\u003c/AppliesToEntryMethods\\u003e\\n \\u003cInvestigationType/\\u003e\\n \\u003cApplyToConditions\\u003e\\n \\u003cCondition\\u003e\\n \\u003cCode\\u003e11065\\u003c/Code\\u003e\\n \\u003cCodeDescTxt\\u003e2019 Novel Coronavirus\\u003c/CodeDescTxt\\u003e\\n \\u003cCodeSystemCode\\u003e2.16.840.1.114222.4.5.277\\u003c/CodeSystemCode\\u003e\\n \\u003c/Condition\\u003e\\n \\u003c/ApplyToConditions\\u003e\\n \\u003cComment/\\u003e\\n \\u003cElrAdvancedCriteria\\u003e\\n \\u003cEventDateLogic\\u003e\\n \\u003cElrTimeLogic\\u003e\\n \\u003cElrTimeLogicInd\\u003e\\n \\u003cCode\\u003eN\\u003c/Code\\u003e\\n \\u003c/ElrTimeLogicInd\\u003e\\n \\u003c/ElrTimeLogic\\u003e\\n \\u003c/EventDateLogic\\u003e\\n \\u003cAndOrLogic\\u003eOR\\u003c/AndOrLogic\\u003e\\n \\u003cElrCriteria\\u003e\\n \\u003cResultedTest\\u003e\\n \\u003cCode\\u003e77190-7\\u003c/Code\\u003e\\n \\u003cCodeDescTxt\\u003eHepatitis B virus core and surface Ab and surface Ag panel - Serum (77190-7)\\u003c/CodeDescTxt\\u003e\\n \\u003c/ResultedTest\\u003e\\n \\u003cElrNumericResultValue\\u003e\\n \\u003cComparatorCode\\u003e\\n \\u003cCode\\u003e\\u003e\\u003d\\u003c/Code\\u003e\\n \\u003cCodeDescTxt\\u003e\\u003e\\u003d\\u003c/CodeDescTxt\\u003e\\n \\u003c/ComparatorCode\\u003e\\n \\u003cValue1\\u003e1\\u003c/Value1\\u003e\\n \\u003cUnit\\u003e\\n \\u003cCode\\u003emL\\u003c/Code\\u003e\\n \\u003cCodeDescTxt\\u003emL\\u003c/CodeDescTxt\\u003e\\n \\u003c/Unit\\u003e\\n \\u003c/ElrNumericResultValue\\u003e\\n \\u003c/ElrCriteria\\u003e\\n \\u003cInvLogic\\u003e\\n \\u003cInvLogicInd\\u003e\\n \\u003cCode\\u003eY\\u003c/Code\\u003e\\n \\u003c/InvLogicInd\\u003e\\n \\u003c/InvLogic\\u003e\\n \\u003c/ElrAdvancedCriteria\\u003e\\n \\u003cAction\\u003e\\n \\u003cCreateInvestigation\\u003e\\n \\u003cOnFailureToCreateInvestigation\\u003e\\n \\u003cCode\\u003e2\\u003c/Code\\u003e\\n \\u003cCodeDescTxt\\u003eRetain Event Record\\u003c/CodeDescTxt\\u003e\\n \\u003cCodeSystemCode\\u003eL\\u003c/CodeSystemCode\\u003e\\n \\u003c/OnFailureToCreateInvestigation\\u003e\\n \\u003c/CreateInvestigation\\u003e\\n \\u003c/Action\\u003e\\n\\u003c/Algorithm\\u003e\",\"adminComment\":\"\",\"statusCd\":\"A\",\"statusTime\":\"Jun 13, 2024, 9:01:07 PM\",\"lastChgUserId\":10055282,\"lastChgTime\":\"Jun 13, 2024, 9:01:04 PM\",\"resultedTestList\":\"77190-7\"}]"; - Gson gson = new Gson(); + Gson gson = gsonForTest(); TestDataReader test = new TestDataReader(); LabResultProxyContainer labProxyContainer = test.readDataFromJsonPath("wds/wds_reviewed_lab.json", LabResultProxyContainer.class); EdxLabInformationDto edxLab = test.readDataFromJsonPath("wds/wds_reviewed_edx.json", EdxLabInformationDto.class); @@ -136,7 +137,7 @@ void validateProxyContainer_Success_Investigation() throws DataProcessingExcepti void validateProxyContainer_Success_Notification() throws DataProcessingException { var alsoCol = "[{\"dsmAlgorithmUid\":9,\"algorithmNm\":\"He\",\"eventType\":\"11648804\",\"conditionList\":\"11120\",\"frequency\":\"1\",\"applyTo\":\"1\",\"sendingSystemList\":\"\",\"eventAction\":\"2\",\"algorithmPayload\":\"\\u003cAlgorithm xmlns\\u003d\\\"http://www.cdc.gov/NEDSS\\\"\\u003e\\n \\u003cAlgorithmName\\u003eHe\\u003c/AlgorithmName\\u003e\\n \\u003cEvent\\u003e\\n \\u003cCode\\u003e11648804\\u003c/Code\\u003e\\n \\u003cCodeDescTxt\\u003eLaboratory Report\\u003c/CodeDescTxt\\u003e\\n \\u003cCodeSystemCode\\u003e2.16.840.1.113883.6.96\\u003c/CodeSystemCode\\u003e\\n \\u003c/Event\\u003e\\n \\u003cFrequency\\u003e\\n \\u003cCode\\u003e1\\u003c/Code\\u003e\\n \\u003cCodeDescTxt\\u003eReal-Time\\u003c/CodeDescTxt\\u003e\\n \\u003cCodeSystemCode\\u003eL\\u003c/CodeSystemCode\\u003e\\n \\u003c/Frequency\\u003e\\n \\u003cAppliesToEntryMethods\\u003e\\n \\u003cEntryMethod\\u003e\\n \\u003cCode\\u003e1\\u003c/Code\\u003e\\n \\u003cCodeDescTxt\\u003eElectronic Document\\u003c/CodeDescTxt\\u003e\\n \\u003cCodeSystemCode\\u003eL\\u003c/CodeSystemCode\\u003e\\n \\u003c/EntryMethod\\u003e\\n \\u003c/AppliesToEntryMethods\\u003e\\n \\u003cInvestigationType\\u003ePG_Generic_V2_Investigation\\u003c/InvestigationType\\u003e\\n \\u003cApplyToConditions\\u003e\\n \\u003cCondition\\u003e\\n \\u003cCode\\u003e11120\\u003c/Code\\u003e\\n \\u003cCodeDescTxt\\u003eAcute flaccid myelitis\\u003c/CodeDescTxt\\u003e\\n \\u003cCodeSystemCode\\u003e2.16.840.1.114222.4.5.277\\u003c/CodeSystemCode\\u003e\\n \\u003c/Condition\\u003e\\n \\u003c/ApplyToConditions\\u003e\\n \\u003cComment/\\u003e\\n \\u003cElrAdvancedCriteria\\u003e\\n \\u003cEventDateLogic\\u003e\\n \\u003cElrTimeLogic\\u003e\\n \\u003cElrTimeLogicInd\\u003e\\n \\u003cCode\\u003eN\\u003c/Code\\u003e\\n \\u003c/ElrTimeLogicInd\\u003e\\n \\u003c/ElrTimeLogic\\u003e\\n \\u003c/EventDateLogic\\u003e\\n \\u003cAndOrLogic\\u003eOR\\u003c/AndOrLogic\\u003e\\n \\u003cElrCriteria\\u003e\\n \\u003cResultedTest\\u003e\\n \\u003cCode\\u003e77190-7\\u003c/Code\\u003e\\n \\u003cCodeDescTxt\\u003eHepatitis B virus core and surface Ab and surface Ag panel - Serum (77190-7)\\u003c/CodeDescTxt\\u003e\\n \\u003c/ResultedTest\\u003e\\n \\u003cElrNumericResultValue\\u003e\\n \\u003cComparatorCode\\u003e\\n \\u003cCode\\u003e\\u003e\\u003d\\u003c/Code\\u003e\\n \\u003cCodeDescTxt\\u003e\\u003e\\u003d\\u003c/CodeDescTxt\\u003e\\n \\u003c/ComparatorCode\\u003e\\n \\u003cValue1\\u003e1\\u003c/Value1\\u003e\\n \\u003cUnit\\u003e\\n \\u003cCode\\u003emL\\u003c/Code\\u003e\\n \\u003cCodeDescTxt\\u003emL\\u003c/CodeDescTxt\\u003e\\n \\u003c/Unit\\u003e\\n \\u003c/ElrNumericResultValue\\u003e\\n \\u003c/ElrCriteria\\u003e\\n \\u003cInvLogic\\u003e\\n \\u003cInvLogicInd\\u003e\\n \\u003cCode\\u003eY\\u003c/Code\\u003e\\n \\u003c/InvLogicInd\\u003e\\n \\u003c/InvLogic\\u003e\\n \\u003c/ElrAdvancedCriteria\\u003e\\n \\u003cAction\\u003e\\n \\u003cCreateInvestigationWithNND\\u003e\\n \\u003cOnFailureToCreateInvestigation\\u003e\\n \\u003cCode\\u003e2\\u003c/Code\\u003e\\n \\u003cCodeDescTxt\\u003eRetain Event Record\\u003c/CodeDescTxt\\u003e\\n \\u003cCodeSystemCode\\u003eL\\u003c/CodeSystemCode\\u003e\\n \\u003c/OnFailureToCreateInvestigation\\u003e\\n \\u003cInvestigationDefaultValues\\u003e\\n \\u003cDefaultValue\\u003e\\n \\u003cDefaultQuestion\\u003e\\n \\u003cCode\\u003eINV163\\u003c/Code\\u003e\\n \\u003cCodeDescTxt\\u003eCase Status\\u003c/CodeDescTxt\\u003e\\n \\u003cCodeSystemCode\\u003e2.16.840.1.113883.6.1\\u003c/CodeSystemCode\\u003e\\n \\u003c/DefaultQuestion\\u003e\\n \\u003cDefaultBehavior\\u003e\\n \\u003cCode\\u003e1\\u003c/Code\\u003e\\n \\u003cCodeDescTxt\\u003eOverwrite Existing Values\\u003c/CodeDescTxt\\u003e\\n \\u003cCodeSystemCode\\u003eL\\u003c/CodeSystemCode\\u003e\\n \\u003c/DefaultBehavior\\u003e\\n \\u003cDefaultStringValue\\u003eC\\u003c/DefaultStringValue\\u003e\\n \\u003c/DefaultValue\\u003e\\n \\u003c/InvestigationDefaultValues\\u003e\\n \\u003cQueueForApproval\\u003efalse\\u003c/QueueForApproval\\u003e\\n \\u003cOnFailureToCreateNND\\u003e\\n \\u003cCode\\u003e3\\u003c/Code\\u003e\\n \\u003cCodeDescTxt\\u003eRetain Investigation and Event Record\\u003c/CodeDescTxt\\u003e\\n \\u003cCodeSystemCode\\u003eL\\u003c/CodeSystemCode\\u003e\\n \\u003c/OnFailureToCreateNND\\u003e\\n \\u003cNNDComment\\u003eTEST\\u003c/NNDComment\\u003e\\n \\u003c/CreateInvestigationWithNND\\u003e\\n \\u003c/Action\\u003e\\n\\u003c/Algorithm\\u003e\",\"adminComment\":\"\",\"statusCd\":\"A\",\"statusTime\":\"Jun 13, 2024, 9:39:03 PM\",\"lastChgUserId\":10055282,\"lastChgTime\":\"Jun 13, 2024, 9:39:00 PM\",\"resultedTestList\":\"77190-7\"}]"; - Gson gson = new Gson(); + Gson gson = gsonForTest(); TestDataReader test = new TestDataReader(); LabResultProxyContainer labProxyContainer = test.readDataFromJsonPath("wds/wds_reviewed_lab.json", LabResultProxyContainer.class); EdxLabInformationDto edxLab = test.readDataFromJsonPath("wds/wds_reviewed_edx.json", EdxLabInformationDto.class); diff --git a/data-processing-service/src/test/java/gov/cdc/dataprocessing/service/implementation/other/DataExtractionServiceTest.java b/data-processing-service/src/test/java/gov/cdc/dataprocessing/service/implementation/other/DataExtractionServiceTest.java index c8dcdf932..608398851 100644 --- a/data-processing-service/src/test/java/gov/cdc/dataprocessing/service/implementation/other/DataExtractionServiceTest.java +++ b/data-processing-service/src/test/java/gov/cdc/dataprocessing/service/implementation/other/DataExtractionServiceTest.java @@ -33,6 +33,7 @@ import java.sql.Timestamp; import java.util.ArrayList; +import static gov.cdc.dataprocessing.test_data.TestDataReader.gsonForTest; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.mockito.Mockito.*; @@ -71,7 +72,7 @@ void setUp() { @Test void testParsingDataToObjectSuccess() throws DataProcessingConsumerException, JAXBException, DataProcessingException { - Gson gson = new Gson(); + Gson gson = gsonForTest(); NbsInterfaceModel nbsInterfaceModel = null; nbsInterfaceModel = gson.fromJson(getData(), NbsInterfaceModel.class); utility = new DataExtractionServiceUtility(); @@ -92,7 +93,7 @@ void testParsingDataToObjectSuccess() throws DataProcessingConsumerException, JA @Test void testParsingDataToObjectThrowsDataProcessingException() throws JAXBException { - Gson gson = new Gson(); + Gson gson = gsonForTest(); NbsInterfaceModel nbsInterfaceModel = gson.fromJson(getDataThrowsException(), NbsInterfaceModel.class); utility = mock(DataExtractionServiceUtility.class); @@ -111,7 +112,7 @@ void testParsingDataToObjectThrowsDataProcessingException() throws JAXBException @Test void testParsingDataToObjectThrowsMoreThanOnePatientException() { - Gson gson = new Gson(); + Gson gson = gsonForTest(); NbsInterfaceModel nbsInterfaceModel = gson.fromJson(getDataThrowGreaterThanOnePatientException(), NbsInterfaceModel.class); utility = new DataExtractionServiceUtility(); @@ -128,7 +129,7 @@ void testParsingDataToObjectThrowsMoreThanOnePatientException() { @Test void testParsingDataToObjectThrowsForParentResultNotNull() { - Gson gson = new Gson(); + Gson gson = gsonForTest(); NbsInterfaceModel nbsInterfaceModel = gson.fromJson(getDataForParentResultException(), NbsInterfaceModel.class); utility = new DataExtractionServiceUtility(); @@ -145,7 +146,7 @@ void testParsingDataToObjectThrowsForParentResultNotNull() { @Test void testParsingDataToObjectThrowsForMultipleOBRException() { - Gson gson = new Gson(); + Gson gson = gsonForTest(); NbsInterfaceModel nbsInterfaceModel = gson.fromJson(getDataForMultipleOBRException(), NbsInterfaceModel.class); utility = new DataExtractionServiceUtility(); @@ -162,7 +163,7 @@ void testParsingDataToObjectThrowsForMultipleOBRException() { @Test void testParsingDataToObjectThrowsForMultipleOBRException2() { - Gson gson = new Gson(); + Gson gson = gsonForTest(); NbsInterfaceModel nbsInterfaceModel = gson.fromJson(getDataForParentNotNull(), NbsInterfaceModel.class); utility = new DataExtractionServiceUtility(); @@ -179,7 +180,7 @@ void testParsingDataToObjectThrowsForMultipleOBRException2() { @Test void testParsingDataToObjectThrowsForMultipleOBRException3() { - Gson gson = new Gson(); + Gson gson = gsonForTest(); NbsInterfaceModel nbsInterfaceModel = gson.fromJson(getDataForParentObsValueDesc(), NbsInterfaceModel.class); utility = new DataExtractionServiceUtility(); @@ -196,7 +197,7 @@ void testParsingDataToObjectThrowsForMultipleOBRException3() { @Test void testParsingDataToObjectThrowsForMultipleOBRException4() { - Gson gson = new Gson(); + Gson gson = gsonForTest(); NbsInterfaceModel nbsInterfaceModel = gson.fromJson(getDataForHL7PatientID(), NbsInterfaceModel.class); utility = new DataExtractionServiceUtility(); @@ -213,7 +214,7 @@ void testParsingDataToObjectThrowsForMultipleOBRException4() { @Test void testParsingDataToObjectThrowsForMultipleOBRException5() { - Gson gson = new Gson(); + Gson gson = gsonForTest(); NbsInterfaceModel nbsInterfaceModel = gson.fromJson(getDataForAlternateId(), NbsInterfaceModel.class); utility = new DataExtractionServiceUtility(); @@ -230,7 +231,7 @@ void testParsingDataToObjectThrowsForMultipleOBRException5() { @Test void testParsingDataToObjectThrowsForMultipleOBRException6() { - Gson gson = new Gson(); + Gson gson = gsonForTest(); NbsInterfaceModel nbsInterfaceModel = gson.fromJson(getDataForAlternateId2(), NbsInterfaceModel.class); utility = new DataExtractionServiceUtility(); diff --git a/data-processing-service/src/test/java/gov/cdc/dataprocessing/service/implementation/person/base/PatientMatchingBaseServiceTest.java b/data-processing-service/src/test/java/gov/cdc/dataprocessing/service/implementation/person/base/PatientMatchingBaseServiceTest.java index f1ec4f505..4970921d5 100644 --- a/data-processing-service/src/test/java/gov/cdc/dataprocessing/service/implementation/person/base/PatientMatchingBaseServiceTest.java +++ b/data-processing-service/src/test/java/gov/cdc/dataprocessing/service/implementation/person/base/PatientMatchingBaseServiceTest.java @@ -524,9 +524,7 @@ void testSetPersonHashCdPatient_RecordStatusActive() throws DataProcessingExcept personDto.setPersonParentUid(12345L); personDto.setRecordStatusCd(NEDSSConstant.RECORD_STATUS_ACTIVE); personContainer.setThePersonDto(personDto); - PatientMatchingBaseService spyService = spy(patientMatchingBaseService); doNothing().when(edxPatientMatchRepositoryUtil).deleteEdxPatientMatchDTColl(personDto.getPersonParentUid()); - doNothing().when(spyService).setPersonToMatchEntityPatient(personContainer); // Act patientMatchingBaseService.setPersonHashCdPatient(personContainer); diff --git a/data-processing-service/src/test/java/gov/cdc/dataprocessing/service/implementation/person/base/ProviderMatchingBaseServiceTest.java b/data-processing-service/src/test/java/gov/cdc/dataprocessing/service/implementation/person/base/ProviderMatchingBaseServiceTest.java index 2b1037cec..4c034690a 100644 --- a/data-processing-service/src/test/java/gov/cdc/dataprocessing/service/implementation/person/base/ProviderMatchingBaseServiceTest.java +++ b/data-processing-service/src/test/java/gov/cdc/dataprocessing/service/implementation/person/base/ProviderMatchingBaseServiceTest.java @@ -47,7 +47,7 @@ void setUp() { MockitoAnnotations.openMocks(this); } @Test - void testProcessingProvider_ValidData() throws Exception { + void testProcessingProvider_ValidData() throws DataProcessingException { // Mock the PersonContainer and PersonDto PersonContainer personContainer = mock(PersonContainer.class); PersonDto personDto = mock(PersonDto.class); @@ -71,7 +71,7 @@ void testProcessingProvider_ValidData() throws Exception { } @Test - void testProcessingProvider_ExceptionHandling() throws Exception { + void testProcessingProvider_ExceptionHandling() throws DataProcessingException { // Mock the PersonContainer and PersonDto PersonContainer personContainer = mock(PersonContainer.class); PersonDto personDto = mock(PersonDto.class); @@ -91,7 +91,7 @@ void testProcessingProvider_ExceptionHandling() throws Exception { } @Test - void testProcessingProvider_CallOrgHashCodeTrue() throws Exception { + void testProcessingProvider_CallOrgHashCodeTrue() throws DataProcessingException { // Mock the PersonContainer and PersonDto PersonContainer personContainer = mock(PersonContainer.class); PersonDto personDto = mock(PersonDto.class); @@ -122,7 +122,7 @@ void testProcessingProvider_CallOrgHashCodeTrue() throws Exception { } @Test - void testProcessingProvider_CallOrgHashCodeTrue_Exception() throws Exception { + void testProcessingProvider_CallOrgHashCodeTrue_Exception() throws DataProcessingException { // Mock the PersonContainer and PersonDto PersonContainer personContainer = mock(PersonContainer.class); PersonDto personDto = mock(PersonDto.class); @@ -152,7 +152,7 @@ void testProcessingProvider_CallOrgHashCodeTrue_Exception() throws Exception { } @Test - void testPersistingProvider_NewPerson() throws Exception { + void testPersistingProvider_NewPerson() throws DataProcessingException { // Mock the PersonContainer and PersonDto PersonContainer personContainer = mock(PersonContainer.class); PersonDto personDto = mock(PersonDto.class); @@ -174,7 +174,7 @@ void testPersistingProvider_NewPerson() throws Exception { } @Test - void testSetProvidertoEntityMatch_Success() throws Exception { + void testSetProvidertoEntityMatch_Success() throws DataProcessingException { // Mock the PersonContainer and PersonDto PersonContainer personContainer = mock(PersonContainer.class); PersonDto personDto = mock(PersonDto.class); @@ -201,7 +201,7 @@ void testSetProvidertoEntityMatch_Success() throws Exception { @Test - void testSetProvidertoEntityMatch_SaveEdxEntityMatchException_First() throws Exception { + void testSetProvidertoEntityMatch_SaveEdxEntityMatchException_First() throws DataProcessingException { // Mock the PersonContainer and PersonDto PersonContainer personContainer = mock(PersonContainer.class); PersonDto personDto = mock(PersonDto.class); @@ -228,7 +228,7 @@ void testSetProvidertoEntityMatch_SaveEdxEntityMatchException_First() throws Exc } @Test - void testSetProvidertoEntityMatch_SaveEdxEntityMatchException_Second() throws Exception { + void testSetProvidertoEntityMatch_SaveEdxEntityMatchException_Second() throws DataProcessingException { // Mock the PersonContainer and PersonDto PersonContainer personContainer = mock(PersonContainer.class); PersonDto personDto = mock(PersonDto.class); diff --git a/data-processing-service/src/test/java/gov/cdc/dataprocessing/service/implementation/public_health_case/InvestigationServiceTests.java b/data-processing-service/src/test/java/gov/cdc/dataprocessing/service/implementation/public_health_case/InvestigationServiceTests.java index 2a7077bab..d6eb02e49 100644 --- a/data-processing-service/src/test/java/gov/cdc/dataprocessing/service/implementation/public_health_case/InvestigationServiceTests.java +++ b/data-processing-service/src/test/java/gov/cdc/dataprocessing/service/implementation/public_health_case/InvestigationServiceTests.java @@ -52,6 +52,7 @@ import java.text.SimpleDateFormat; import java.util.*; +import static gov.cdc.dataprocessing.test_data.TestDataReader.gsonForTest; import static org.junit.jupiter.api.Assertions.*; import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.eq; @@ -122,7 +123,7 @@ void setAssociations_Success() throws DataProcessingException { String phcDTStr = "{\"caseStatusDirty\":false,\"isPamCase\":false,\"isPageCase\":false,\"isStdHivProgramAreaCode\":false,\"caseTypeCd\":\"I\",\"publicHealthCaseUid\":10006070,\"activityFromTime\":\"Jun 20, 2024, 12:00:00 AM\",\"addTime\":\"Jun 20, 2024, 12:36:18 PM\",\"addUserId\":36,\"cd\":\"11120\",\"cdDescTxt\":\"Acute flaccid myelitis\",\"groupCaseCnt\":1,\"investigationStatusCd\":\"O\",\"jurisdictionCd\":\"130001\",\"lastChgTime\":\"Jun 20, 2024, 12:36:18 PM\",\"lastChgUserId\":36,\"localId\":\"CAS10006070GA01\",\"mmwrWeek\":\"25\",\"mmwrYear\":\"2024\",\"progAreaCd\":\"GCD\",\"recordStatusCd\":\"OPEN\",\"recordStatusTime\":\"Jun 20, 2024, 12:36:18 PM\",\"rptFormCmpltTime\":\"Jun 20, 2024, 12:36:11 PM\",\"statusCd\":\"A\",\"programJurisdictionOid\":1300100009,\"sharedInd\":\"T\",\"versionCtrlNbr\":1,\"isSummaryCase\":false,\"itNew\":false,\"itOld\":false,\"itDirty\":false,\"itDelete\":false}"; - Gson gson = new Gson(); + Gson gson = gsonForTest(); TestDataReader test = new TestDataReader(); ObservationContainer labProxyContainer = test.readDataFromJsonPath("phc/phc_investigation_obs.json", ObservationContainer.class); @@ -285,7 +286,7 @@ void setObservationAssociationsImpl_Test_Success() throws DataProcessingExceptio String phcDTStr = "{\"caseStatusDirty\":false,\"isPamCase\":false,\"isPageCase\":false,\"isStdHivProgramAreaCode\":false,\"caseTypeCd\":\"I\",\"publicHealthCaseUid\":10006070,\"activityFromTime\":\"Jun 20, 2024, 12:00:00 AM\",\"addTime\":\"Jun 20, 2024, 12:36:18 PM\",\"addUserId\":36,\"cd\":\"11120\",\"cdDescTxt\":\"Acute flaccid myelitis\",\"groupCaseCnt\":1,\"investigationStatusCd\":\"O\",\"jurisdictionCd\":\"130001\",\"lastChgTime\":\"Jun 20, 2024, 12:36:18 PM\",\"lastChgUserId\":36,\"localId\":\"CAS10006070GA01\",\"mmwrWeek\":\"25\",\"mmwrYear\":\"2024\",\"progAreaCd\":\"GCD\",\"recordStatusCd\":\"OPEN\",\"recordStatusTime\":\"Jun 20, 2024, 12:36:18 PM\",\"rptFormCmpltTime\":\"Jun 20, 2024, 12:36:11 PM\",\"statusCd\":\"A\",\"programJurisdictionOid\":1300100009,\"sharedInd\":\"T\",\"versionCtrlNbr\":1,\"isSummaryCase\":false,\"itNew\":false,\"itOld\":false,\"itDirty\":false,\"itDelete\":false}"; - Gson gson = new Gson(); + Gson gson = gsonForTest(); TestDataReader test = new TestDataReader(); ObservationContainer labProxyContainer = test.readDataFromJsonPath("phc/phc_investigation_obs.json", ObservationContainer.class); @@ -325,7 +326,7 @@ void setObservationAssociationsImpl_Test_Success_NotAssociated() throws DataProc String phcDTStr = "{\"caseStatusDirty\":false,\"isPamCase\":false,\"isPageCase\":false,\"isStdHivProgramAreaCode\":false,\"caseTypeCd\":\"I\",\"publicHealthCaseUid\":10006070,\"activityFromTime\":\"Jun 20, 2024, 12:00:00 AM\",\"addTime\":\"Jun 20, 2024, 12:36:18 PM\",\"addUserId\":36,\"cd\":\"11120\",\"cdDescTxt\":\"Acute flaccid myelitis\",\"groupCaseCnt\":1,\"investigationStatusCd\":\"O\",\"jurisdictionCd\":\"130001\",\"lastChgTime\":\"Jun 20, 2024, 12:36:18 PM\",\"lastChgUserId\":36,\"localId\":\"CAS10006070GA01\",\"mmwrWeek\":\"25\",\"mmwrYear\":\"2024\",\"progAreaCd\":\"GCD\",\"recordStatusCd\":\"OPEN\",\"recordStatusTime\":\"Jun 20, 2024, 12:36:18 PM\",\"rptFormCmpltTime\":\"Jun 20, 2024, 12:36:11 PM\",\"statusCd\":\"A\",\"programJurisdictionOid\":1300100009,\"sharedInd\":\"T\",\"versionCtrlNbr\":1,\"isSummaryCase\":false,\"itNew\":false,\"itOld\":false,\"itDirty\":false,\"itDelete\":false}"; - Gson gson = new Gson(); + Gson gson = gsonForTest(); var phcDt = gson.fromJson(phcDTStr, PublicHealthCaseDto.class); Type listOfPersonsType = new TypeToken>(){}.getType(); @@ -358,7 +359,7 @@ void getPageProxyVO_Success() throws DataProcessingException, ParseException { String typeCd= "PRINT_CDC_CASE"; long publicHealthCaseUid = 10006070L; String phcDTStr = "{\"caseStatusDirty\":false,\"isPamCase\":false,\"isPageCase\":false,\"isStdHivProgramAreaCode\":false,\"caseTypeCd\":\"I\",\"publicHealthCaseUid\":10006070,\"activityFromTime\":\"Jun 20, 2024, 12:00:00 AM\",\"addTime\":\"Jun 20, 2024, 12:36:18 PM\",\"addUserId\":36,\"cd\":\"11120\",\"cdDescTxt\":\"Acute flaccid myelitis\",\"groupCaseCnt\":1,\"investigationStatusCd\":\"O\",\"jurisdictionCd\":\"130001\",\"lastChgTime\":\"Jun 20, 2024, 12:36:18 PM\",\"lastChgUserId\":36,\"localId\":\"CAS10006070GA01\",\"mmwrWeek\":\"25\",\"mmwrYear\":\"2024\",\"progAreaCd\":\"GCD\",\"recordStatusCd\":\"OPEN\",\"recordStatusTime\":\"Jun 20, 2024, 12:36:18 PM\",\"rptFormCmpltTime\":\"Jun 20, 2024, 12:36:11 PM\",\"statusCd\":\"A\",\"programJurisdictionOid\":1300100009,\"sharedInd\":\"T\",\"versionCtrlNbr\":1,\"isSummaryCase\":false,\"itNew\":false,\"itOld\":false,\"itDirty\":false,\"itDelete\":false}"; - Gson gson = new Gson(); + Gson gson = gsonForTest(); var phcDt = gson.fromJson(phcDTStr, PublicHealthCaseDto.class); PublicHealthCaseContainer phcConn = new PublicHealthCaseContainer(); diff --git a/data-processing-service/src/test/java/gov/cdc/dataprocessing/test_data/TestData.java b/data-processing-service/src/test/java/gov/cdc/dataprocessing/test_data/TestData.java index 726b3cdd4..2424f5d56 100644 --- a/data-processing-service/src/test/java/gov/cdc/dataprocessing/test_data/TestData.java +++ b/data-processing-service/src/test/java/gov/cdc/dataprocessing/test_data/TestData.java @@ -25,8 +25,9 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class TestData { public static LabResultProxyContainer labResultProxyContainer = new LabResultProxyContainer() {}; public static ObservationContainer observationContainer = new ObservationContainer(); diff --git a/data-processing-service/src/test/java/gov/cdc/dataprocessing/test_data/TestDataReader.java b/data-processing-service/src/test/java/gov/cdc/dataprocessing/test_data/TestDataReader.java index 3a99ca917..6d65ac7a1 100644 --- a/data-processing-service/src/test/java/gov/cdc/dataprocessing/test_data/TestDataReader.java +++ b/data-processing-service/src/test/java/gov/cdc/dataprocessing/test_data/TestDataReader.java @@ -1,6 +1,7 @@ package gov.cdc.dataprocessing.test_data; import com.google.gson.Gson; +import com.google.gson.GsonBuilder; import gov.cdc.dataprocessing.model.phdc.Container; import jakarta.xml.bind.JAXBContext; import jakarta.xml.bind.JAXBException; @@ -20,9 +21,18 @@ 1118 - Private constructor complaint 1186 - Add nested comment for empty constructor complaint 6809 - Calling transactional method with This. complaint + 2139 - exception rethrow complain */ -@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809"}) +@SuppressWarnings({"java:S125", "java:S3776", "java:S6204", "java:S1141", "java:S1118", "java:S1186", "java:S6809", "java:S6541", "java:S2139"}) public class TestDataReader { + private static final String DATE_FORMAT = "MMM d, yyyy, h:mm:ss a"; // Match the date format in JSON + + public static Gson gsonForTest() { + return new GsonBuilder() + .setDateFormat(DATE_FORMAT) + .create(); + + } public T readDataFromJsonPath(String path, Class type) { String resourcePath = "/test_data" + (path.startsWith("/") ? path : "/" + path); @@ -33,7 +43,11 @@ public T readDataFromJsonPath(String path, Class type) { throw new IllegalArgumentException("Resource not found at path: " + resourcePath); } try (InputStreamReader reader = new InputStreamReader(inputStream, StandardCharsets.UTF_8)) { - Gson gson = new Gson(); + Gson gson = new GsonBuilder() + .setDateFormat(DATE_FORMAT) + .create(); + + data = gson.fromJson(reader, type); } } catch (IllegalArgumentException e) { diff --git a/data-processing-service/src/test/java/gov/cdc/dataprocessing/utilities/component/data_parser/util/EntityIdUtilTest.java b/data-processing-service/src/test/java/gov/cdc/dataprocessing/utilities/component/data_parser/util/EntityIdUtilTest.java index 1dd92a24e..74ea8e53d 100644 --- a/data-processing-service/src/test/java/gov/cdc/dataprocessing/utilities/component/data_parser/util/EntityIdUtilTest.java +++ b/data-processing-service/src/test/java/gov/cdc/dataprocessing/utilities/component/data_parser/util/EntityIdUtilTest.java @@ -314,7 +314,7 @@ void isDateNotOkForDatabase_Test_2() throws ParseException { } @Test - void testIsDateNotOkForDatabase_ExceptionHandling() throws Exception { + void testIsDateNotOkForDatabase_ExceptionHandling() throws Exception { //NOSONAR // Arrange Timestamp timestamp = new Timestamp(System.currentTimeMillis()); SimpleDateFormat mockDateFormat = spy(new SimpleDateFormat("yyyy-MM-dd")); diff --git a/data-processing-service/src/test/java/gov/cdc/dataprocessing/utilities/component/nbs/NbsDocumentRepositoryUtilTest.java b/data-processing-service/src/test/java/gov/cdc/dataprocessing/utilities/component/nbs/NbsDocumentRepositoryUtilTest.java index d693d4131..a6c0253c8 100644 --- a/data-processing-service/src/test/java/gov/cdc/dataprocessing/utilities/component/nbs/NbsDocumentRepositoryUtilTest.java +++ b/data-processing-service/src/test/java/gov/cdc/dataprocessing/utilities/component/nbs/NbsDocumentRepositoryUtilTest.java @@ -97,7 +97,7 @@ void getNBSDocumentWithoutActRelationship_Test_2() throws DataProcessingExceptio } @Test - void updateDocumentWithOutthePatient_Test() throws Exception { + void updateDocumentWithOutthePatient_Test() throws DataProcessingException { NbsDocumentContainer doc = new NbsDocumentContainer(); doc.getNbsDocumentDT().setNbsDocumentMetadataUid(10L); doc.getNbsDocumentDT().setRecordStatusCd( NEDSSConstant.RECORD_STATUS_LOGICAL_DELETE); diff --git a/hl7-parser/src/test/java/gov/cdc/dataingestion/hl7/helper/unitTest/Hl7TestData.java b/hl7-parser/src/test/java/gov/cdc/dataingestion/hl7/helper/unitTest/Hl7TestData.java index e83bf8bd4..7793c227d 100644 --- a/hl7-parser/src/test/java/gov/cdc/dataingestion/hl7/helper/unitTest/Hl7TestData.java +++ b/hl7-parser/src/test/java/gov/cdc/dataingestion/hl7/helper/unitTest/Hl7TestData.java @@ -494,7 +494,7 @@ public class Hl7TestData { + "OBX|1|ST|||Test Value"; - public final static String OruR1MessageSmallInvalid = "MSH|^~\\&|ULTRA|TML|OLIS|OLIS|200905011130||ORU^R01|20169838-v25|T|2.5\r" + public final static String ORU_R1_MESSAGE_SMALL_INVALID = "MSH|^~\\&|ULTRA|TML|OLIS|OLIS|200905011130||ORU^R01|20169838-v25|T|2.5\r" + "PID|||7005728^^^TML^MR||TEST^RACHEL^DIAMOND||19310313|F|||200 ANYWHERE ST^^TORONTO^ON^M6G 2T9||(416)888-8888||||||1014071185^KR\r" + "PV1|1||OLIS||||OLIST^BLAKE^DONALD^THOR^^^^^921379^^^^OLIST\r" + "ORC|RE||T09-100442-RET-0^^OLIS_Site_ID^ISO|||||||||OLIST^BLAKE^DONALD^THOR^^^^L^921379\r"