mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-65657 (better check applicability)
This commit is contained in:
+4
-1
@@ -39,7 +39,10 @@ public class InsertLiteralUnderscoresAction extends PsiElementBaseIntentionActio
|
||||
!PsiType.FLOAT.equals(type) && !PsiType.DOUBLE.equals(type)) return false;
|
||||
|
||||
final String text = literalExpression.getText();
|
||||
return text != null && !text.contains("_");
|
||||
if (text == null || text.contains("_")) return false;
|
||||
|
||||
final String converted = LiteralFormatUtil.format(text, type);
|
||||
return converted.length() != text.length();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user