File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
core/src/main/java/org/openapitools/openapidiff/core Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,9 @@ public boolean pathUnchangedParametersChanged(
114
114
boolean samePathDifferentParameter = !newParameterRealized .equals (parameter );
115
115
newParameterRealized .setName (
116
116
newParameterName ); // Important:: MUST Reset the name as this is not a copy
117
- return samePathDifferentParameter ;
117
+ if (samePathDifferentParameter ) {
118
+ return true ;
119
+ }
118
120
}
119
121
return false ;
120
122
}
Original file line number Diff line number Diff line change 1
1
package org .openapitools .openapidiff .core .model .schema ;
2
2
3
+ import static org .apache .commons .lang3 .BooleanUtils .isTrue ;
3
4
import static org .openapitools .openapidiff .core .model .BackwardIncompatibleProp .REQUEST_NUMERIC_RANGE_DECREASED ;
4
5
import static org .openapitools .openapidiff .core .model .BackwardIncompatibleProp .RESPONSE_NUMERIC_RANGE_INCREASED ;
5
6
@@ -34,10 +35,10 @@ public DiffResult isChanged() {
34
35
return DiffResult .COMPATIBLE ;
35
36
}
36
37
37
- boolean exclusiveMaxOld = oldMaximumExclusiveValue != null && oldMaximumExclusiveValue ;
38
- boolean exclusiveMinOld = oldMinimumExclusiveValue != null && oldMinimumExclusiveValue ;
39
- boolean exclusiveMaxNew = newMaximumExclusiveValue != null && newMaximumExclusiveValue ;
40
- boolean exclusiveMinNew = newMinimumExclusiveValue != null && newMinimumExclusiveValue ;
38
+ boolean exclusiveMaxOld = isTrue ( oldMaximumExclusiveValue ) ;
39
+ boolean exclusiveMinOld = isTrue ( oldMinimumExclusiveValue ) ;
40
+ boolean exclusiveMaxNew = isTrue ( newMaximumExclusiveValue ) ;
41
+ boolean exclusiveMinNew = isTrue ( newMinimumExclusiveValue ) ;
41
42
int diffMax = compare (oldMaximumValue , newMaximumValue , false );
42
43
int diffMin = compare (oldMinimumValue , newMinimumValue , true );
43
44
You can’t perform that action at this time.
0 commit comments