From 3a0ab010669d2bd574de1c566aa3ebb75688e69a Mon Sep 17 00:00:00 2001 From: heqiang <531364804@qq.com> Date: Sun, 29 May 2022 18:00:18 +0800 Subject: [PATCH 1/2] Polish "Remove boxing" See gh-31197 --- .../boot/autoconfigure/condition/OnExpressionCondition.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/OnExpressionCondition.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/OnExpressionCondition.java index a7098f325a..c7a79e5c01 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/OnExpressionCondition.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/OnExpressionCondition.java @@ -51,7 +51,7 @@ class OnExpressionCondition extends SpringBootCondition { return ConditionOutcome.noMatch(messageBuilder.because("no BeanFactory available.")); } - private Boolean evaluateExpression(ConfigurableListableBeanFactory beanFactory, String expression) { + private boolean evaluateExpression(ConfigurableListableBeanFactory beanFactory, String expression) { BeanExpressionResolver resolver = beanFactory.getBeanExpressionResolver(); if (resolver == null) { resolver = new StandardBeanExpressionResolver(); From ad1214c97253aa139c98ac9efecbcc75587b1f0e Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Mon, 30 May 2022 15:13:12 +0200 Subject: [PATCH 2/2] Upgrade copyright year of changed files See gh-31197 --- .../boot/autoconfigure/condition/OnExpressionCondition.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/OnExpressionCondition.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/OnExpressionCondition.java index c7a79e5c01..703eca8244 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/OnExpressionCondition.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/OnExpressionCondition.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2019 the original author or authors. + * Copyright 2012-2022 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.