Remove redundant assignment of default values to volatile fields
This commit is contained in:
committed by
Juergen Hoeller
parent
8099fc8178
commit
7949937655
@@ -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.
|
||||
@@ -45,7 +45,7 @@ public abstract class AbstractRemoteSlsbInvokerInterceptor extends AbstractSlsbI
|
||||
|
||||
private boolean refreshHomeOnConnectFailure = false;
|
||||
|
||||
private volatile boolean homeAsComponent = false;
|
||||
private volatile boolean homeAsComponent;
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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.
|
||||
@@ -52,7 +52,7 @@ import org.springframework.lang.Nullable;
|
||||
*/
|
||||
public class LocalSlsbInvokerInterceptor extends AbstractSlsbInvokerInterceptor {
|
||||
|
||||
private volatile boolean homeAsComponent = false;
|
||||
private volatile boolean homeAsComponent;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -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.
|
||||
@@ -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;
|
||||
|
||||
@@ -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.
|
||||
@@ -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;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user