【fix sonar】FileTypeFilter文件

This commit is contained in:
梁琦涛
2023-03-03 15:05:23 +08:00
parent c8606b3d4c
commit 276aac5d23
@@ -14,6 +14,10 @@ import java.util.Iterator;
*/
public class FileTypeFilter {
private FileTypeFilter(){
}
//文件后缀
private static String[] forbidType = {"jsp","php"};
@@ -113,7 +117,6 @@ public class FileTypeFilter {
String fileExtendName = null;
InputStream is;
try {
//is = new FileInputStream(file);
is = file.getInputStream();
byte[] b = new byte[10];
is.read(b, 0, b.length);