diff --git a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/config/TestDstu3Config.java b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/config/TestDstu3Config.java index 351af6e31ba..b8f8bc135c3 100644 --- a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/config/TestDstu3Config.java +++ b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/config/TestDstu3Config.java @@ -203,7 +203,7 @@ public class TestDstu3Config extends BaseJavaConfigDstu3 { @Override public void postProcessBeanFactory(final ConfigurableListableBeanFactory beanFactory) throws BeansException { String schedulingDisabled = myEnvironment.getProperty("scheduling_disabled"); - if (schedulingDisabled.equals("true")) { + if ("true".equals(schedulingDisabled)) { for (String beanName : beanFactory.getBeanNamesForType(ScheduledAnnotationBeanPostProcessor.class)) { ((DefaultListableBeanFactory) beanFactory).removeBeanDefinition(beanName); }