A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/403 below:

add a property to ignore class not implementing the Serializable interface · Issue #403 · pmd/pmd · GitHub

Rule Set:
I used PMD 5.4.1 though the Eclipse plugin.

Description:
The BeanMembersShouldSerialize rule : https://pmd.github.io/pmd-5.4.1/pmd-java/rules/java/javabeans.html#BeanMembersShouldSerialize
Since PMD has noway to determinate what is a bean and what is a Service, it would be great to have a property allowing to easily apply this rule only to Bean implementing the Serializable interface.
Kinda like Sonar now does it with its Fields in a "Serializable" class rule.

I see a lot of people asking about it on Stackoverflow and it leads to people adding transient everywhere without really knowing why.


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