Fix use of == in EndpointWebMvcHypermediaManagementContextConfiguration

Closes gh-4502
Closes gh-4536
pull/4502/merge
Vedran Pavic 9 years ago committed by Andy Wilkinson
parent 46edee2e45
commit d9f15636d0

@ -128,8 +128,7 @@ public class EndpointWebMvcHypermediaManagementContextConfiguration {
ManagementServerProperties management, DocsMvcEndpoint endpoint) { ManagementServerProperties management, DocsMvcEndpoint endpoint) {
String path = management.getContextPath() + endpoint.getPath() String path = management.getContextPath() + endpoint.getPath()
+ "/#spring_boot_actuator__{rel}"; + "/#spring_boot_actuator__{rel}";
if (server.getPort() == management.getPort() && management.getPort() != null if (server.getPort().equals(management.getPort()) && management.getPort() != 0) {
&& management.getPort() != 0) {
path = server.getPath(path); path = server.getPath(path);
} }
return new DefaultCurieProvider("boot", new UriTemplate(path)); return new DefaultCurieProvider("boot", new UriTemplate(path));

Loading…
Cancel
Save