Skip to content

Commit f74d24a

Browse files
fix sonar qube
1 parent b54e8ea commit f74d24a

File tree

1 file changed

+29
-26
lines changed

1 file changed

+29
-26
lines changed

service/src/main/java/uk/gov/hmcts/reform/fpl/enums/cfv/DocumentType.java

Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -177,125 +177,125 @@ public enum DocumentType {
177177
AA_PARENT_EXPERT_REPORTS("Expert Reports", null,
178178
false, false, false,
179179
null,
180-
null, 260, null, "expertReports"),
180+
null, 260, null, Constants.EXPERT_REPORTS),
181181
ADULT_PSYCHIATRIC_REPORT_ON_PARENTS("└─ Adult Psychiatric Report On Parent(s)", standardResolver(
182182
"adultPsychRepParentsList"),
183183
false, false, false,
184184
defaultWithDocumentBuilder(),
185-
AA_PARENT_EXPERT_REPORTS, 270, DEFAULT_NOTIFICATION_CONFIG, "expertReports"),
185+
AA_PARENT_EXPERT_REPORTS, 270, DEFAULT_NOTIFICATION_CONFIG, Constants.EXPERT_REPORTS),
186186
FAMILY_CENTRE_ASSESSMENTS_NON_RESIDENTIAL("└─ Family Centre Assessments - Non-Residential",
187187
standardResolver("famCentreAssessNonResList"),
188188
false, false, false,
189189
defaultWithDocumentBuilder(),
190-
AA_PARENT_EXPERT_REPORTS, 280, DEFAULT_NOTIFICATION_CONFIG, "expertReports"),
190+
AA_PARENT_EXPERT_REPORTS, 280, DEFAULT_NOTIFICATION_CONFIG, Constants.EXPERT_REPORTS),
191191
FAMILY_CENTRE_ASSESSMENTS_RESIDENTIAL("└─ Family Centre Assessments - Residential",
192192
standardResolver("familyCentreAssesResList"),
193193
false, false, false,
194194
defaultWithDocumentBuilder(),
195-
AA_PARENT_EXPERT_REPORTS, 290, DEFAULT_NOTIFICATION_CONFIG, "expertReports"),
195+
AA_PARENT_EXPERT_REPORTS, 290, DEFAULT_NOTIFICATION_CONFIG, Constants.EXPERT_REPORTS),
196196
HAEMATOLOGIST("└─ Haematologist", standardResolver("haematologistList"),
197197
false, false, false,
198198
defaultWithDocumentBuilder(),
199-
AA_PARENT_EXPERT_REPORTS, 300, DEFAULT_NOTIFICATION_CONFIG, "expertReports"),
199+
AA_PARENT_EXPERT_REPORTS, 300, DEFAULT_NOTIFICATION_CONFIG, Constants.EXPERT_REPORTS),
200200
INDEPENDENT_SOCIAL_WORKER("└─ Independent Social Worker", standardResolver(
201201
"indepSocialWorkerList"),
202202
false, false, false,
203203
defaultWithDocumentBuilder(),
204-
AA_PARENT_EXPERT_REPORTS, 310, DEFAULT_NOTIFICATION_CONFIG, "expertReports"),
204+
AA_PARENT_EXPERT_REPORTS, 310, DEFAULT_NOTIFICATION_CONFIG, Constants.EXPERT_REPORTS),
205205
MULTI_DISCIPLINARY_ASSESSMENT("└─ Multi Disciplinary Assessment", standardResolver(
206206
"multiDisciplinAssessList"),
207207
false, false, false,
208208
defaultWithDocumentBuilder(),
209-
AA_PARENT_EXPERT_REPORTS, 320, DEFAULT_NOTIFICATION_CONFIG, "expertReports"),
209+
AA_PARENT_EXPERT_REPORTS, 320, DEFAULT_NOTIFICATION_CONFIG, Constants.EXPERT_REPORTS),
210210
NEUROSURGEON("└─ Neurosurgeon", standardResolver("neuroSurgeonList"),
211211
false, false, false,
212212
defaultWithDocumentBuilder(),
213-
AA_PARENT_EXPERT_REPORTS, 330, DEFAULT_NOTIFICATION_CONFIG, "expertReports"),
213+
AA_PARENT_EXPERT_REPORTS, 330, DEFAULT_NOTIFICATION_CONFIG, Constants.EXPERT_REPORTS),
214214
OPHTHALMOLOGIST("└─ Ophthalmologist", standardResolver("ophthalmologistList"),
215215
false, false, false,
216216
defaultWithDocumentBuilder(),
217-
AA_PARENT_EXPERT_REPORTS, 340, DEFAULT_NOTIFICATION_CONFIG, "expertReports"),
217+
AA_PARENT_EXPERT_REPORTS, 340, DEFAULT_NOTIFICATION_CONFIG, Constants.EXPERT_REPORTS),
218218
OTHER_EXPERT_REPORT("└─ Other Expert Report", standardResolver("otherExpertReportList"),
219219
false, false, false,
220220
defaultWithDocumentBuilder(),
221-
AA_PARENT_EXPERT_REPORTS, 350, DEFAULT_NOTIFICATION_CONFIG, "expertReports"),
221+
AA_PARENT_EXPERT_REPORTS, 350, DEFAULT_NOTIFICATION_CONFIG, Constants.EXPERT_REPORTS),
222222
OTHER_MEDICAL_REPORT("└─ Other Medical Report", standardResolver("otherMedicalReportList"),
223223
false, false, false,
224224
defaultWithDocumentBuilder(),
225-
AA_PARENT_EXPERT_REPORTS, 360, DEFAULT_NOTIFICATION_CONFIG, "expertReports"),
225+
AA_PARENT_EXPERT_REPORTS, 360, DEFAULT_NOTIFICATION_CONFIG, Constants.EXPERT_REPORTS),
226226
PEDIATRIC("└─ Pediatric", standardResolver("pediatricList"),
227227
false, false, false,
228228
defaultWithDocumentBuilder(),
229-
AA_PARENT_EXPERT_REPORTS, 370, DEFAULT_NOTIFICATION_CONFIG, "expertReports"),
229+
AA_PARENT_EXPERT_REPORTS, 370, DEFAULT_NOTIFICATION_CONFIG, Constants.EXPERT_REPORTS),
230230
PEDIATRIC_RADIOLOGIST("└─ Pediatric Radiologist", standardResolver(
231231
"pediatricRadiologistList"),
232232
false, false, false,
233233
defaultWithDocumentBuilder(),
234-
AA_PARENT_EXPERT_REPORTS, 380, DEFAULT_NOTIFICATION_CONFIG, "expertReports"),
234+
AA_PARENT_EXPERT_REPORTS, 380, DEFAULT_NOTIFICATION_CONFIG, Constants.EXPERT_REPORTS),
235235

