Drop explicit zeroing at instantiation of Atomic* objects

This commit is contained in:
Сергей Цыпанов
2020-09-30 22:57:04 +03:00
committed by Juergen Hoeller
parent b7e1553c9d
commit 8a04910bdd
35 changed files with 64 additions and 64 deletions

View File

@@ -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;

View File

@@ -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");

View File

@@ -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,