@@ -212,35 +212,35 @@ public ValidationResponse validateConfiguration() {
212
212
valid = true ;
213
213
report .computeIfAbsent (ValidationResponse .Level .INFO , k -> new ArrayList <>())
214
214
.add ("Configured default dispatcher configuration is valid" );
215
-
216
- // below is legacy check, that does not affect validity of config, is merely informational
217
- Dispatcher legacy = dispatchers .get (LegacyDispatcher .NAME );
218
- if (legacy == null ) {
219
- report .computeIfAbsent (ValidationResponse .Level .INFO , k -> new ArrayList <>())
220
- .add ("Legacy dispatcher not present in system" );
221
- } else {
222
- report .computeIfAbsent (ValidationResponse .Level .INFO , k -> new ArrayList <>())
223
- .add ("Legacy dispatcher present in system" );
224
- ValidationResponse legacyResponse =
225
- legacy .validateConfiguration (prepareDispatcherConfig (LegacyDispatcher .NAME ));
226
- subsystems .add (legacyResponse );
227
- if (!legacyResponse .isValid ()) {
228
- report .computeIfAbsent (ValidationResponse .Level .WARNING , k -> new ArrayList <>())
229
- .add (
230
- "Legacy dispatcher not operational; transparent fallback not possible" );
231
- } else {
232
- report .computeIfAbsent (ValidationResponse .Level .INFO , k -> new ArrayList <>())
233
- .add ("Legacy dispatcher is operational; transparent fallback possible" );
234
- }
235
- }
236
215
}
237
216
}
238
217
}
239
218
}
219
+
220
+ // below is legacy check, that does not affect validity of config, is merely informational
221
+ Dispatcher legacy = dispatchers .get (LegacyDispatcher .NAME );
222
+ if (legacy == null ) {
223
+ report .computeIfAbsent (ValidationResponse .Level .INFO , k -> new ArrayList <>())
224
+ .add ("Legacy dispatcher not present in system" );
225
+ } else {
226
+ report .computeIfAbsent (ValidationResponse .Level .INFO , k -> new ArrayList <>())
227
+ .add ("Legacy dispatcher present in system" );
228
+ ValidationResponse legacyResponse =
229
+ legacy .validateConfiguration (prepareDispatcherConfig (LegacyDispatcher .NAME ));
230
+ subsystems .add (legacyResponse );
231
+ if (!legacyResponse .isValid ()) {
232
+ report .computeIfAbsent (ValidationResponse .Level .WARNING , k -> new ArrayList <>())
233
+ .add ("Legacy dispatcher not operational; transparent fallback not possible" );
234
+ } else {
235
+ report .computeIfAbsent (ValidationResponse .Level .INFO , k -> new ArrayList <>())
236
+ .add ("Legacy dispatcher is operational; transparent fallback possible" );
237
+ }
238
+ }
240
239
} catch (IOException e ) {
241
240
report .computeIfAbsent (ValidationResponse .Level .ERROR , k -> new ArrayList <>())
242
241
.add (e .getMessage ());
243
242
}
243
+
244
244
return new ValidationResponse (getClass ().getSimpleName (), valid , report , subsystems );
245
245
}
246
246
0 commit comments