From 54962a9ad8d9b9bb04d5e0795318d6f919333dcf Mon Sep 17 00:00:00 2001 From: Andreas Asplund Date: Sat, 7 Sep 2019 12:24:45 +0200 Subject: [PATCH] Added constructor signatures to java.io.FileReader and java.io.FileWriter since there are safe methods with Charset that can be used since java 11. --- .../forbiddenapis/signatures/jdk-unsafe-1.6.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main/resources/de/thetaphi/forbiddenapis/signatures/jdk-unsafe-1.6.txt b/src/main/resources/de/thetaphi/forbiddenapis/signatures/jdk-unsafe-1.6.txt index 605c6a31..c15a817c 100644 --- a/src/main/resources/de/thetaphi/forbiddenapis/signatures/jdk-unsafe-1.6.txt +++ b/src/main/resources/de/thetaphi/forbiddenapis/signatures/jdk-unsafe-1.6.txt @@ -23,8 +23,14 @@ java.lang.String#(byte[],int,int) java.lang.String#(byte[],int,int,int) java.lang.String#getBytes() java.lang.String#getBytes(int,int,byte[],int) -java.io.FileReader -java.io.FileWriter +java.io.FileReader#(java.lang.String) +java.io.FileReader#(java.io.File) +java.io.FileReader#(java.io.FileDescriptor) +java.io.FileWriter#(java.lang.String) +java.io.FileWriter#(java.lang.String,boolean) +java.io.FileWriter#(java.io.File) +java.io.FileWriter#(java.io.File,boolean) +java.io.FileWriter#(java.io.FileDescriptor) java.io.ByteArrayOutputStream#toString() java.io.InputStreamReader#(java.io.InputStream) java.io.OutputStreamWriter#(java.io.OutputStream)