Polish "Rename HCP to SAP"

Closes gh-9747
This commit is contained in:
Stephane Nicoll
2017-07-13 10:51:17 +02:00
parent c02d5d52c6
commit 27aee689e7
2 changed files with 3 additions and 5 deletions

View File

@@ -67,7 +67,6 @@ public enum CloudPlatform {
/**
* Determines if the platform is active (i.e. the application is running in it).
*
* @param environment the environment
* @return if the platform is active.
*/
@@ -76,7 +75,6 @@ public enum CloudPlatform {
/**
* Returns if the platform is behind a load balancer and uses
* {@literal X-Forwarded-For} headers.
*
* @return if {@literal X-Forwarded-For} headers are used
*/
public boolean isUsingForwardHeaders() {
@@ -85,7 +83,6 @@ public enum CloudPlatform {
/**
* Returns the active {@link CloudPlatform} or {@code null} if one cannot be deduced.
*
* @param environment the environment
* @return the {@link CloudPlatform} or {@code null}
*/

View File

@@ -16,12 +16,13 @@
package org.springframework.boot.cloud;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Test;
import org.springframework.core.env.Environment;
import org.springframework.mock.env.MockEnvironment;
import static org.assertj.core.api.Assertions.assertThat;
/**
* Tests for {@link CloudPlatform}.
*