[java-inspections] IDEA-197280 Non-constant string concatenation as argument" could also be triggered for String.format

- Support simple cases for String.format
- Support simple cases for MessageFormat.format

GitOrigin-RevId: 50f52f526923950e30746691414bb89ce5fca5ab
This commit is contained in:
Mikhail Pyltsin
2024-03-29 18:34:16 +00:00
committed by intellij-monorepo-bot
parent 8a1cf90bc0
commit a750ec4eb0
20 changed files with 525 additions and 30 deletions
@@ -1918,8 +1918,10 @@ arrays.as.list.with.zero.or.one.argument.display.name=Call to 'Arrays.asList()'
arrays.as.list.with.one.argument.problem.descriptor=Call to <code>#ref()</code> with only one argument #loc
arrays.as.list.with.zero.arguments.problem.descriptor=Call to <code>#ref()</code> to create an empty List #loc
string.concatenation.argument.to.log.call.display.name=Non-constant string concatenation as argument to logging call
string.concatenation.argument.to.log.call.problem.descriptor=Non-constant string concatenation as argument to <code>#ref()</code> logging call #loc
string.concatenation.argument.to.log.call.problem.descriptor=Evaluated string as argument to <code>#ref()</code> logging call #loc
string.concatenation.argument.to.log.call.quickfix=Replace concatenation with parameterized log message
string.concatenation.argument.to.log.string.format.call.quickfix=Replace 'String.format()' with parameterized log message
string.concatenation.argument.to.log.message.format.call.quickfix=Replace 'Message.format()' with parameterized log message
assignment.to.superclass.field.display.name=Constructor assigns value to field defined in superclass
assignment.to.superclass.field.problem.descriptor=Assignment to field ''{0}'' defined in superclass ''{1}'' #loc
inner.class.referenced.via.subclass.display.name=Inner class referenced via subclass