From 6cb0b47ef5dc6e5de175bd952cd9c8abff022c7a Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Tue, 24 Apr 2018 22:22:48 +0200 Subject: [PATCH] [apex] Add test case, refs #776 Note: only solution right now is supressing the rule for the string. --- .../rule/errorprone/xml/AvoidHardcodingId.xml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/pmd-apex/src/test/resources/net/sourceforge/pmd/lang/apex/rule/errorprone/xml/AvoidHardcodingId.xml b/pmd-apex/src/test/resources/net/sourceforge/pmd/lang/apex/rule/errorprone/xml/AvoidHardcodingId.xml index 8e8f7393de..d69a71476f 100644 --- a/pmd-apex/src/test/resources/net/sourceforge/pmd/lang/apex/rule/errorprone/xml/AvoidHardcodingId.xml +++ b/pmd-apex/src/test/resources/net/sourceforge/pmd/lang/apex/rule/errorprone/xml/AvoidHardcodingId.xml @@ -74,4 +74,21 @@ public class Foo { } ]]> + + + [apex] AvoidHardcodingId false positives #776 + 0 + +