@@ -217,8 +217,8 @@ private OlTag ol_changed(List<ChangedOperation> changedOperations) {
217
217
}
218
218
if (showAllChanges && changedOperation .resultSecurityRequirements ().isDifferent ()) {
219
219
ul_detail .with (
220
- li ().with (h3 ("Security Requirements" ))
221
- .with (ul_securityRequirements (changedOperation .getSecurityRequirements ())));
220
+ li ().with (h3 ("Security Requirements" ))
221
+ .with (ul_securityRequirements (changedOperation .getSecurityRequirements ())));
222
222
}
223
223
ol .with (
224
224
li ().with (span (method ).withClass (method ))
@@ -255,24 +255,24 @@ private UlTag ul_securityRequirements(ChangedSecurityRequirements changedSecurit
255
255
256
256
private LiTag li_addSecurityRequirement (SecurityRequirement securityRequirement ) {
257
257
return li ().withText ("New security requirement : " )
258
- .with (span (null == securityRequirement .toString () ? "" : (securityRequirement .toString ())));
258
+ .with (span (null == securityRequirement .toString () ? "" : (securityRequirement .toString ())));
259
259
}
260
260
261
261
private LiTag li_missingSecurityRequirement (SecurityRequirement securityRequirement ) {
262
262
return li ().withText ("Deleted security requirement : " )
263
- .with (span (null == securityRequirement .toString () ? "" : (securityRequirement .toString ())));
263
+ .with (span (null == securityRequirement .toString () ? "" : (securityRequirement .toString ())));
264
264
}
265
265
266
266
private LiTag li_changedSecurityRequirement (
267
- ChangedSecurityRequirement changedSecurityRequirement ) {
267
+ ChangedSecurityRequirement changedSecurityRequirement ) {
268
268
return li ().withText (String .format ("Changed security requirement : " ))
269
- .with (
270
- span (
271
- (null == changedSecurityRequirement .getNewSecurityRequirement ()
272
- || null
273
- == changedSecurityRequirement .getNewSecurityRequirement ().toString ())
274
- ? ""
275
- : (changedSecurityRequirement .getNewSecurityRequirement ().toString ())));
269
+ .with (
270
+ span (
271
+ (null == changedSecurityRequirement .getNewSecurityRequirement ()
272
+ || null
273
+ == changedSecurityRequirement .getNewSecurityRequirement ().toString ())
274
+ ? ""
275
+ : (changedSecurityRequirement .getNewSecurityRequirement ().toString ())));
276
276
}
277
277
278
278
private UlTag ul_response (ChangedApiResponse changedApiResponse ) {
@@ -347,8 +347,7 @@ private LiTag li_changedRequest(String name, ChangedMediaType request) {
347
347
.withText (String .format ("Changed body: '%s'" , name ));
348
348
if (request .isIncompatible () && !showAllChanges ) {
349
349
incompatibilities (li , request .getSchema ());
350
- }
351
- else if (showAllChanges ) {
350
+ } else if (showAllChanges ) {
352
351
allChanges (li , request .getSchema ());
353
352
}
354
353
return li ;
@@ -365,21 +364,21 @@ private void allChanges(final LiTag output, final ChangedSchema schema) {
365
364
}
366
365
367
366
private void allChanges (
368
- final ContainerTag <?> output , String propName , final ChangedSchema schema ) {
367
+ final ContainerTag <?> output , String propName , final ChangedSchema schema ) {
369
368
String prefix = propName .isEmpty () ? "" : propName + "." ;
370
369
properties (
371
- output , prefix , "Missing property" , schema .getMissingProperties (), schema .getContext ());
370
+ output , prefix , "Missing property" , schema .getMissingProperties (), schema .getContext ());
372
371
properties (
373
- output , prefix , "Added property" , schema .getIncreasedProperties (), schema .getContext ());
372
+ output , prefix , "Added property" , schema .getIncreasedProperties (), schema .getContext ());
374
373
375
374
propertiesChanged (
376
- output , prefix , "Changed property" , schema .getChangedProperties (), schema .getContext ());
375
+ output , prefix , "Changed property" , schema .getChangedProperties (), schema .getContext ());
377
376
if (schema .getItems () != null ) {
378
377
itemsAllChanges (output , propName , schema .getItems ());
379
378
}
380
379
schema
381
- .getChangedProperties ()
382
- .forEach ((name , property ) -> allChanges (output , prefix + name , property ));
380
+ .getChangedProperties ()
381
+ .forEach ((name , property ) -> allChanges (output , prefix + name , property ));
383
382
}
384
383
385
384
private void incompatibilities (final LiTag output , final ChangedSchema schema ) {
@@ -423,11 +422,11 @@ private void properties(
423
422
}
424
423
425
424
private void propertiesChanged (
426
- ContainerTag <?> output ,
427
- String propPrefix ,
428
- String title ,
429
- Map <String , ChangedSchema > properties ,
430
- DiffContext context ) {
425
+ ContainerTag <?> output ,
426
+ String propPrefix ,
427
+ String title ,
428
+ Map <String , ChangedSchema > properties ,
429
+ DiffContext context ) {
431
430
if (properties != null ) {
432
431
properties .forEach ((key , value ) -> resolveProperty (output , propPrefix , key , value , title ));
433
432
}
@@ -443,7 +442,7 @@ private void resolveProperty(
443
442
}
444
443
445
444
private void resolveProperty (
446
- ContainerTag <?> output , String propPrefix , String key , ChangedSchema value , String title ) {
445
+ ContainerTag <?> output , String propPrefix , String key , ChangedSchema value , String title ) {
447
446
try {
448
447
property (output , propPrefix + key , title , resolve (value ));
449
448
} catch (Exception e ) {
@@ -466,9 +465,9 @@ protected Schema<?> resolve(Schema<?> schema) {
466
465
467
466
protected Schema <?> resolve (ChangedSchema schema ) {
468
467
return refPointer .resolveRef (
469
- diff .getNewSpecOpenApi ().getComponents (),
470
- schema .getNewSchema (),
471
- schema .getNewSchema ().get$ref ());
468
+ diff .getNewSpecOpenApi ().getComponents (),
469
+ schema .getNewSchema (),
470
+ schema .getNewSchema ().get$ref ());
472
471
}
473
472
474
473
protected String type (Schema <?> schema ) {
0 commit comments