From c6def29a7df3b5e0c7879055877d53b66897f10b Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Wed, 27 Apr 2016 15:16:13 +0300 Subject: [PATCH] inspection description reworded --- .../inspectionDescriptions/MagicConstant.html | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/resources-en/src/inspectionDescriptions/MagicConstant.html b/resources-en/src/inspectionDescriptions/MagicConstant.html index 24b12bd60aef..166afc030dfe 100644 --- a/resources-en/src/inspectionDescriptions/MagicConstant.html +++ b/resources-en/src/inspectionDescriptions/MagicConstant.html @@ -1,10 +1,19 @@ -Report occurrences where usages of "magic" constants only are allowed +Report occurrences where usages of "magic" constants are preferred but other expressions are used instead.
-E.g.
-new Font("Arial", 2 ) // not allowed
-instead of new Font("Arial", Font. ITALIC ) // OK
+E.g. + +

+ +// bare literal used, warning:
+new Font("Arial", 2)
+ +
+instead of

+ +// "magic" constant used, good:
+new Font("Arial", Font.ITALIC)