Browse Source

Polish "Rename HCP to SAP"

Closes gh-9747
pull/9747/merge
Stephane Nicoll 9 years ago
parent
commit
27aee689e7
  1. 3
      spring-boot/src/main/java/org/springframework/boot/cloud/CloudPlatform.java
  2. 5
      spring-boot/src/test/java/org/springframework/boot/cloud/CloudPlatformTests.java

3
spring-boot/src/main/java/org/springframework/boot/cloud/CloudPlatform.java

@ -67,7 +67,6 @@ public enum CloudPlatform { @@ -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 { @@ -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 { @@ -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}
*/

5
spring-boot/src/test/java/org/springframework/boot/cloud/CloudPlatformTests.java

@ -16,12 +16,13 @@ @@ -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}.
*

Loading…
Cancel
Save