Make inner classes static when feasible

A static nested class does not keep an implicit reference to its
enclosing instance.

This prevents a common cause of memory leaks and uses less memory per
instance of the class.

Closes gh-28433
This commit is contained in:
evgeny.bovykin
2022-05-09 21:39:05 +02:00
committed by Sam Brannen
parent e26d8839b3
commit 941b92cbed
5 changed files with 5 additions and 5 deletions

View File

@@ -88,7 +88,7 @@ public class UndertowHttpHandlerAdapter implements io.undertow.server.HttpHandle
}
private class HandlerResultSubscriber implements Subscriber<Void> {
private static class HandlerResultSubscriber implements Subscriber<Void> {
private final HttpServerExchange exchange;