aboutsummaryrefslogtreecommitdiff
path: root/javatests/dagger/internal/codegen/goldens/ComponentProcessorTest_nullIncorrectlyReturnedFromNonNullableInlinedProvider_DEFAULT_MODE_test.TestModule_NonNullableStringFactory
blob: 96e87082296c0f991c3dcfce12611a95400b84f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package test;

import dagger.internal.DaggerGenerated;
import dagger.internal.Factory;
import dagger.internal.Preconditions;
import dagger.internal.QualifierMetadata;
import dagger.internal.ScopeMetadata;
import javax.annotation.processing.Generated;

@ScopeMetadata
@QualifierMetadata
@DaggerGenerated
@Generated(
    value = "dagger.internal.codegen.ComponentProcessor",
    comments = "https://dagger.dev"
)
@SuppressWarnings({
    "unchecked",
    "rawtypes",
    "KotlinInternal",
    "KotlinInternalInJava",
    "cast"
})
public final class TestModule_NonNullableStringFactory implements Factory<String> {
  @Override
  public String get() {
    return nonNullableString();
  }

  public static TestModule_NonNullableStringFactory create() {
    return InstanceHolder.INSTANCE;
  }

  public static String nonNullableString() {
    return Preconditions.checkNotNullFromProvides(TestModule.nonNullableString());
  }

  private static final class InstanceHolder {
    private static final TestModule_NonNullableStringFactory INSTANCE = new TestModule_NonNullableStringFactory();
  }
}