mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-80965 - IAE: BraceMatchingUtil.getBraceMatcher
This commit is contained in:
@@ -260,9 +260,8 @@ public class BraceMatchingUtil {
|
||||
return matcher.isPairBraces(tokenType1, tokenType2);
|
||||
}
|
||||
|
||||
private static int getTokenGroup(IElementType tokenType, FileType fileType) {
|
||||
BraceMatcher matcher = getBraceMatcher(fileType, tokenType);
|
||||
return matcher.getBraceTokenGroupId(tokenType);
|
||||
private static int getTokenGroup(@Nullable IElementType tokenType, FileType fileType) {
|
||||
return tokenType == null ? -1 : getBraceMatcher(fileType, tokenType).getBraceTokenGroupId(tokenType);
|
||||
}
|
||||
|
||||
// TODO: better name for this method
|
||||
|
||||
Reference in New Issue
Block a user