Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
af537d32
Commit
af537d32
authored
6 years ago
by
Vladimir Krivosheev
Browse files
Options
Download
Email Patches
Plain Diff
use util getExtension
parent
b1369e0d
Branches unavailable
Tags unavailable
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
platform/platform-impl/src/com/intellij/openapi/fileTypes/impl/FileTypeManagerImpl.java
+1
-3
.../intellij/openapi/fileTypes/impl/FileTypeManagerImpl.java
with
1 addition
and
3 deletions
+1
-3
platform/platform-impl/src/com/intellij/openapi/fileTypes/impl/FileTypeManagerImpl.java
+
1
-
3
View file @
af537d32
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help