Skip to content

Commit 76cd75a

Browse files
committed
Add serialVersionUID to exceptions.
1 parent 2f3ec03 commit 76cd75a

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

Diff for: build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ task sourcesJar(type: Jar, dependsOn: classes) {
127127
allprojects {
128128
gradle.projectsEvaluated {
129129
tasks.withType(JavaCompile) {
130-
options.compilerArgs << "-Xlint:all" << "-Xlint:-serial" << "-Werror"
130+
options.compilerArgs << "-Xlint:all" << "-Werror"
131131
}
132132
tasks.withType(Javadoc) {
133133
options.addStringOption('Xwerror', '-quiet')

Diff for: src/main/java/com/github/fge/avro/IllegalAvroSchemaException.java

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
public final class IllegalAvroSchemaException
2525
extends ProcessingException
2626
{
27+
private static final long serialVersionUID = 2922864168105819839L;
2728
private static final String ILLEGAL = "illegal Avro schema";
2829

2930
public IllegalAvroSchemaException(final Throwable e)

Diff for: src/main/java/com/github/fge/jsonschema2avro/UnsupportedJsonSchemaException.java

+1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@
2424
public final class UnsupportedJsonSchemaException
2525
extends ProcessingException
2626
{
27+
private static final long serialVersionUID = -4913037914523960446L;
2728
}

0 commit comments

Comments
 (0)