Skip to content

Commit 27aee68

Browse files
committed
Polish "Rename HCP to SAP"
Closes gh-9747
1 parent c02d5d5 commit 27aee68

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ public boolean isActive(Environment environment) {
6767

6868
/**
6969
* Determines if the platform is active (i.e. the application is running in it).
70-
*
7170
* @param environment the environment
7271
* @return if the platform is active.
7372
*/
@@ -76,7 +75,6 @@ public boolean isActive(Environment environment) {
7675
/**
7776
* Returns if the platform is behind a load balancer and uses
7877
* {@literal X-Forwarded-For} headers.
79-
*
8078
* @return if {@literal X-Forwarded-For} headers are used
8179
*/
8280
public boolean isUsingForwardHeaders() {
@@ -85,7 +83,6 @@ public boolean isUsingForwardHeaders() {
8583

8684
/**
8785
* Returns the active {@link CloudPlatform} or {@code null} if one cannot be deduced.
88-
*
8986
* @param environment the environment
9087
* @return the {@link CloudPlatform} or {@code null}
9188
*/

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@
1616

1717
package org.springframework.boot.cloud;
1818

19-
import static org.assertj.core.api.Assertions.assertThat;
20-
2119
import org.junit.Test;
20+
2221
import org.springframework.core.env.Environment;
2322
import org.springframework.mock.env.MockEnvironment;
2423

24+
import static org.assertj.core.api.Assertions.assertThat;
25+
2526
/**
2627
* Tests for {@link CloudPlatform}.
2728
*

0 commit comments

Comments
 (0)