java.text.MessageFormat support
Is there some way to detect syntax errors in strings passed to java.text.MessageFormat? For example, wonrg number of arguments (passing "hello {0}, this is {1}" with one argument), arguments that cannot match their definitions, etc.
If not, will such a feature exist in future releases? (I don't mind opening an issue, but I have no clue as where to open it)
Please sign in to leave a comment.
There are several inspections available that report problems with Java format strings. You may want to enable one or more of the following inspections:
- Missing message format parameter
- Malformed format string
- Redundant call to 'String.format()'
Bas
I was hoping for something I could configure. I've created a wrapper for some of MessageFormat functionality (merged with other functionality) and I would to be notified by the IDE when the strings I give that wrapper are inconsistent with MessageFormat rules.