This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-jcs.git
The following commit(s) were added to refs/heads/master by this push: new 0093b61 No need to initialize to default value. 0093b61 is described below commit 0093b61b0a282c6f457475140af74e1404e7065b Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Fri Nov 20 21:57:39 2020 -0500 No need to initialize to default value. --- .../apache/commons/jcs3/auxiliary/AuxiliaryCacheConfigurator.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/commons-jcs-core/src/main/java/org/apache/commons/jcs3/auxiliary/AuxiliaryCacheConfigurator.java b/commons-jcs-core/src/main/java/org/apache/commons/jcs3/auxiliary/AuxiliaryCacheConfigurator.java index 2610785..575f1c4 100644 --- a/commons-jcs-core/src/main/java/org/apache/commons/jcs3/auxiliary/AuxiliaryCacheConfigurator.java +++ b/commons-jcs-core/src/main/java/org/apache/commons/jcs3/auxiliary/AuxiliaryCacheConfigurator.java @@ -64,11 +64,10 @@ public class AuxiliaryCacheConfigurator */ public static ICacheEventLogger parseCacheEventLogger( Properties props, String auxPrefix ) { - ICacheEventLogger cacheEventLogger = null; // auxFactory was not previously initialized. String eventLoggerClassName = auxPrefix + CACHE_EVENT_LOGGER_PREFIX; - cacheEventLogger = OptionConverter.instantiateByKey( props, eventLoggerClassName, null ); + ICacheEventLogger cacheEventLogger = OptionConverter.instantiateByKey( props, eventLoggerClassName, null ); if ( cacheEventLogger != null ) { String cacheEventLoggerAttributePrefix = auxPrefix + CACHE_EVENT_LOGGER_PREFIX + ATTRIBUTE_PREFIX; @@ -93,11 +92,9 @@ public class AuxiliaryCacheConfigurator public static IElementSerializer parseElementSerializer( Properties props, String auxPrefix ) { // TODO take in the entire prop key - IElementSerializer elementSerializer = null; - // auxFactory was not previously initialized. String elementSerializerClassName = auxPrefix + SERIALIZER_PREFIX; - elementSerializer = OptionConverter.instantiateByKey( props, elementSerializerClassName, null ); + IElementSerializer elementSerializer = OptionConverter.instantiateByKey( props, elementSerializerClassName, null ); if ( elementSerializer != null ) { String attributePrefix = auxPrefix + SERIALIZER_PREFIX + ATTRIBUTE_PREFIX;