【fix sonar】FileTypeFilter文件
This commit is contained in:
+4
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user