Skip to content

Commit a74723c

Browse files
committed
Merge pull request #916 from mnhock
* gh-916: Polish "Remove unused String.format call" Remove unused String.format call Closes gh-916
2 parents 947d7bc + 79ff75f commit a74723c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

spring-restdocs-core/src/test/java/org/springframework/restdocs/cli/ConcatenatingCommandFormatterTests.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2023 the original author or authors.
2+
* Copyright 2014-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -50,8 +50,7 @@ public void formattingASingleElement() {
5050

5151
@Test
5252
public void formattingMultipleElements() {
53-
assertThat(this.singleLineFormat.format(Arrays.asList("alpha", "bravo")))
54-
.isEqualTo(String.format(" alpha bravo"));
53+
assertThat(this.singleLineFormat.format(Arrays.asList("alpha", "bravo"))).isEqualTo(" alpha bravo");
5554
}
5655

5756
}

0 commit comments

Comments
 (0)