From 71b78a97aa18b082caae3b1d718260580436696a Mon Sep 17 00:00:00 2001 From: Michal Kordas Date: Tue, 18 Aug 2015 21:55:54 +0200 Subject: [PATCH] Fix incorrect message format parameter. #1555 Fixes ` UnusedMessageFormatParameter` inspection violation introduced in #1648. Description: >This inspection reports properties values which looks like java.text.MessageFormat format strings but do not use some of the parameters of {xx} kind. For example: ``` # parameter {0} is not used error.message=Something happened in line {1} ``` --- .../tools/checkstyle/checks/imports/messages.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/com/puppycrawl/tools/checkstyle/checks/imports/messages.properties b/src/main/resources/com/puppycrawl/tools/checkstyle/checks/imports/messages.properties index 39b0ba575..c79e8a8db 100644 --- a/src/main/resources/com/puppycrawl/tools/checkstyle/checks/imports/messages.properties +++ b/src/main/resources/com/puppycrawl/tools/checkstyle/checks/imports/messages.properties @@ -14,4 +14,4 @@ custom.import.order=Import statement for ''{2}'' is in the wrong order. Should b custom.import.order.line.separator=''{0}'' should be separated from previous import group. custom.import.order.lex=Wrong lexicographical order for ''{0}'' import. Should be before ''{1}''. custom.import.order.nongroup.import=Imports without groups should be placed at the end of the import list: ''{0}''. -custom.import.order.nongroup.expected=Import statement for ''{2}'' is in the wrong order. Should be in the ''{0}'' group, expecting not assigned imports on this line. +custom.import.order.nongroup.expected=Import statement for ''{1}'' is in the wrong order. Should be in the ''{0}'' group, expecting not assigned imports on this line.