Polishing

This commit is contained in:
Sam Brannen
2026-04-15 14:30:03 +02:00
parent 9c8535f5e4
commit d169eb547e
4 changed files with 6 additions and 6 deletions
@@ -51,7 +51,7 @@ public class Elvis extends SpelNodeImpl {
* null-safe operator.
* @since 7.1
*/
private @Nullable String unwrappedOptionalDescriptor;
private volatile @Nullable String unwrappedOptionalDescriptor;
public Elvis(int startPos, int endPos, SpelNodeImpl... args) {
@@ -108,7 +108,7 @@ public class Indexer extends SpelNodeImpl {
private final boolean nullSafe;
private @Nullable IndexedType indexedType;
private volatile @Nullable IndexedType indexedType;
private volatile @Nullable String originalPrimitiveExitTypeDescriptor;
@@ -75,7 +75,7 @@ public class MethodReference extends SpelNodeImpl {
private final String name;
private @Nullable Character originalPrimitiveExitTypeDescriptor;
private volatile @Nullable Character originalPrimitiveExitTypeDescriptor;
/**
* Tracks whether an {@link Optional} was unwrapped in
@@ -84,7 +84,7 @@ public class MethodReference extends SpelNodeImpl {
* compiled expression.
* @since 7.1
*/
private boolean unwrapOptional;
private volatile boolean unwrapOptional;
private volatile @Nullable CachedMethodExecutor cachedExecutor;
@@ -70,7 +70,7 @@ public class PropertyOrFieldReference extends SpelNodeImpl {
private final String name;
private @Nullable String originalPrimitiveExitTypeDescriptor;
private volatile @Nullable String originalPrimitiveExitTypeDescriptor;
/**
* Tracks whether an {@link Optional} was unwrapped in
@@ -78,7 +78,7 @@ public class PropertyOrFieldReference extends SpelNodeImpl {
* null-safe operator and therefore needs to be unwrapped in a compiled expression.
* @since 7.1
*/
private boolean unwrapOptional;
private volatile boolean unwrapOptional;
private volatile @Nullable PropertyAccessor cachedReadAccessor;