A RetroSearch Logo

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

Search Query:

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

[java] MissingSerialVersionUID false-negative with abstract classes · Issue #1352 · pmd/pmd · GitHub

Affects PMD Version: any

Rule: errorprone / MissingSerialVersionUID

Description:
As mentioned in #1350 and described in https://stackoverflow.com/questions/893259/should-an-abstract-class-have-a-serialversionuid abstract classes also should have a serialversionUID field.

Currently we ignore abstract classes which is wrong.

Code Sample demonstrating the issue:

import java.io.Serializable; 
public abstract class Foo implements Serializable { 
} 

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