Skip to content

Commit 7167a57

Browse files
committed
Add serialVersionUID to exceptions.
1 parent ac9cb52 commit 7167a57

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

Diff for: build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ task sourcesJar(type: Jar, dependsOn: classes) {
9797
allprojects {
9898
gradle.projectsEvaluated {
9999
tasks.withType(JavaCompile) {
100-
options.compilerArgs << "-Xlint:all" << "-Xlint:-serial"<< "-Werror"
100+
options.compilerArgs << "-Xlint:all" << "-Werror"
101101
}
102102
tasks.withType(Javadoc) {
103103
options.addStringOption('Xwerror', '-quiet')

Diff for: src/main/java/com/github/fge/compiler/CompilingException.java

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
public final class CompilingException
88
extends ProcessingException
99
{
10+
private static final long serialVersionUID = -1392370773447805892L;
11+
1012
public CompilingException(final ProcessingMessage message)
1113
{
1214
super(message);

Diff for: src/main/java/com/github/fge/jsonschema2pojo/UnsupportedVersionException.java

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
public final class UnsupportedVersionException
77
extends ProcessingException
88
{
9+
private static final long serialVersionUID = -1629731636752469256L;
10+
911
public UnsupportedVersionException()
1012
{
1113
super("only draft v3 is supported");

0 commit comments

Comments
 (0)