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:
committed by
Sam Brannen
parent
e26d8839b3
commit
941b92cbed
@@ -75,7 +75,7 @@ public class XhrStreamingTransportHandler extends AbstractHttpSendingTransportHa
|
||||
}
|
||||
|
||||
|
||||
private class XhrStreamingSockJsSession extends StreamingSockJsSession {
|
||||
private static class XhrStreamingSockJsSession extends StreamingSockJsSession {
|
||||
|
||||
public XhrStreamingSockJsSession(String sessionId, SockJsServiceConfig config,
|
||||
WebSocketHandler wsHandler, Map<String, Object> attributes) {
|
||||
|
||||
Reference in New Issue
Block a user