Commit 64f9d339 authored by Madhura Bhave's avatar Madhura Bhave

Merge branch '2.0.x'

parents 5ae4b438 ff2b3923
...@@ -315,14 +315,14 @@ public class ConfigurationPropertiesReportEndpointTests { ...@@ -315,14 +315,14 @@ public class ConfigurationPropertiesReportEndpointTests {
this.simpleBoolean = simpleBoolean; this.simpleBoolean = simpleBoolean;
} }
public void setMixedBoolean(Boolean mixedBoolean) {
this.mixedBoolean = mixedBoolean;
}
public boolean isMixedBoolean() { public boolean isMixedBoolean() {
return (this.mixedBoolean != null) ? this.mixedBoolean : false; return (this.mixedBoolean != null) ? this.mixedBoolean : false;
} }
public void setMixedBoolean(Boolean mixedBoolean) {
this.mixedBoolean = mixedBoolean;
}
public String getmIxedCase() { public String getmIxedCase() {
return this.mIxedCase; return this.mIxedCase;
} }
......
...@@ -62,14 +62,14 @@ class OnWebApplicationCondition extends SpringBootCondition { ...@@ -62,14 +62,14 @@ class OnWebApplicationCondition extends SpringBootCondition {
private ConditionOutcome isWebApplication(ConditionContext context, private ConditionOutcome isWebApplication(ConditionContext context,
AnnotatedTypeMetadata metadata, boolean required) { AnnotatedTypeMetadata metadata, boolean required) {
Type type = deduceType(metadata); switch (deduceType(metadata)) {
if (Type.SERVLET == type) { case SERVLET:
return isServletWebApplication(context); return isServletWebApplication(context);
}
else if (Type.REACTIVE == type) { case REACTIVE:
return isReactiveWebApplication(context); return isReactiveWebApplication(context);
}
else { default:
return isAnyWebApplication(context, required); return isAnyWebApplication(context, required);
} }
} }
...@@ -88,10 +88,7 @@ class OnWebApplicationCondition extends SpringBootCondition { ...@@ -88,10 +88,7 @@ class OnWebApplicationCondition extends SpringBootCondition {
return new ConditionOutcome(reactiveOutcome.isMatch(), return new ConditionOutcome(reactiveOutcome.isMatch(),
message.because(reactiveOutcome.getMessage())); message.because(reactiveOutcome.getMessage()));
} }
boolean finalOutcome = (required return new ConditionOutcome(servletOutcome.isMatch() || reactiveOutcome.isMatch(),
? servletOutcome.isMatch() && reactiveOutcome.isMatch()
: servletOutcome.isMatch() || reactiveOutcome.isMatch());
return new ConditionOutcome(finalOutcome,
message.because(servletOutcome.getMessage()).append("and") message.because(servletOutcome.getMessage()).append("and")
.append(reactiveOutcome.getMessage())); .append(reactiveOutcome.getMessage()));
} }
......
...@@ -1496,8 +1496,8 @@ server] to use can be provided using: ...@@ -1496,8 +1496,8 @@ server] to use can be provided using:
==== JMX ==== JMX
Micrometer provides a hierarchical mapping to Micrometer provides a hierarchical mapping to
{micrometer-registry-documentation}/jmx[JMX], primarily as a cheap and portable way 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 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] [source,properties,indent=0]
---- ----
......
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