aboutsummaryrefslogtreecommitdiff
path: root/javatests/dagger/internal/codegen/SwitchingProviderTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'javatests/dagger/internal/codegen/SwitchingProviderTest.java')
-rw-r--r--javatests/dagger/internal/codegen/SwitchingProviderTest.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/javatests/dagger/internal/codegen/SwitchingProviderTest.java b/javatests/dagger/internal/codegen/SwitchingProviderTest.java
index 615b09dbf..593ad497f 100644
--- a/javatests/dagger/internal/codegen/SwitchingProviderTest.java
+++ b/javatests/dagger/internal/codegen/SwitchingProviderTest.java
@@ -18,6 +18,7 @@ package dagger.internal.codegen;
import static com.google.testing.compile.CompilationSubject.assertThat;
import static com.google.testing.compile.Compiler.javac;
+import static dagger.internal.codegen.GeneratedLines.GENERATED_CODE_ANNOTATIONS;
import com.google.common.collect.ImmutableList;
import com.google.testing.compile.Compilation;
@@ -67,7 +68,7 @@ public class SwitchingProviderTest {
JavaFileObjects.forSourceLines(
"test.DaggerTestComponent",
"package test;",
- GeneratedLines.generatedAnnotations(),
+ GENERATED_CODE_ANNOTATIONS,
"final class DaggerTestComponent implements TestComponent {",
" private final class SwitchingProvider<T> implements Provider<T> {",
" @SuppressWarnings(\"unchecked\")",
@@ -247,7 +248,7 @@ public class SwitchingProviderTest {
"test.DaggerTestComponent",
"package test;",
"",
- GeneratedLines.generatedAnnotations(),
+ GENERATED_CODE_ANNOTATIONS,
"final class DaggerTestComponent implements TestComponent {",
" private volatile Provider<String> sProvider;",
"",
@@ -332,7 +333,7 @@ public class SwitchingProviderTest {
"test.DaggerTestComponent",
"package test;",
"",
- GeneratedLines.generatedAnnotations(),
+ GENERATED_CODE_ANNOTATIONS,
"final class DaggerTestComponent implements TestComponent {",
" private volatile Object charSequence = new MemoizedSentinel();",
" private volatile Provider<CharSequence> cProvider;",
@@ -423,7 +424,7 @@ public class SwitchingProviderTest {
"test.DaggerTestComponent",
"package test;",
"",
- GeneratedLines.generatedAnnotations(),
+ GENERATED_CODE_ANNOTATIONS,
"final class DaggerTestComponent implements TestComponent {",
" @Override",
" public Provider<Set<String>> setProvider() {",
@@ -468,7 +469,7 @@ public class SwitchingProviderTest {
"test.DaggerTestComponent",
"package test;",
"",
- GeneratedLines.generatedAnnotations(),
+ GENERATED_CODE_ANNOTATIONS,
"final class DaggerTestComponent implements TestComponent {",
" private Provider<MembersInjector<Foo>> fooMembersInjectorProvider;",
"",
@@ -539,7 +540,7 @@ public class SwitchingProviderTest {
"test.DaggerTestComponent",
"package test;",
"",
- GeneratedLines.generatedAnnotations(),
+ GENERATED_CODE_ANNOTATIONS,
"final class DaggerTestComponent implements TestComponent {",
" @SuppressWarnings(\"rawtypes\")",
" private static final Provider ABSENT_JDK_OPTIONAL_PROVIDER =",