Merge pull request #14067 from izeye

* gh-14067:
  Polish
pull/14085/head
Madhura Bhave 6 years ago
commit ff2b392324

@ -315,14 +315,14 @@ public class ConfigurationPropertiesReportEndpointTests {
this.simpleBoolean = simpleBoolean;
}
public void setMixedBoolean(Boolean mixedBoolean) {
this.mixedBoolean = mixedBoolean;
}
public boolean isMixedBoolean() {
return (this.mixedBoolean != null) ? this.mixedBoolean : false;
}
public void setMixedBoolean(Boolean mixedBoolean) {
this.mixedBoolean = mixedBoolean;
}
public String getmIxedCase() {
return this.mIxedCase;
}

@ -62,14 +62,14 @@ class OnWebApplicationCondition extends SpringBootCondition {
private ConditionOutcome isWebApplication(ConditionContext context,
AnnotatedTypeMetadata metadata, boolean required) {
Type type = deduceType(metadata);
if (Type.SERVLET == type) {
switch (deduceType(metadata)) {
case SERVLET:
return isServletWebApplication(context);
}
else if (Type.REACTIVE == type) {
case REACTIVE:
return isReactiveWebApplication(context);
}
else {
default:
return isAnyWebApplication(context, required);
}
}
@ -88,10 +88,7 @@ class OnWebApplicationCondition extends SpringBootCondition {
return new ConditionOutcome(reactiveOutcome.isMatch(),
message.because(reactiveOutcome.getMessage()));
}
boolean finalOutcome = (required
? servletOutcome.isMatch() && reactiveOutcome.isMatch()
: servletOutcome.isMatch() || reactiveOutcome.isMatch());
return new ConditionOutcome(finalOutcome,
return new ConditionOutcome(servletOutcome.isMatch() || reactiveOutcome.isMatch(),
message.because(servletOutcome.getMessage()).append("and")
.append(reactiveOutcome.getMessage()));
}

@ -1471,7 +1471,7 @@ server] to use can be provided using:
Micrometer provides a hierarchical mapping to
{micrometer-registry-documentation}/jmx[JMX], primarily as a cheap and portable way to
view metrics locally. By default, metrics are exported to the `metrics` JMX domain. The
domain to use can be provided provided using:
domain to use can be provided using:
[source,properties,indent=0]
----

Loading…
Cancel
Save