mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-26 00:39:01 +00:00
Add defaultVersion to set of supported versions
Closes gh-35755
This commit is contained in:
@@ -90,6 +90,10 @@ public class DefaultApiVersionStrategy implements ApiVersionStrategy {
|
||||
this.detectSupportedVersions = detectSupportedVersions;
|
||||
this.supportedVersionPredicate = initSupportedVersionPredicate(supportedVersionPredicate);
|
||||
this.deprecationHandler = deprecationHandler;
|
||||
|
||||
if (defaultVersion != null) {
|
||||
addSupportedVersion(defaultVersion);
|
||||
}
|
||||
}
|
||||
|
||||
private Predicate<Comparable<?>> initSupportedVersionPredicate(@Nullable Predicate<Comparable<?>> predicate) {
|
||||
|
||||
Reference in New Issue
Block a user