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] AvoidCallingFinalize detects some false positives · Issue #2578 · pmd/pmd Closed Labels a:false-positivePMD flags a piece of code that is not problematic Milestone DescriptionAffects PMD Version: Rule: Description: private boolean checkForViolation(ScopedNode node) { MethodScope meth = node.getScope().getEnclosingScope(MethodScope.class); if (meth != null && "finalize".equals(meth.getName())) { return false; } if (meth != null && checked.contains(meth)) { return false; } if (meth != null) { checked.add(meth); } return true; } This code is to find calling of Code Sample demonstrating the issue: public boolean finalCommand() { return finalize; // This line is marked as an error } Example 2: public LispCommand(boolean finalCommand, SourceLayout layout) { this.finalize = finalCommand; // This line is marked as an error this.layout = layout; } Example 3: _coloringMethod.finalize(raster); // This line is marked as an error Expected outcome: false-positive Running PMD through: Activity
MetadataMetadataAssigneesLabelsa:false-positivePMD flags a piece of code that is not problematic 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. |