Commit d6d32ec0 authored by Stephane Nicoll's avatar Stephane Nicoll

Polish

parent 5e813f60
...@@ -45,7 +45,7 @@ public final class EndpointId { ...@@ -45,7 +45,7 @@ public final class EndpointId {
private static final Pattern WARNING_PATTERN = Pattern.compile("[\\.\\-]+"); 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; private final String value;
...@@ -130,7 +130,7 @@ public final class EndpointId { ...@@ -130,7 +130,7 @@ public final class EndpointId {
} }
private static String migrateLegacyId(Environment environment, String value) { 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.replace(".", "");
} }
return value; return value;
......
...@@ -158,12 +158,12 @@ class PropertyDescriptorResolver { ...@@ -158,12 +158,12 @@ class PropertyDescriptorResolver {
private ExecutableElement findBoundConstructor() { private ExecutableElement findBoundConstructor() {
ExecutableElement boundConstructor = null; ExecutableElement boundConstructor = null;
for (ExecutableElement canidate : this.constructors) { for (ExecutableElement candidate : this.constructors) {
if (!canidate.getParameters().isEmpty()) { if (!candidate.getParameters().isEmpty()) {
if (boundConstructor != null) { if (boundConstructor != null) {
return null; return null;
} }
boundConstructor = canidate; boundConstructor = candidate;
} }
} }
return boundConstructor; return boundConstructor;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment