From 885d75b3e8d136109cff592c0d9ce2f1ec262a98 Mon Sep 17 00:00:00 2001 From: Pavel Dolgov Date: Thu, 29 Nov 2018 12:49:21 +0300 Subject: [PATCH] Java: Added the line about Java version in the inspection description, fixed the inspection's title (IDEA-202623) --- .../RedundantLabeledSwitchRuleCodeBlock.html | 3 ++- .../src/messages/InspectionsBundle.properties | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/java/java-impl/src/inspectionDescriptions/RedundantLabeledSwitchRuleCodeBlock.html b/java/java-impl/src/inspectionDescriptions/RedundantLabeledSwitchRuleCodeBlock.html index d7efa0bd9792..e722f60ffe4a 100644 --- a/java/java-impl/src/inspectionDescriptions/RedundantLabeledSwitchRuleCodeBlock.html +++ b/java/java-impl/src/inspectionDescriptions/RedundantLabeledSwitchRuleCodeBlock.html @@ -1,6 +1,7 @@ -Reports rules of switch expression or enhanced switch statement which have redundant code block. +Reports rules of switch expression or enhanced switch statement which have redundant code block.
+Available if the language level is at least Java 12 Preview

New in 2019.1

diff --git a/platform/platform-resources-en/src/messages/InspectionsBundle.properties b/platform/platform-resources-en/src/messages/InspectionsBundle.properties index 1349721d5b03..c83ca9a9a8da 100644 --- a/platform/platform-resources-en/src/messages/InspectionsBundle.properties +++ b/platform/platform-resources-en/src/messages/InspectionsBundle.properties @@ -1043,6 +1043,6 @@ inspection.switch.labeled.rule.can.be.code.block.statement.message=Labeled rule' inspection.switch.labeled.rule.can.be.code.block.fix.expression.name=Wrap labeled rule's result with code block inspection.switch.labeled.rule.can.be.code.block.fix.statement.name=Wrap labeled rule's statement with code block -inspection.labeled.switch.rule.redundant.code.block.display.name=Labeled switch rule can have code block +inspection.labeled.switch.rule.redundant.code.block.display.name=Labeled switch rule has redundant code block inspection.labeled.switch.rule.redundant.code.block.message=Labeled rule's code block is redundant inspection.labeled.switch.rule.redundant.code.fix.name=Unwrap code block of labeled rule \ No newline at end of file