aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/it/functional-tests/target/generated-sources/annotations/test/sub/ContributionsModule_ContributeSomeIntsFactory.java
blob: 68e42d694edeace8ec095cba01e207304672d7d2 (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
package test.sub;

import dagger.internal.Factory;
import java.util.Set;
import javax.annotation.Generated;

@Generated("dagger.internal.codegen.ComponentProcessor")
public final class ContributionsModule_ContributeSomeIntsFactory implements Factory<Set<Integer>> {
  private final ContributionsModule module;

  public ContributionsModule_ContributeSomeIntsFactory(ContributionsModule module) {  
    assert module != null;
    this.module = module;
  }

  @Override
  public Set<Integer> get() {  
    Set<Integer> provided = module.contributeSomeInts();
    if (provided == null) {
      throw new NullPointerException("Cannot return null from a non-@Nullable @Provides method");
    }
    return provided;
  }

  public static Factory<Set<Integer>> create(ContributionsModule module) {  
    return new ContributionsModule_ContributeSomeIntsFactory(module);
  }
}