Misleading name for java:S1948

Rule java:S1948 is ‘Fields in a “Serializable” class should either be transient or serializable’ and the issue-specific message is something like ‘Make “foo” transient or serializable’.

The dev who encountered this fixed it by making the field (which is a logger) static, and pointed out that static fields aren’t serialized. So perhaps this should be included as an option, e.g., ‘Non-static fields in a “Serializable” class should either be transient or serializable’ or ‘Make “foo” transient, serializable, or static’.

Thank you for the suggestion! I created a ticket for tracking.