mirror of
https://github.com/github/codeql.git
synced 2026-03-21 15:06:46 +01:00
11 lines
300 B
Java
11 lines
300 B
Java
class WrongNote implements Serializable {
|
|
// BAD: serialVersionUID must be static, final, and 'long'
|
|
private static final int serialVersionUID = 1;
|
|
|
|
//...
|
|
}
|
|
|
|
class Note implements Serializable {
|
|
// GOOD: serialVersionUID is of the correct type
|
|
private static final long serialVersionUID = 1L;
|
|
} |