Skip to content

Commit cb71fac

Browse files
committed
Avoid using Guava's Charset.
Replaced with Java's StandardCharset. Fixes #2026.
1 parent c90e542 commit cb71fac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/json/DomainObjectReaderUnitTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
import java.io.ByteArrayInputStream;
3030
import java.io.IOException;
31+
import java.nio.charset.StandardCharsets;
3132
import java.util.*;
3233

3334
import org.junit.Before;
@@ -64,7 +65,6 @@
6465
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
6566
import com.fasterxml.jackson.databind.module.SimpleModule;
6667
import com.fasterxml.jackson.databind.node.ObjectNode;
67-
import com.google.common.base.Charsets;
6868

6969
/**
7070
* Unit tests for {@link DomainObjectReader}.
@@ -240,7 +240,7 @@ public void readsPatchForEntityNestedInCollection() throws Exception {
240240
user.phones.add(phone);
241241

242242
ByteArrayInputStream source = new ByteArrayInputStream(
243-
"{ \"phones\" : [ { \"label\" : \"some label\" } ] }".getBytes(Charsets.UTF_8));
243+
"{ \"phones\" : [ { \"label\" : \"some label\" } ] }".getBytes(StandardCharsets.UTF_8));
244244

245245
User result = reader.read(source, user, new ObjectMapper());
246246

0 commit comments

Comments
 (0)