A RetroSearch Logo

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

Search Query:

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

[java] BeanMembersShouldSerialize is extremely noisy · Issue #1668 · pmd/pmd · GitHub

Rule doc: BeanMembersShouldSerialize

This is more of a question but could be seen as documentation bug.
How does the BeanMembersShouldSerialize rule classify a class as bean or used by a bean?
I have a class that will never be serialized ever or someone did something horribly wrong.
I see that for some cases it makes sense to mark members as transient even if they do not implement Serializable as other serialization mechanisms like Gson could also take that modifier into account.
But from the description I don't see when this rule applies to a class and when not and why it is applied to my class which is actually used by no other code as it is meant to be used by consumers of my library.

CristianGM, danieljipa, christianhujer, PMooreWand, andaag and 11 more


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