Skip to content

Commit 96eda3c

Browse files
committed
Fix test.
1 parent 3f829a6 commit 96eda3c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

encoders/firebase-encoders-processor/src/main/java/com/google/firebase/encoders/processor/annotations/AnnotationBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public Void visitEnumConstant(VariableElement c, Void unused) {
136136

137137
@Override
138138
protected Void defaultAction(Object o, Void unused) {
139-
fieldSpec.initializer("$L", o);
139+
fieldSpec.initializer("$L", value);
140140
return null;
141141
}
142142
}.visit(value, null);

encoders/firebase-encoders-processor/src/test/resources/ExpectedAtMyAnnotation.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public final class AtMyAnnotation {
3838

3939
private String strVal = "default";
4040

41-
private MyAnnotation.MyEnum enumVal = com.example.MyAnnotation.MyEnum.VALUE1;
41+
private MyAnnotation.MyEnum enumVal = MyAnnotation.MyEnum.VALUE1;
4242

4343
public AtMyAnnotation intVal(int intVal) {
4444
this.intVal = intVal;
@@ -224,4 +224,4 @@ public String toString() {
224224
return sb.toString();
225225
}
226226
}
227-
}
227+
}

0 commit comments

Comments
 (0)