Skip to content

Commit 7a3d26c

Browse files
gregorrieglerTeamModerne
authored andcommitted
simplify boolean expression
Co-authored-by: Moderne <[email protected]>
1 parent 6d5a4d5 commit 7a3d26c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/CoreNamespacePostProcessor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2013 the original author or authors.
2+
* Copyright 2006-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -97,7 +97,7 @@ private void overrideStepClass(String beanName, ConfigurableListableBeanFactory
9797
BeanDefinition bd = beanFactory.getBeanDefinition(beanName);
9898
Object isNamespaceStep = BeanDefinitionUtils
9999
.getAttribute(beanName, "isNamespaceStep", beanFactory);
100-
if (isNamespaceStep != null && (Boolean) isNamespaceStep == true) {
100+
if (isNamespaceStep != null && (Boolean) isNamespaceStep) {
101101
((AbstractBeanDefinition) bd).setBeanClass(StepParserStepFactoryBean.class);
102102
}
103103
}

spring-batch-core/src/main/java/org/springframework/batch/core/configuration/xml/StepParserStepFactoryBean.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2013 the original author or authors.
2+
* Copyright 2006-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -361,7 +361,7 @@ protected Step createFaultTolerantStep() {
361361
builder.processorNonTransactional();
362362
}
363363

364-
if (readerTransactionalQueue!=null && readerTransactionalQueue==true) {
364+
if (readerTransactionalQueue != null && readerTransactionalQueue) {
365365
builder.readerIsTransactionalQueue();
366366
}
367367

0 commit comments

Comments
 (0)