Affects PMD Version:
6.16.0
and 53fbbb5
Rule:
GodClass
Description:
Some external properties are not calculated when code is structured in a certain way.
Code Sample demonstrating the issue:
// Counts as 2 external properties: // Possible God Class (WMC=130, ATFD=105, TCC=0.631%) FileFilter tmp = openDialog.getFileFilter(); showStatus("Not a valid file format: " + tmp.getDescription()); // Counts no external properties: // Possible God Class (WMC=130, ATFD=107, TCC=0.631%) showStatus("Not a valid file format: " + openDialog.getFileFilter().getDescription());
For me, both code fragments should give the same ATFD
Running PMD through: *CLI *
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4