Skip to content

Commit 3a403a5

Browse files
committed
Make isHalEnabled static
1 parent bf52312 commit 3a403a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

springdoc-openapi-starter-common/src/main/java/org/springdoc/core/providers/HateoasHalProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public boolean isHalEnabled() {
8686
.orElse(true);
8787
}
8888

89-
private boolean isHalEnabled(@NonNull HateoasProperties hateoasProperties) {
89+
private static boolean isHalEnabled(@NonNull HateoasProperties hateoasProperties) {
9090
// In spring-boot 3.5, the method name was changed from getUseHalAsDefaultJsonMediaType to isUseHalAsDefaultJsonMediaType
9191
var possibleMethodNames = List.of("isUseHalAsDefaultJsonMediaType", "getUseHalAsDefaultJsonMediaType");
9292

0 commit comments

Comments
 (0)