Skip to content

Commit 7a27e67

Browse files
izeyesnicoll
authored andcommitted
Fix typo in "committed" in ProcessInfo
See gh-42471
1 parent bc5a718 commit 7a27e67

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/info/ProcessInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public long getUsed() {
126126
return this.memoryUsage.getUsed();
127127
}
128128

129-
public long getCommited() {
129+
public long getCommitted() {
130130
return this.memoryUsage.getCommitted();
131131
}
132132

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/info/ProcessInfoTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ void memoryInfoIsAvailable() {
4545
MemoryUsageInfo heapUsageInfo = processInfo.getMemory().getHeap();
4646
MemoryUsageInfo nonHeapUsageInfo = processInfo.getMemory().getNonHeap();
4747
assertThat(heapUsageInfo.getInit()).isPositive().isLessThanOrEqualTo(heapUsageInfo.getMax());
48-
assertThat(heapUsageInfo.getUsed()).isPositive().isLessThanOrEqualTo(heapUsageInfo.getCommited());
49-
assertThat(heapUsageInfo.getCommited()).isPositive().isLessThanOrEqualTo(heapUsageInfo.getMax());
48+
assertThat(heapUsageInfo.getUsed()).isPositive().isLessThanOrEqualTo(heapUsageInfo.getCommitted());
49+
assertThat(heapUsageInfo.getCommitted()).isPositive().isLessThanOrEqualTo(heapUsageInfo.getMax());
5050
assertThat(heapUsageInfo.getMax()).isPositive();
5151
assertThat(nonHeapUsageInfo.getInit()).isPositive();
52-
assertThat(nonHeapUsageInfo.getUsed()).isPositive().isLessThanOrEqualTo(heapUsageInfo.getCommited());
53-
assertThat(nonHeapUsageInfo.getCommited()).isPositive();
52+
assertThat(nonHeapUsageInfo.getUsed()).isPositive().isLessThanOrEqualTo(heapUsageInfo.getCommitted());
53+
assertThat(nonHeapUsageInfo.getCommitted()).isPositive();
5454
assertThat(nonHeapUsageInfo.getMax()).isEqualTo(-1);
5555
}
5656

0 commit comments

Comments
 (0)