Skip to content

Commit 9f36c57

Browse files
cpovirkronshapiro
authored andcommitted
Instead of calling Subject.actual(), store the actual value in a field, and read that.
actual() is being removed. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=246997654
1 parent 4eeb8c0 commit 9f36c57

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

value/src/test/java/com/google/auto/value/extension/memoized/MemoizedMethodSubject.java

+5-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@
2828
import javax.tools.JavaFileObject;
2929

3030
final class MemoizedMethodSubject extends Subject<MemoizedMethodSubject, String> {
31+
private final String actual;
3132

32-
MemoizedMethodSubject(FailureMetadata failureMetadata, String subject) {
33-
super(failureMetadata, subject);
33+
MemoizedMethodSubject(FailureMetadata failureMetadata, String actual) {
34+
super(failureMetadata, actual);
35+
this.actual = actual;
3436
}
3537

3638
void hasError(String error) {
@@ -42,7 +44,7 @@ void hasError(String error) {
4244
"",
4345
"@AutoValue abstract class Value {",
4446
" abstract String string();",
45-
getSubject(),
47+
actual,
4648
"}");
4749
assertAbout(javaSource())
4850
.that(file)

0 commit comments

Comments
 (0)