Merge pull request #916 from mnhock

* gh-916:
  Polish "Remove unused String.format call"
  Remove unused String.format call

Closes gh-916
This commit is contained in:
Andy Wilkinson
2024-01-24 14:12:15 +00:00

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2014-2023 the original author or authors.
* Copyright 2014-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -50,8 +50,7 @@ public class ConcatenatingCommandFormatterTests {
@Test
public void formattingMultipleElements() {
assertThat(this.singleLineFormat.format(Arrays.asList("alpha", "bravo")))
.isEqualTo(String.format(" alpha bravo"));
assertThat(this.singleLineFormat.format(Arrays.asList("alpha", "bravo"))).isEqualTo(" alpha bravo");
}
}