mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-25 16:29:28 +00:00
ObjectUtils uses HexFormat to format byte[]
Also remove equivalent, applied temporarily in FieldError in 6.2.x. Closes gh-35675
This commit is contained in:
@@ -630,8 +630,8 @@ class ObjectUtilsTests {
|
||||
|
||||
@Test
|
||||
void nullSafeToStringWithByteArray() {
|
||||
byte[] array = {5, 8};
|
||||
assertThat(ObjectUtils.nullSafeToString(array)).isEqualTo("{5, 8}");
|
||||
byte[] array = {5, 38};
|
||||
assertThat(ObjectUtils.nullSafeToString(array)).isEqualTo("{0526}");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user