Remove redundant assignment of default values to volatile/atomic fields
Closes gh-27477
This commit is contained in:
parent
e8d24ae693
commit
8a87e118e1
|
@ -38,7 +38,7 @@ import org.springframework.core.metrics.StartupStep;
|
||||||
*/
|
*/
|
||||||
public class FlightRecorderApplicationStartup implements ApplicationStartup {
|
public class FlightRecorderApplicationStartup implements ApplicationStartup {
|
||||||
|
|
||||||
private final AtomicLong currentSequenceId = new AtomicLong(0);
|
private final AtomicLong currentSequenceId = new AtomicLong();
|
||||||
|
|
||||||
private final Deque<Long> currentSteps;
|
private final Deque<Long> currentSteps;
|
||||||
|
|
||||||
|
|
|
@ -274,7 +274,7 @@ public final class SpelCompiler implements Opcodes {
|
||||||
|
|
||||||
private static final URL[] NO_URLS = new URL[0];
|
private static final URL[] NO_URLS = new URL[0];
|
||||||
|
|
||||||
private final AtomicInteger classesDefinedCount = new AtomicInteger(0);
|
private final AtomicInteger classesDefinedCount = new AtomicInteger();
|
||||||
|
|
||||||
public ChildClassLoader(@Nullable ClassLoader classLoader) {
|
public ChildClassLoader(@Nullable ClassLoader classLoader) {
|
||||||
super(NO_URLS, classLoader);
|
super(NO_URLS, classLoader);
|
||||||
|
|
|
@ -42,7 +42,7 @@ class AnonymousBindMarkers implements BindMarkers {
|
||||||
|
|
||||||
// access via COUNTER_INCREMENTER
|
// access via COUNTER_INCREMENTER
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
private volatile int counter = 0;
|
private volatile int counter;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue