@@ -217,8 +217,8 @@ private OlTag ol_changed(List<ChangedOperation> changedOperations) {
217217 }
218218 if (showAllChanges && changedOperation .resultSecurityRequirements ().isDifferent ()) {
219219 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 ())));
222222 }
223223 ol .with (
224224 li ().with (span (method ).withClass (method ))
@@ -255,24 +255,24 @@ private UlTag ul_securityRequirements(ChangedSecurityRequirements changedSecurit
255255
256256 private LiTag li_addSecurityRequirement (SecurityRequirement securityRequirement ) {
257257 return li ().withText ("New security requirement : " )
258- .with (span (null == securityRequirement .toString () ? "" : (securityRequirement .toString ())));
258+ .with (span (null == securityRequirement .toString () ? "" : (securityRequirement .toString ())));
259259 }
260260
261261 private LiTag li_missingSecurityRequirement (SecurityRequirement securityRequirement ) {
262262 return li ().withText ("Deleted security requirement : " )
263- .with (span (null == securityRequirement .toString () ? "" : (securityRequirement .toString ())));
263+ .with (span (null == securityRequirement .toString () ? "" : (securityRequirement .toString ())));
264264 }
265265
266266 private LiTag li_changedSecurityRequirement (
267- ChangedSecurityRequirement changedSecurityRequirement ) {
267+ ChangedSecurityRequirement changedSecurityRequirement ) {
268268 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 ())));
276276 }
277277
278278 private UlTag ul_response (ChangedApiResponse changedApiResponse ) {
@@ -347,8 +347,7 @@ private LiTag li_changedRequest(String name, ChangedMediaType request) {
347347 .withText (String .format ("Changed body: '%s'" , name ));
348348 if (request .isIncompatible () && !showAllChanges ) {
349349 incompatibilities (li , request .getSchema ());
350- }
351- else if (showAllChanges ) {
350+ } else if (showAllChanges ) {
352351 allChanges (li , request .getSchema ());
353352 }
354353 return li ;
@@ -365,21 +364,21 @@ private void allChanges(final LiTag output, final ChangedSchema schema) {
365364 }
366365
367366 private void allChanges (
368- final ContainerTag <?> output , String propName , final ChangedSchema schema ) {
367+ final ContainerTag <?> output , String propName , final ChangedSchema schema ) {
369368 String prefix = propName .isEmpty () ? "" : propName + "." ;
370369 properties (
371- output , prefix , "Missing property" , schema .getMissingProperties (), schema .getContext ());
370+ output , prefix , "Missing property" , schema .getMissingProperties (), schema .getContext ());
372371 properties (
373- output , prefix , "Added property" , schema .getIncreasedProperties (), schema .getContext ());
372+ output , prefix , "Added property" , schema .getIncreasedProperties (), schema .getContext ());
374373
375374 propertiesChanged (
376- output , prefix , "Changed property" , schema .getChangedProperties (), schema .getContext ());
375+ output , prefix , "Changed property" , schema .getChangedProperties (), schema .getContext ());
377376 if (schema .getItems () != null ) {
378377 itemsAllChanges (output , propName , schema .getItems ());
379378 }
380379 schema
381- .getChangedProperties ()
382- .forEach ((name , property ) -> allChanges (output , prefix + name , property ));
380+ .getChangedProperties ()
381+ .forEach ((name , property ) -> allChanges (output , prefix + name , property ));
383382 }
384383
385384 private void incompatibilities (final LiTag output , final ChangedSchema schema ) {
@@ -423,11 +422,11 @@ private void properties(
423422 }
424423
425424 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 ) {
431430 if (properties != null ) {
432431 properties .forEach ((key , value ) -> resolveProperty (output , propPrefix , key , value , title ));
433432 }
@@ -443,7 +442,7 @@ private void resolveProperty(
443442 }
444443
445444 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 ) {
447446 try {
448447 property (output , propPrefix + key , title , resolve (value ));
449448 } catch (Exception e ) {
@@ -466,9 +465,9 @@ protected Schema<?> resolve(Schema<?> schema) {
466465
467466 protected Schema <?> resolve (ChangedSchema schema ) {
468467 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 ());
472471 }
473472
474473 protected String type (Schema <?> schema ) {
0 commit comments