Commit af537d32 authored by Vladimir Krivosheev's avatar Vladimir Krivosheev
Browse files

use util getExtension

parent b1369e0d
Branches unavailable Tags unavailable
Showing with 1 addition and 3 deletions
+1 -3
......@@ -937,9 +937,7 @@ public class FileTypeManagerImpl extends FileTypeManagerEx implements Persistent
@Override
@NotNull
public String getExtension(@NotNull String fileName) {
int index = fileName.lastIndexOf('.');
if (index < 0) return "";
return fileName.substring(index + 1);
return FileUtilRt.getExtension(fileName);
}
@Override
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment