Skip to content

Commit 79ff75f

Browse files
committed
Polish "Remove unused String.format call"
See gh-916
1 parent ccc81f2 commit 79ff75f

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(" alpha bravo");
53+
assertThat(this.singleLineFormat.format(Arrays.asList("alpha", "bravo"))).isEqualTo(" alpha bravo");
5554
}
5655

5756
}

0 commit comments

Comments
 (0)