Fix behavior of deprecated FileTypeDetector.detect

This commit is contained in:
Richard Cordovano 2018-01-07 13:06:03 -05:00
parent 2880234569
commit 0fa972a572

View File

@ -438,7 +438,6 @@ public class FileTypeDetector {
@Deprecated @Deprecated
public String detect(AbstractFile file) throws TskCoreException { public String detect(AbstractFile file) throws TskCoreException {
String fileType = detectMIMEType(file); String fileType = detectMIMEType(file);
file.setMIMEType(fileType); // Retain side effect of setting value in file object.
return fileType; return fileType;
} }