【fix sonar】FileTypeFilter文件
This commit is contained in:
+4
-1
@@ -14,6 +14,10 @@ import java.util.Iterator;
|
|||||||
*/
|
*/
|
||||||
public class FileTypeFilter {
|
public class FileTypeFilter {
|
||||||
|
|
||||||
|
private FileTypeFilter(){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
//文件后缀
|
//文件后缀
|
||||||
private static String[] forbidType = {"jsp","php"};
|
private static String[] forbidType = {"jsp","php"};
|
||||||
|
|
||||||
@@ -113,7 +117,6 @@ public class FileTypeFilter {
|
|||||||
String fileExtendName = null;
|
String fileExtendName = null;
|
||||||
InputStream is;
|
InputStream is;
|
||||||
try {
|
try {
|
||||||
//is = new FileInputStream(file);
|
|
||||||
is = file.getInputStream();
|
is = file.getInputStream();
|
||||||
byte[] b = new byte[10];
|
byte[] b = new byte[10];
|
||||||
is.read(b, 0, b.length);
|
is.read(b, 0, b.length);
|
||||||
|
|||||||
Reference in New Issue
Block a user