mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-01 03:39:05 +00:00
Rename LogMessage.lazy(Supplier) to LogMessage.of(Supplier)
See gh-22726
This commit is contained in:
@@ -28,7 +28,7 @@ public class LogSupportTests {
|
||||
|
||||
@Test
|
||||
public void testLogMessageWithSupplier() {
|
||||
LogMessage msg = LogMessage.lazy(() -> new StringBuilder("a").append(" b"));
|
||||
LogMessage msg = LogMessage.of(() -> new StringBuilder("a").append(" b"));
|
||||
assertEquals("a b", msg.toString());
|
||||
assertSame(msg.toString(), msg.toString());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user