Skip to content

Commit 64f9d33

Browse files
committed
Merge branch '2.0.x'
2 parents 5ae4b43 + ff2b392 commit 64f9d33

File tree

3 files changed

+13
-16
lines changed

3 files changed

+13
-16
lines changed

spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/context/properties/ConfigurationPropertiesReportEndpointTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,14 +315,14 @@ public void setSimpleBoolean(boolean simpleBoolean) {
315315
this.simpleBoolean = simpleBoolean;
316316
}
317317

318-
public void setMixedBoolean(Boolean mixedBoolean) {
319-
this.mixedBoolean = mixedBoolean;
320-
}
321-
322318
public boolean isMixedBoolean() {
323319
return (this.mixedBoolean != null) ? this.mixedBoolean : false;
324320
}
325321

322+
public void setMixedBoolean(Boolean mixedBoolean) {
323+
this.mixedBoolean = mixedBoolean;
324+
}
325+
326326
public String getmIxedCase() {
327327
return this.mIxedCase;
328328
}

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/OnWebApplicationCondition.java

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@ public ConditionOutcome getMatchOutcome(ConditionContext context,
6262

6363
private ConditionOutcome isWebApplication(ConditionContext context,
6464
AnnotatedTypeMetadata metadata, boolean required) {
65-
Type type = deduceType(metadata);
66-
if (Type.SERVLET == type) {
65+
switch (deduceType(metadata)) {
66+
case SERVLET:
6767
return isServletWebApplication(context);
68-
}
69-
else if (Type.REACTIVE == type) {
68+
69+
case REACTIVE:
7070
return isReactiveWebApplication(context);
71-
}
72-
else {
71+
72+
default:
7373
return isAnyWebApplication(context, required);
7474
}
7575
}
@@ -88,10 +88,7 @@ private ConditionOutcome isAnyWebApplication(ConditionContext context,
8888
return new ConditionOutcome(reactiveOutcome.isMatch(),
8989
message.because(reactiveOutcome.getMessage()));
9090
}
91-
boolean finalOutcome = (required
92-
? servletOutcome.isMatch() && reactiveOutcome.isMatch()
93-
: servletOutcome.isMatch() || reactiveOutcome.isMatch());
94-
return new ConditionOutcome(finalOutcome,
91+
return new ConditionOutcome(servletOutcome.isMatch() || reactiveOutcome.isMatch(),
9592
message.because(servletOutcome.getMessage()).append("and")
9693
.append(reactiveOutcome.getMessage()));
9794
}

spring-boot-project/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1496,8 +1496,8 @@ server] to use can be provided using:
14961496
==== JMX
14971497
Micrometer provides a hierarchical mapping to
14981498
{micrometer-registry-documentation}/jmx[JMX], primarily as a cheap and portable way to
1499-
view metrics locally.By default, metrics are exported to the `metrics` JMX domain. The
1500-
domain to use can be provided provided using:
1499+
view metrics locally. By default, metrics are exported to the `metrics` JMX domain. The
1500+
domain to use can be provided using:
15011501

15021502
[source,properties,indent=0]
15031503
----

0 commit comments

Comments
 (0)