Skip to content

Commit 888d4ac

Browse files
krzykphilwebb
authored andcommitted
Use '==' rather than '.equals' with enum value
See gh-33987
1 parent c7a8151 commit 888d4ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/reactive/WebFluxEndpointManagementContextConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2021 the original author or authors.
2+
* Copyright 2012-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -88,7 +88,7 @@ public WebFluxEndpointHandlerMapping webEndpointReactiveHandlerMapping(WebEndpoi
8888
private boolean shouldRegisterLinksMapping(WebEndpointProperties properties, Environment environment,
8989
String basePath) {
9090
return properties.getDiscovery().isEnabled() && (StringUtils.hasText(basePath)
91-
|| ManagementPortType.get(environment).equals(ManagementPortType.DIFFERENT));
91+
|| ManagementPortType.get(environment) == ManagementPortType.DIFFERENT);
9292
}
9393

9494
@Bean

0 commit comments

Comments
 (0)