GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — [java] HardcodedCryptoKey false negative with variable assignments · Issue #3368 · pmd/pmd Closed DescriptionAffects PMD Version: 6.35.0 Rule:HardcodedCryptoKey Please provide the rule name and a link to the rule documentation: Description: Code Sample demonstrating the issue: public void testHardCodedCryptoKey(boolean tag) { String str; if(tag) { str = "Hardcoded Crypto Key1"; } else { str = "Hardcoded Crypto Key2"; } SecretKeySpec secretKeySpec = new SecretKeySpec(str.getBytes(), "AES"); // should report a warning here } Expected outcome: PMD should report a violation at line 9, but doesn't. This is a false-negative. Running PMD through: [Maven] Activity
MetadataMetadataAssigneesLabelsa:false-negativePMD doesn't flag a problematic piece of code TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |