diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/CoreNamespacePostProcessor.java b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/CoreNamespacePostProcessor.java index d8c71d902..2df8de324 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/CoreNamespacePostProcessor.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/CoreNamespacePostProcessor.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2013 the original author or authors. + * Copyright 2006-2021 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. @@ -97,7 +97,7 @@ public class CoreNamespacePostProcessor implements BeanPostProcessor, BeanFactor BeanDefinition bd = beanFactory.getBeanDefinition(beanName); Object isNamespaceStep = BeanDefinitionUtils .getAttribute(beanName, "isNamespaceStep", beanFactory); - if (isNamespaceStep != null && (Boolean) isNamespaceStep == true) { + if (isNamespaceStep != null && (Boolean) isNamespaceStep) { ((AbstractBeanDefinition) bd).setBeanClass(StepParserStepFactoryBean.class); } } diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/StepParserStepFactoryBean.java b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/StepParserStepFactoryBean.java index ba9a68260..6e5da43d8 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/StepParserStepFactoryBean.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/StepParserStepFactoryBean.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2013 the original author or authors. + * Copyright 2006-2021 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. @@ -361,7 +361,7 @@ public class StepParserStepFactoryBean implements FactoryBean, BeanN builder.processorNonTransactional(); } - if (readerTransactionalQueue!=null && readerTransactionalQueue==true) { + if (readerTransactionalQueue != null && readerTransactionalQueue) { builder.readerIsTransactionalQueue(); }