236236
PROFESSIONAL_DNA_TESTING("└─ Professional: DNA Testing", standardResolver(
237237
"profDNATestingList"),
238238
false, false, false,
239239
defaultWithDocumentBuilder(),
240-
AA_PARENT_EXPERT_REPORTS, 390, DEFAULT_NOTIFICATION_CONFIG, "expertReports"),
240+
AA_PARENT_EXPERT_REPORTS, 390, DEFAULT_NOTIFICATION_CONFIG, Constants.EXPERT_REPORTS),
241241
PROFESSIONAL_DRUG_ALCOHOL("└─ Professional: Drug/Alcohol", standardResolver(
242242
"profDrugAlcoholList"),
243243
false, false, false,
244244
defaultWithDocumentBuilder(),
245-
AA_PARENT_EXPERT_REPORTS, 400, DEFAULT_NOTIFICATION_CONFIG, "expertReports"),
245+
AA_PARENT_EXPERT_REPORTS, 400, DEFAULT_NOTIFICATION_CONFIG, Constants.EXPERT_REPORTS),
246246
PROFESSIONAL_HAIR_STRAND("└─ Professional: Hair Strand", standardResolver(
247247
"professionalHairStrandList"),
248248
false, false, false,
249249
defaultWithDocumentBuilder(),
250-
AA_PARENT_EXPERT_REPORTS, 410, DEFAULT_NOTIFICATION_CONFIG, "expertReports"),
250+
AA_PARENT_EXPERT_REPORTS, 410, DEFAULT_NOTIFICATION_CONFIG, Constants.EXPERT_REPORTS),
251251
PROFESSIONAL_OTHER("└─ Professional: Other", standardResolver("professionalOtherList"),
252252
false, false, false,
253253
defaultWithDocumentBuilder(),
254-
AA_PARENT_EXPERT_REPORTS, 420, DEFAULT_NOTIFICATION_CONFIG, "expertReports"),
254+
AA_PARENT_EXPERT_REPORTS, 420, DEFAULT_NOTIFICATION_CONFIG, Constants.EXPERT_REPORTS),
255255
PSYCHIATRIC_CHILD_ONLY("└─ Psychiatric - On child only", standardResolver(
256256
"psychiatricChildOnlyList"),
257257
false, false, false,
258258
defaultWithDocumentBuilder(),
259-
AA_PARENT_EXPERT_REPORTS, 430, DEFAULT_NOTIFICATION_CONFIG, "expertReports"),
259+
AA_PARENT_EXPERT_REPORTS, 430, DEFAULT_NOTIFICATION_CONFIG, Constants.EXPERT_REPORTS),
260260
PSYCHIATRIC_CHILD_AND_PARENT("└─ Psychiatric - On child and Parent(s)/carers", standardResolver(
261261
"psychChildParentCarersList"),
262262
false, false, false,
263263
defaultWithDocumentBuilder(),
264-
AA_PARENT_EXPERT_REPORTS, 440, DEFAULT_NOTIFICATION_CONFIG, "expertReports"),
264+
AA_PARENT_EXPERT_REPORTS, 440, DEFAULT_NOTIFICATION_CONFIG, Constants.EXPERT_REPORTS),
265265
PSYCHOLOGICAL_REPORT_CHILD_ONLY_CLINICAL("└─ Psychological Report on Child Only - Clinical",
266266
standardResolver("psycReportChildClinList"),
267267
false, false, false,
268268
defaultWithDocumentBuilder(),
269-
AA_PARENT_EXPERT_REPORTS, 450, DEFAULT_NOTIFICATION_CONFIG, "expertReports"),
269+
AA_PARENT_EXPERT_REPORTS, 450, DEFAULT_NOTIFICATION_CONFIG, Constants.EXPERT_REPORTS),
270270
PSYCHOLOGICAL_REPORT_CHILD_ONLY_EDUCATIONAL("└─ Psychological Report on Child Only - Educational",
271271
standardResolver("psycReportChildOnlyEdList"),
272272
false, false, false,
273273
defaultWithDocumentBuilder(),
274-
AA_PARENT_EXPERT_REPORTS, 460, DEFAULT_NOTIFICATION_CONFIG, "expertReports"),
274+
AA_PARENT_EXPERT_REPORTS, 460, DEFAULT_NOTIFICATION_CONFIG, Constants.EXPERT_REPORTS),
275275
PSYCHOLOGICAL_REPORT_PARENT_AND_CHILD("└─ Psychological Report on Parent(s) and child",
276276
standardResolver("psychReportParentChildList"),
277277
false, false, false,
278278
defaultWithDocumentBuilder(),
279-
AA_PARENT_EXPERT_REPORTS, 470, DEFAULT_NOTIFICATION_CONFIG, "expertReports"),
279+
AA_PARENT_EXPERT_REPORTS, 470, DEFAULT_NOTIFICATION_CONFIG, Constants.EXPERT_REPORTS),
280280
PSYCHOLOGICAL_REPORT_PARENT_FULL_COGNITIVE("└─ Psychological Report on Parent(s) - full cognitive",
281281
standardResolver("psychRepParentFullCogList"),
282282
false, false, false,
283283
defaultWithDocumentBuilder(),
284-
AA_PARENT_EXPERT_REPORTS, 480, DEFAULT_NOTIFICATION_CONFIG, "expertReports"),
284+
AA_PARENT_EXPERT_REPORTS, 480, DEFAULT_NOTIFICATION_CONFIG, Constants.EXPERT_REPORTS),
285285
PSYCHOLOGICAL_REPORT_PARENT_FULL_FUNCTIONING("└─ Psychological Report on Parent(s) - functioning",
286286
standardResolver("psychRepParentFuncList"),
287287
false, false, false,
288288
defaultWithDocumentBuilder(),
289-
AA_PARENT_EXPERT_REPORTS, 490, DEFAULT_NOTIFICATION_CONFIG, "expertReports"),
289+
AA_PARENT_EXPERT_REPORTS, 490, DEFAULT_NOTIFICATION_CONFIG, Constants.EXPERT_REPORTS),
290290
TOXICOLOGY_REPORT("└─ Toxicology report/statement", standardResolver(
291291
"toxicologyStatementList"),
292292
false, false, false,
293293
defaultWithDocumentBuilder(),
294-
AA_PARENT_EXPERT_REPORTS, 500, DEFAULT_NOTIFICATION_CONFIG, "expertReports"),
294+
AA_PARENT_EXPERT_REPORTS, 500, DEFAULT_NOTIFICATION_CONFIG, Constants.EXPERT_REPORTS),
295295
EXPERT_REPORTS("└─ Expert Reports", standardResolver("expertReportList"),
296296
true, true, true,
297297
defaultWithDocumentBuilder(),
298-
AA_PARENT_EXPERT_REPORTS, 501, DEFAULT_NOTIFICATION_CONFIG, "expertReports"),
298+
AA_PARENT_EXPERT_REPORTS, 501, DEFAULT_NOTIFICATION_CONFIG, Constants.EXPERT_REPORTS),
299299
DRUG_AND_ALCOHOL_REPORTS("└─ Drug and alcohol reports", standardResolver("drugAndAlcoholReportList"),
300300
true, true, true,
301301
defaultWithDocumentBuilder(),
@@ -489,4 +489,7 @@ public static String toJsonFieldName(String fieldName) {
489489
return removeNested(fieldName);
490490
}
491491

492+
private static class Constants {
493+
private static final String EXPERT_REPORTS = "expertReports";
494+
}
492495
}

0 commit comments

Comments
 (0)