[extract method] use choice instead of generated string

GitOrigin-RevId: 1528b42095be330880646cd15b16afad41e03f01
This commit is contained in:
Alexandr Suhinin
2020-03-20 18:47:31 +00:00
committed by intellij-monorepo-bot
parent 4d74af9a9d
commit 2540e9cc23
2 changed files with 2 additions and 4 deletions
@@ -62,9 +62,7 @@ class SignatureSuggesterPreviewDialog extends DialogWrapper {
@Nullable
@Override
protected JComponent createNorthPanel() {
return new JLabel(JavaRefactoringBundle.message(
"no.exact.method.duplicates.were.found", myDuplicatesNumber,
myDuplicatesNumber > 1 ? "s" : ""));
return new JLabel(JavaRefactoringBundle.message("no.exact.method.duplicates.were.found", myDuplicatesNumber));
}
@Nullable
@@ -419,7 +419,7 @@ move.specified.packages=Move specified packages
move.to.inner.duplicate.inner.class=Class {0} already contains an inner class named {1}
moving.local.classes.is.not.supported=Moving local classes is not supported
no.class.name.specified=No class name specified
no.exact.method.duplicates.were.found=<html><b>No exact method duplicates were found</b>, though changed method as shown below has {0} duplicate{1} </html>
no.exact.method.duplicates.were.found=<html><b>No exact method duplicates were found</b>, though changed method as shown below has {0} {0,choice, 1#duplicate|2#duplicates} </html>
no.initializer.present.for.the.field=No initializer present for the field
no.parameter.name.specified=No parameter name specified
no.usages.can.be.replaced=No usages of {0} \ncan be replaced with usages of {1}