Skip to content

Commit cbacab5

Browse files
committed
Polish
1 parent 1eee83a commit cbacab5

File tree

1 file changed

+13
-0
lines changed
  • spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/type

1 file changed

+13
-0
lines changed

spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/type/ContainerStatus.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,23 @@ public String getWaitingErrorMessage() {
6464
return this.waitingErrorMessage;
6565
}
6666

67+
/**
68+
* Create a new {@link ContainerStatus} instance from the specified JSON content
69+
* stream.
70+
* @param content the JSON content stream
71+
* @return a new {@link ContainerStatus} instance
72+
* @throws IOException on IO error
73+
*/
6774
public static ContainerStatus of(InputStream content) throws IOException {
6875
return of(content, ContainerStatus::new);
6976
}
7077

78+
/**
79+
* Create a new {@link ContainerStatus} instance with the specified values.
80+
* @param statusCode the status code
81+
* @param errorMessage the error message
82+
* @return a new {@link ContainerStatus} instance
83+
*/
7184
public static ContainerStatus of(int statusCode, String errorMessage) {
7285
return new ContainerStatus(statusCode, errorMessage);
7386
}

0 commit comments

Comments
 (0)