PMD Version: 6.9.0
Rule: DataflowAnomalyAnalysis
Description: To ensure that I understand the notion of data flow correctly, I tested with simple codes. I found something weird during the test. I intuitively thought that the data flow for variable a in the code below is DRD. However, DD anomaly occurred for variable a.
I suspect that the rule do not read the code according to the actual flow of variables, but read it in the order of the code(from left to right). Is is intended or fault for the rule design?
public void Test(){
int a = 0;
a = a + 3;
}
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