From d6d32ec01d3f67061a29ce7cd9d209d8107b0c1b Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Tue, 29 Oct 2019 09:02:25 +0100 Subject: [PATCH] Polish --- .../springframework/boot/actuate/endpoint/EndpointId.java | 4 ++-- .../configurationprocessor/PropertyDescriptorResolver.java | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/EndpointId.java b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/EndpointId.java index 4df8a27f05..cda5378f11 100644 --- a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/EndpointId.java +++ b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/EndpointId.java @@ -45,7 +45,7 @@ public final class EndpointId { private static final Pattern WARNING_PATTERN = Pattern.compile("[\\.\\-]+"); - private static final String MIGRATE_LEGACY_NAMES_PROPRTY = "management.endpoints.migrate-legacy-ids"; + private static final String MIGRATE_LEGACY_NAMES_PROPERTY = "management.endpoints.migrate-legacy-ids"; private final String value; @@ -130,7 +130,7 @@ public final class EndpointId { } private static String migrateLegacyId(Environment environment, String value) { - if (environment.getProperty(MIGRATE_LEGACY_NAMES_PROPRTY, Boolean.class, false)) { + if (environment.getProperty(MIGRATE_LEGACY_NAMES_PROPERTY, Boolean.class, false)) { return value.replace(".", ""); } return value; diff --git a/spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/PropertyDescriptorResolver.java b/spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/PropertyDescriptorResolver.java index 872f874381..0f35c203f2 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/PropertyDescriptorResolver.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/PropertyDescriptorResolver.java @@ -158,12 +158,12 @@ class PropertyDescriptorResolver { private ExecutableElement findBoundConstructor() { ExecutableElement boundConstructor = null; - for (ExecutableElement canidate : this.constructors) { - if (!canidate.getParameters().isEmpty()) { + for (ExecutableElement candidate : this.constructors) { + if (!candidate.getParameters().isEmpty()) { if (boundConstructor != null) { return null; } - boundConstructor = canidate; + boundConstructor = candidate; } } return boundConstructor;