Java PMD warning on non-transient class member
I assume your class is a bean that by definition implements Serializable. A transient variable will be excluded from the serialization process. If you serialize and then deserialize the bean the value will be actually have the default value. PMD assumes you are dealing with a serializable bean here. For a bean it is expected … Read more