From 9b38db6672b085d7f999ddde77e6e04158014d88 Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Sat, 8 Jul 2023 08:28:28 +0900 Subject: [PATCH] Polish PemSslBundleProperties See gh-36281 --- .../autoconfigure/ssl/PemSslBundleProperties.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/ssl/PemSslBundleProperties.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/ssl/PemSslBundleProperties.java index 89f51bf27d..16798cb2cb 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/ssl/PemSslBundleProperties.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/ssl/PemSslBundleProperties.java @@ -31,12 +31,12 @@ public class PemSslBundleProperties extends SslBundleProperties { /** * Keystore properties. */ - private Store keystore = new Store(); + private final Store keystore = new Store(); /** * Truststore properties. */ - private Store truststore = new Store(); + private final Store truststore = new Store(); public Store getKeystore() { return this.keystore; @@ -54,22 +54,22 @@ public class PemSslBundleProperties extends SslBundleProperties { /** * Type of the store to create, e.g. JKS. */ - String type; + private String type; /** * Location or content of the certificate in PEM format. */ - String certificate; + private String certificate; /** * Location or content of the private key in PEM format. */ - String privateKey; + private String privateKey; /** * Password used to decrypt an encrypted private key. */ - String privateKeyPassword; + private String privateKeyPassword; public String getType() { return this.type;