Skip to content

Commit 5df0350

Browse files
committed
Replaced deprecated guava Files.toString() usage
1 parent ffd97b4 commit 5df0350

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mitm/src/main/java/net/lightbody/bmp/mitm/TrustSource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public TrustSource add(File trustedCAPemFile) {
174174

175175
String pemFileContents;
176176
try {
177-
pemFileContents = Files.toString(trustedCAPemFile, StandardCharsets.UTF_8);
177+
pemFileContents = Files.asCharSource(trustedCAPemFile, StandardCharsets.UTF_8).read();
178178
} catch (IOException e) {
179179
throw new UncheckedIOException("Unable to read file containing PEM-encoded trusted CAs: " + trustedCAPemFile.getAbsolutePath(), e);
180180
}

0 commit comments

Comments
 (0)