Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2018 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.
Expand Down Expand Up @@ -49,7 +49,7 @@ public class MutablePropertyValues implements PropertyValues, Serializable {
@Nullable
private Set<String> processedProperties;

private volatile boolean converted = false;
private volatile boolean converted;


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ private class AutowiredFieldElement extends InjectionMetadata.InjectedElement {

private final boolean required;

private volatile boolean cached = false;
private volatile boolean cached;

@Nullable
private volatile Object cachedFieldValue;
Expand Down Expand Up @@ -678,7 +678,7 @@ private class AutowiredMethodElement extends InjectionMetadata.InjectedElement {

private final boolean required;

private volatile boolean cached = false;
private volatile boolean cached;

@Nullable
private volatile Object[] cachedMethodArguments;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
private volatile String[] frozenBeanDefinitionNames;

/** Whether bean definition metadata may be cached for all beans. */
private volatile boolean configurationFrozen = false;
private volatile boolean configurationFrozen;


/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2019 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.
Expand Down Expand Up @@ -65,7 +65,7 @@ public class RootBeanDefinition extends AbstractBeanDefinition {

boolean allowCaching = true;

boolean isFactoryMethodUnique = false;
boolean isFactoryMethodUnique;

@Nullable
volatile ResolvableType targetType;
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -45,7 +45,7 @@ public abstract class AbstractRemoteSlsbInvokerInterceptor extends AbstractSlsbI

private boolean refreshHomeOnConnectFailure = false;

private volatile boolean homeAsComponent = false;
private volatile boolean homeAsComponent;



Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -52,7 +52,7 @@
*/
public class LocalSlsbInvokerInterceptor extends AbstractSlsbInvokerInterceptor {

private volatile boolean homeAsComponent = false;
private volatile boolean homeAsComponent;


/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2018 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.
Expand Down Expand Up @@ -61,7 +61,7 @@ public class ThreadPoolTaskScheduler extends ExecutorConfigurationSupport

private volatile int poolSize = 1;

private volatile boolean removeOnCancelPolicy = false;
private volatile boolean removeOnCancelPolicy;

@Nullable
private volatile ErrorHandler errorHandler;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2018 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.
Expand Down Expand Up @@ -50,9 +50,9 @@ public class PeriodicTrigger implements Trigger {

private final TimeUnit timeUnit;

private volatile long initialDelay = 0;
private volatile long initialDelay;

private volatile boolean fixedRate = false;
private volatile boolean fixedRate;


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ private static class ConcurrentLruCache<K, V> {

private final Function<K, V> generator;

private volatile int size = 0;
private volatile int size;

public ConcurrentLruCache(int maxSize, Function<K, V> generator) {
Assert.isTrue(maxSize > 0, "LRU max size should be positive");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2019 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.
Expand Down Expand Up @@ -70,7 +70,7 @@ public abstract class AbstractJdbcCall {
* Has this operation been compiled? Compilation means at least checking
* that a DataSource or JdbcTemplate has been provided.
*/
private volatile boolean compiled = false;
private volatile boolean compiled;

/** The generated string used for call statement. */
@Nullable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2019 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.
Expand Down Expand Up @@ -80,7 +80,7 @@ public abstract class AbstractJdbcInsert {
* Has this operation been compiled? Compilation means at least checking
* that a DataSource or JdbcTemplate has been provided.
*/
private volatile boolean compiled = false;
private volatile boolean compiled;

/** The generated string used for insert statement. */
private String insertString = "";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2018 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.
Expand Down Expand Up @@ -81,7 +81,7 @@ public abstract class AbstractJmsListeningContainer extends JmsDestinationAccess

private boolean active = false;

private volatile boolean running = false;
private volatile boolean running;

private final List<Object> pausedTasks = new LinkedList<>();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2019 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.
Expand Down Expand Up @@ -198,9 +198,9 @@ public class DefaultMessageListenerContainer extends AbstractPollingMessageListe

private int registeredWithDestination = 0;

private volatile boolean recovering = false;
private volatile boolean recovering;

private volatile boolean interrupted = false;
private volatile boolean interrupted;

@Nullable
private Runnable stopCallback;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2019 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.
Expand Down Expand Up @@ -65,7 +65,7 @@ public class GenericMessagingTemplate extends AbstractDestinationResolvingMessag

private String receiveTimeoutHeader = DEFAULT_RECEIVE_TIMEOUT_HEADER;

private volatile boolean throwExceptionOnLateReply = false;
private volatile boolean throwExceptionOnLateReply;


/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2019 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.
Expand Down Expand Up @@ -121,7 +121,7 @@ public class SimpAnnotationMethodMessageHandler extends AbstractMethodMessageHan
@Nullable
private MessageHeaderInitializer headerInitializer;

private volatile boolean running = false;
private volatile boolean running;

private final Object lifecycleMonitor = new Object();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2018 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.
Expand Down Expand Up @@ -71,7 +71,7 @@ public abstract class AbstractBrokerMessageHandler

private boolean autoStartup = true;

private volatile boolean running = false;
private volatile boolean running;

private final Object lifecycleMonitor = new Object();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2019 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.
Expand Down Expand Up @@ -77,7 +77,7 @@ public class DefaultSubscriptionRegistry extends AbstractSubscriptionRegistry {
@Nullable
private String selectorHeaderName = "selector";

private volatile boolean selectorHeaderInUse = false;
private volatile boolean selectorHeaderInUse;

private final ExpressionParser expressionParser = new SpelExpressionParser();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2019 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.
Expand Down Expand Up @@ -111,7 +111,7 @@ public class DefaultStompSession implements ConnectionHandlingStompSession {
private final Map<String, ReceiptHandler> receiptHandlers = new ConcurrentHashMap<>(4);

/* Whether the client is willfully closing the connection */
private volatile boolean closing = false;
private volatile boolean closing;


/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2018 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.
Expand Down Expand Up @@ -67,7 +67,7 @@ public class UserDestinationMessageHandler implements MessageHandler, SmartLifec
@Nullable
private MessageHeaderInitializer headerInitializer;

private volatile boolean running = false;
private volatile boolean running;

private final Object lifecycleMonitor = new Object();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public class ReactorNettyTcpClient<P> implements TcpOperations<P> {

private Log logger = LogFactory.getLog(ReactorNettyTcpClient.class);

private volatile boolean stopping = false;
private volatile boolean stopping;


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ private static class ExtendedEntityManagerSynchronization
@Nullable
private final PersistenceExceptionTranslator exceptionTranslator;

public volatile boolean closeOnCompletion = false;
public volatile boolean closeOnCompletion;

public ExtendedEntityManagerSynchronization(
EntityManager em, @Nullable PersistenceExceptionTranslator exceptionTranslator) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2018 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.
Expand Down Expand Up @@ -161,7 +161,7 @@ public class GenericMessageEndpointManager implements SmartLifecycle, Initializi

private int phase = DEFAULT_PHASE;

private volatile boolean running = false;
private volatile boolean running;

private final Object lifecycleMonitor = new Object();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
*/
public class Jackson2ObjectMapperBuilder {

private static volatile boolean kotlinWarningLogged = false;
private static volatile boolean kotlinWarningLogged;

private final Log logger = HttpLogging.forLogName(getClass());

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2019 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.
Expand Down Expand Up @@ -73,7 +73,7 @@ public class DeferredResult<T> {

private volatile Object result = RESULT_NONE;

private volatile boolean expired = false;
private volatile boolean expired;


/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2018 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.
Expand Down Expand Up @@ -89,7 +89,7 @@ public class HandshakeWebSocketService implements WebSocketService, Lifecycle {
@Nullable
private Predicate<String> sessionAttributePredicate;

private volatile boolean running = false;
private volatile boolean running;


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public class JettyRequestUpgradeStrategy implements RequestUpgradeStrategy, Life
@Nullable
private volatile ServletContext servletContext;

private volatile boolean running = false;
private volatile boolean running;

private final Object lifecycleMonitor = new Object();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2018 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.
Expand Down Expand Up @@ -221,7 +221,7 @@ public abstract class FrameworkServlet extends HttpServletBean implements Applic
private boolean webApplicationContextInjected = false;

/** Flag used to detect whether onRefresh has already been called. */
private volatile boolean refreshEventReceived = false;
private volatile boolean refreshEventReceived;

/** Monitor for synchronized onRefresh execution. */
private final Object onRefreshMonitor = new Object();
Expand Down
Loading