From 0e3990931eeae17cd62313b9a60a22a760384bc7 Mon Sep 17 00:00:00 2001 From: Andrey Kolchanov Date: Fri, 1 Jan 2021 18:08:59 +0300 Subject: [PATCH 1/2] Make a field final See gh-24629 --- .../boot/context/config/StandardConfigDataResource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/config/StandardConfigDataResource.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/config/StandardConfigDataResource.java index 5da42de779..0b889e02a3 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/config/StandardConfigDataResource.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/config/StandardConfigDataResource.java @@ -36,7 +36,7 @@ public class StandardConfigDataResource extends ConfigDataResource { private final Resource resource; - private boolean emptyDirectory; + private final boolean emptyDirectory; /** * Create a new {@link StandardConfigDataResource} instance. From 1bc1258341f0c9daefc9d73b960d0d5f47734000 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Sun, 3 Jan 2021 17:58:46 +0100 Subject: [PATCH 2/2] Polish "Make a field final" See gh-24629 --- .../boot/context/config/StandardConfigDataResource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/config/StandardConfigDataResource.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/config/StandardConfigDataResource.java index 0b889e02a3..fa0284713d 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/config/StandardConfigDataResource.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/config/StandardConfigDataResource.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2020 the original author or authors. + * Copyright 2012-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.