Skip to content

Commit 0821e57

Browse files
committed
DMP-5252-ARM-5-2-Upgrade
Added no sonar to fix sonar complaint of duplicate code
1 parent 8271669 commit 0821e57

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

build.gradle

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -440,26 +440,26 @@ dependencies {
440440
implementation group: 'org.springframework.cloud', name: 'spring-cloud-starter-openfeign', version: '4.3.0'
441441
implementation 'org.springframework.retry:spring-retry:2.0.12'
442442

443-
implementation 'net.javacrumbs.shedlock:shedlock-spring:6.9.2'
444-
implementation 'net.javacrumbs.shedlock:shedlock-provider-jdbc-template:6.9.2'
443+
implementation 'net.javacrumbs.shedlock:shedlock-spring:6.9.2'
444+
implementation 'net.javacrumbs.shedlock:shedlock-provider-jdbc-template:6.9.2'
445445

446446
implementation group: 'com.github.hmcts.java-logging', name: 'logging', version: '6.1.9'
447447
implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: log4JVersion
448448
implementation group: 'org.apache.logging.log4j', name: 'log4j-to-slf4j', version: log4JVersion
449449
implementation group: 'org.apache.commons', name: 'commons-exec', version: '1.5.0'
450-
implementation group: 'org.apache.commons', name: 'commons-text', version: '1.14.0'
450+
implementation group: 'org.apache.commons', name: 'commons-text', version: '1.14.0'
451451

452452
//CVE-2023-44487
453453
implementation group: 'org.apache.tomcat.embed', name: 'tomcat-embed-core', version: tomcatEmbedVersion
454454
implementation group: 'org.apache.tomcat.embed', name: 'tomcat-embed-websocket', version: tomcatEmbedVersion
455455

456-
implementation platform('com.azure:azure-sdk-bom:1.2.37')
456+
implementation platform('com.azure:azure-sdk-bom:1.2.37')
457457
implementation 'com.azure:azure-storage-blob'
458458

459459
implementation group: 'io.rest-assured', name: 'rest-assured'
460-
implementation group: 'org.flywaydb', name: 'flyway-core', version: '11.11.0'
461-
implementation group: 'org.flywaydb', name: 'flyway-database-postgresql', version: '11.11.0'
462-
implementation group: 'io.hypersistence', name: 'hypersistence-utils-hibernate-63', version: '3.10.3'
460+
implementation group: 'org.flywaydb', name: 'flyway-core', version: '11.11.0'
461+
implementation group: 'org.flywaydb', name: 'flyway-database-postgresql', version: '11.11.0'
462+
implementation group: 'io.hypersistence', name: 'hypersistence-utils-hibernate-63', version: '3.10.3'
463463

464464
//database
465465
implementation 'org.postgresql:postgresql:42.7.7'
@@ -500,7 +500,7 @@ dependencies {
500500
exclude group: 'junit', module: 'junit'
501501
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
502502
}
503-
testImplementation group: 'org.springframework.cloud', name: 'spring-cloud-starter-contract-stub-runner', version: '4.3.0'
503+
testImplementation group: 'org.springframework.cloud', name: 'spring-cloud-starter-contract-stub-runner', version: '4.2.1'
504504
testImplementation 'org.junit.jupiter:junit-jupiter:5.13.4'
505505
testImplementation group: 'io.projectreactor', name: 'reactor-test', version: '3.7.9'
506506
testImplementation 'org.springframework.security:spring-security-test:6.5.2'

src/main/java/uk/gov/hmcts/darts/arm/client/ArmRpoClient.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,8 @@ StorageAccountResponse getStorageAccounts(@RequestHeader(AUTHORIZATION) String b
5757
consumes = APPLICATION_JSON_VALUE, //NOSONAR
5858
produces = APPLICATION_JSON_VALUE //NOSONAR
5959
) //NOSONAR
60-
MasterIndexFieldByRecordClassSchemaResponse getMasterIndexFieldByRecordClassSchema( //NOSONAR
61-
@RequestHeader(AUTHORIZATION) String bearerAuth, //NOSONAR
62-
@RequestBody MasterIndexFieldByRecordClassSchemaRequest //NOSONAR
60+
MasterIndexFieldByRecordClassSchemaResponse getMasterIndexFieldByRecordClassSchema(@RequestHeader(AUTHORIZATION) String bearerAuth, //NOSONAR
61+
@RequestBody MasterIndexFieldByRecordClassSchemaRequest //NOSONAR
6362
masterIndexFieldByRecordClassSchemaRequest); //NOSONAR
6463

6564
@PostMapping(value = "${darts.storage.arm-api.rpo-url.get-profile-entitlements-path}", //NOSONAR
@@ -107,9 +106,9 @@ ProductionOutputFilesResponse getProductionOutputFiles(@RequestHeader(AUTHORIZAT
107106
consumes = APPLICATION_JSON_VALUE, //NOSONAR
108107
produces = APPLICATION_JSON_VALUE //NOSONAR
109108
) //NOSONAR
110-
CreateExportBasedOnSearchResultsTableResponse createExportBasedOnSearchResultsTable( //NOSONAR
111-
@RequestHeader(AUTHORIZATION) String bearerToken,
112-
@RequestBody CreateExportBasedOnSearchResultsTableRequest request); //NOSONAR
109+
CreateExportBasedOnSearchResultsTableResponse createExportBasedOnSearchResultsTable(@RequestHeader(AUTHORIZATION) String bearerToken, //NOSONAR
110+
@RequestBody
111+
CreateExportBasedOnSearchResultsTableRequest request); //NOSONAR
113112

114113
@PostMapping(value = "${darts.storage.arm-api.rpo-url.remove-production-path}", //NOSONAR
115114
consumes = APPLICATION_JSON_VALUE, //NOSONAR

0 commit comments

Comments
 (0)