From 81d3b24b9620f567682a896c3464a8c242151199 Mon Sep 17 00:00:00 2001 From: Philip Gichuhi Date: Tue, 8 Oct 2024 00:11:18 +0300 Subject: [PATCH] Rename protected variable --- .../serialization/SerializationWriterProxyFactory.java | 8 ++++---- .../BackingStoreSerializationWriterProxyFactory.java | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/abstractions/src/main/java/com/microsoft/kiota/serialization/SerializationWriterProxyFactory.java b/components/abstractions/src/main/java/com/microsoft/kiota/serialization/SerializationWriterProxyFactory.java index 46d556f8b..fe3d34c99 100644 --- a/components/abstractions/src/main/java/com/microsoft/kiota/serialization/SerializationWriterProxyFactory.java +++ b/components/abstractions/src/main/java/com/microsoft/kiota/serialization/SerializationWriterProxyFactory.java @@ -10,10 +10,10 @@ /** Proxy factory that allows the composition of before and after callbacks on existing factories. */ public abstract class SerializationWriterProxyFactory implements SerializationWriterFactory { @Nonnull public String getValidContentType() { - return _concrete.getValidContentType(); + return proxiedFactory.getValidContentType(); } - protected final SerializationWriterFactory _concrete; + protected final SerializationWriterFactory proxiedFactory; private final Consumer _onBefore; private final Consumer _onAfter; private final BiConsumer _onStart; @@ -30,14 +30,14 @@ public SerializationWriterProxyFactory( @Nullable final Consumer onBeforeSerialization, @Nullable final Consumer onAfterSerialization, @Nullable final BiConsumer onStartObjectSerialization) { - _concrete = Objects.requireNonNull(concrete); + proxiedFactory = Objects.requireNonNull(concrete); _onBefore = onBeforeSerialization; _onAfter = onAfterSerialization; _onStart = onStartObjectSerialization; } @Nonnull public SerializationWriter getSerializationWriter(@Nonnull final String contentType) { - final SerializationWriter writer = _concrete.getSerializationWriter(contentType); + final SerializationWriter writer = proxiedFactory.getSerializationWriter(contentType); final Consumer originalBefore = writer.getOnBeforeObjectSerialization(); final Consumer originalAfter = writer.getOnAfterObjectSerialization(); final BiConsumer originalStart = diff --git a/components/abstractions/src/main/java/com/microsoft/kiota/store/BackingStoreSerializationWriterProxyFactory.java b/components/abstractions/src/main/java/com/microsoft/kiota/store/BackingStoreSerializationWriterProxyFactory.java index f8c763123..b3d0d1fd1 100644 --- a/components/abstractions/src/main/java/com/microsoft/kiota/store/BackingStoreSerializationWriterProxyFactory.java +++ b/components/abstractions/src/main/java/com/microsoft/kiota/store/BackingStoreSerializationWriterProxyFactory.java @@ -62,7 +62,7 @@ public BackingStoreSerializationWriterProxyFactory( @Nonnull public SerializationWriter getSerializationWriter( @Nonnull final String contentType, final boolean serializeOnlyChangedValues) { if (!serializeOnlyChangedValues) { - return _concrete.getSerializationWriter(contentType); + return proxiedFactory.getSerializationWriter(contentType); } return getSerializationWriter(contentType); }