Rule Set:
AccessorClassGeneration (java-design)
Description:
I've found a way of not triggering the AccessorClassGeneration even though it should as the synthetic methods and classes are generated.
Code Sample demonstrating the issue:
public class Example extends View { private Example(final Context context) { super(context); } public static void create() { new Handler().post(new Runnable() { @Override public void run() { Example example = new Example(null); // Should be marked since the constructor is private. } }); } }
Running PMD 5.5.4 through: [Gradle]
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