Drop explicit zeroing at instantiation of Atomic* objects
This commit is contained in:
committed by
Juergen Hoeller
parent
b7e1553c9d
commit
8a04910bdd
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
* Copyright 2002-2020 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -187,7 +187,7 @@ class DefaultTransportRequest implements TransportRequest {
|
||||
|
||||
private final SettableListenableFuture<WebSocketSession> future;
|
||||
|
||||
private final AtomicBoolean handled = new AtomicBoolean(false);
|
||||
private final AtomicBoolean handled = new AtomicBoolean();
|
||||
|
||||
public ConnectCallback(WebSocketHandler handler, SettableListenableFuture<WebSocketSession> future) {
|
||||
this.handler = handler;
|
||||
|
||||
@@ -145,7 +145,7 @@ public class WebSocketTransport implements Transport, Lifecycle {
|
||||
|
||||
private final WebSocketClientSockJsSession sockJsSession;
|
||||
|
||||
private final AtomicBoolean connected = new AtomicBoolean(false);
|
||||
private final AtomicBoolean connected = new AtomicBoolean();
|
||||
|
||||
public ClientSockJsWebSocketHandler(WebSocketClientSockJsSession session) {
|
||||
Assert.notNull(session, "Session must not be null");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
* Copyright 2002-2020 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -55,7 +55,7 @@ public class SockJsWebSocketHandler extends TextWebSocketHandler implements SubP
|
||||
|
||||
private final List<String> subProtocols;
|
||||
|
||||
private final AtomicInteger sessionCount = new AtomicInteger(0);
|
||||
private final AtomicInteger sessionCount = new AtomicInteger();
|
||||
|
||||
|
||||
public SockJsWebSocketHandler(SockJsServiceConfig serviceConfig, WebSocketHandler webSocketHandler,
|
||||
|
||||
Reference in New Issue
Block a user