Fix use of == in EndpointWebMvcHypermediaManagementContextConfiguration

Closes gh-4502
Closes gh-4536
This commit is contained in:
Vedran Pavic 2015-11-15 22:11:58 +01:00 committed by Andy Wilkinson
parent 46edee2e45
commit d9f15636d0

View File

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