Browse Source

Blockhound rule for MediaTypeFactory static initializer

Closes gh-26631
pull/27208/head
Rossen Stoyanchev 5 years ago
parent
commit
d034a1f26d
  1. 1
      spring-web/src/main/java/org/springframework/web/server/adapter/WebHttpHandlerBuilder.java

1
spring-web/src/main/java/org/springframework/web/server/adapter/WebHttpHandlerBuilder.java

@ -433,6 +433,7 @@ public final class WebHttpHandlerBuilder { @@ -433,6 +433,7 @@ public final class WebHttpHandlerBuilder {
// Avoid hard references potentially anywhere in spring-web (no need for structural dependency)
builder.allowBlockingCallsInside("org.springframework.http.MediaTypeFactory", "<clinit>");
builder.allowBlockingCallsInside("org.springframework.web.util.HtmlUtils", "<clinit>");
}
}

Loading…
Cancel
Save