Skip to content

Commit cbd6557

Browse files
cushonGoogle Java Core Libraries
authored and
Google Java Core Libraries
committed
Fix syntax errors in AutoValue test expected outputs
PiperOrigin-RevId: 587782815
1 parent 29b57f3 commit cbd6557

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

value/src/test/java/com/google/auto/value/processor/AutoAnnotationCompilationTest.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ public void testGwtSimple() {
243243
"package com.example.factories;",
244244
"",
245245
"import com.example.annotations.MyAnnotation;",
246-
"import java.io.Serializable",
246+
"import java.io.Serializable;",
247247
"import java.util.Arrays;",
248248
GeneratedImport.importGeneratedAnnotationType(),
249249
"",
@@ -376,7 +376,7 @@ public void testCollectionsForArrays() {
376376
" if (enums == null) {",
377377
" throw new NullPointerException(\"Null enums\");",
378378
" }",
379-
" this.enums = enums.toArray(new MyEnum[0];",
379+
" this.enums = enums.toArray(new MyEnum[0]);",
380380
" }",
381381
"",
382382
" @Override public Class<? extends MyAnnotation> annotationType() {",
@@ -414,7 +414,7 @@ public void testCollectionsForArrays() {
414414
" && Arrays.equals(enums,",
415415
" (that instanceof AutoAnnotation_AnnotationFactory_newMyAnnotation)",
416416
" ? ((AutoAnnotation_AnnotationFactory_newMyAnnotation) that).enums",
417-
" : that.enums())",
417+
" : that.enums());",
418418
" }",
419419
" return false;",
420420
" }",

value/src/test/java/com/google/auto/value/processor/AutoOneOfCompilationTest.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
import org.junit.runner.RunWith;
2828
import org.junit.runners.JUnit4;
2929

30-
/** @author [email protected] (Éamonn McManus) */
30+
/**
31+
* @author [email protected] (Éamonn McManus)
32+
*/
3133
@RunWith(JUnit4.class)
3234
public class AutoOneOfCompilationTest {
3335
@Rule public final Expect expect = Expect.create();
@@ -233,7 +235,8 @@ public void success() {
233235
" public TaskResult.Kind getKind() {",
234236
" return TaskResult.Kind.EMPTY;",
235237
" }",
236-
" }");
238+
" }",
239+
"}");
237240
Compilation compilation =
238241
javac()
239242
.withProcessors(new AutoOneOfProcessor())

0 commit comments

Comments
 (0)