diff options
author | Éamonn McManus <emcmanus@google.com> | 2020-09-16 07:21:41 -0700 |
---|---|---|
committer | Google Java Core Libraries <java-core-libraries-team+copybara@google.com> | 2020-09-16 07:22:11 -0700 |
commit | 6bed859f25a8f164506b9fa7437bdbd32ccf1cd0 (patch) | |
tree | 85dc52ff845967840a43140a1a087ac90f9a198e /value/src/test/java/com/google | |
parent | 86573bb3edaa301e963ff52ebbd3340bc9923c5b (diff) | |
download | auto-6bed859f25a8f164506b9fa7437bdbd32ccf1cd0.tar.gz |
Compute a `serialVersionUID` for `@AutoAnnotation` implementations based on the names and types of the `@AutoAnnotation` method parameters.
RELNOTES=n/a
PiperOrigin-RevId: 332000022
Diffstat (limited to 'value/src/test/java/com/google')
-rw-r--r-- | value/src/test/java/com/google/auto/value/processor/AutoAnnotationCompilationTest.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/value/src/test/java/com/google/auto/value/processor/AutoAnnotationCompilationTest.java b/value/src/test/java/com/google/auto/value/processor/AutoAnnotationCompilationTest.java index f30f519d..f8070245 100644 --- a/value/src/test/java/com/google/auto/value/processor/AutoAnnotationCompilationTest.java +++ b/value/src/test/java/com/google/auto/value/processor/AutoAnnotationCompilationTest.java @@ -80,7 +80,7 @@ public class AutoAnnotationCompilationTest { "@Generated(\"" + AutoAnnotationProcessor.class.getName() + "\")", "final class AutoAnnotation_AnnotationFactory_newMyAnnotation", " implements MyAnnotation, Serializable {", - " private static final long serialVersionUID = 1L;", + " private static final long serialVersionUID = -7473814294717163169L;", " private final MyEnum value;", " private static final int defaultedValue = 23;", "", @@ -165,7 +165,7 @@ public class AutoAnnotationCompilationTest { "@Generated(\"" + AutoAnnotationProcessor.class.getName() + "\")", "final class AutoAnnotation_AnnotationFactory_newMyAnnotation", " implements MyAnnotation, Serializable {", - " private static final long serialVersionUID = 1L;", + " private static final long serialVersionUID = 0L;", " AutoAnnotation_AnnotationFactory_newMyAnnotation() {", " }", "", @@ -248,7 +248,7 @@ public class AutoAnnotationCompilationTest { "@Generated(\"" + AutoAnnotationProcessor.class.getName() + "\")", "final class AutoAnnotation_AnnotationFactory_newMyAnnotation implements MyAnnotation," + " Serializable {", - " private static final long serialVersionUID = 1L;", + " private static final long serialVersionUID = -8116050813861599066L;", " private final int[] value;", "", " AutoAnnotation_AnnotationFactory_newMyAnnotation(int[] value) {", @@ -359,7 +359,7 @@ public class AutoAnnotationCompilationTest { "@Generated(\"" + AutoAnnotationProcessor.class.getName() + "\")", "final class AutoAnnotation_AnnotationFactory_newMyAnnotation implements MyAnnotation," + " Serializable {", - " private static final long serialVersionUID = 1L;", + " private static final long serialVersionUID = -2102364343628921304L;", " private final int[] value;", " private final MyEnum[] enums;", "", |