mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Merge branch 'master' of git.labs.intellij.net:idea/community
This commit is contained in:
@@ -140,6 +140,14 @@ public class MalformedFormatStringInspection extends BaseInspection{
|
||||
return;
|
||||
}
|
||||
if(validators.length != argumentCount){
|
||||
if (argumentCount == 1) {
|
||||
final PsiExpression argument =
|
||||
arguments[formatArgPosition + 1];
|
||||
final PsiType argumentType = argument.getType();
|
||||
if (argumentType instanceof PsiArrayType) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
registerError(formatArgument, validators,
|
||||
Integer.valueOf(argumentCount));
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user