diff --git a/feed.xml b/feed.xml
index fa0d019b7b..f00b52a9d6 100644
--- a/feed.xml
+++ b/feed.xml
@@ -5,8 +5,8 @@
Priority: Medium (3)
The conversion of literals to strings by concatenating them with empty strings is inefficient. -It is much better to use one of the type-specific toString() methods instead.
+It is much better to use one of the type-specifictoString()
methods instead or String.valueOf()
.
This rule is defined by the following XPath expression:
//AdditiveExpression/PrimaryExpression/PrimaryPrefix/Literal[@Image='""' and not(ancestor::Annotation)]
+|
+//AdditiveExpression/PrimaryExpression/PrimaryPrefix/Name
+ [@Image = (//FieldDeclaration[@Final = true()]|ancestor::MethodDeclaration//LocalVariableDeclaration[@Final = true()])
+ /VariableDeclarator[@Initializer = true()]
+ [VariableInitializer/Expression/PrimaryExpression/PrimaryPrefix/Literal[@Image='""']]
+ /VariableDeclaratorId/@Name]
Example(s):