forked from square/dagger
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Retain nullability annotations when building override versions of fun…
…ctions. PiperOrigin-RevId: 684170828
- Loading branch information
1 parent
a03263c
commit 41fd826
Showing
7 changed files
with
233 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
...onentRequirementFieldTest_testBindsNullableInstance_DEFAULT_MODE_test.DaggerTestComponent
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package test; | ||
|
||
import dagger.internal.DaggerGenerated; | ||
import javax.annotation.processing.Generated; | ||
|
||
@DaggerGenerated | ||
@Generated( | ||
value = "dagger.internal.codegen.ComponentProcessor", | ||
comments = "https://dagger.dev" | ||
) | ||
@SuppressWarnings({ | ||
"unchecked", | ||
"rawtypes", | ||
"KotlinInternal", | ||
"KotlinInternalInJava", | ||
"cast", | ||
"deprecation" | ||
}) | ||
final class DaggerTestComponent { | ||
private DaggerTestComponent() { | ||
} | ||
|
||
public static TestComponent.Factory factory() { | ||
return new Factory(); | ||
} | ||
|
||
private static final class Factory implements TestComponent.Factory { | ||
@Override | ||
public TestComponent create(@Nullable Bar arg) { | ||
return new TestComponentImpl(arg); | ||
} | ||
} | ||
|
||
private static final class TestComponentImpl implements TestComponent { | ||
private final TestComponentImpl testComponentImpl = this; | ||
|
||
private TestComponentImpl(Bar argParam) { | ||
|
||
|
||
} | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
...entRequirementFieldTest_testBindsNullableInstance_FAST_INIT_MODE_test.DaggerTestComponent
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package test; | ||
|
||
import dagger.internal.DaggerGenerated; | ||
import javax.annotation.processing.Generated; | ||
|
||
@DaggerGenerated | ||
@Generated( | ||
value = "dagger.internal.codegen.ComponentProcessor", | ||
comments = "https://dagger.dev" | ||
) | ||
@SuppressWarnings({ | ||
"unchecked", | ||
"rawtypes", | ||
"KotlinInternal", | ||
"KotlinInternalInJava", | ||
"cast", | ||
"deprecation" | ||
}) | ||
final class DaggerTestComponent { | ||
private DaggerTestComponent() { | ||
} | ||
|
||
public static TestComponent.Factory factory() { | ||
return new Factory(); | ||
} | ||
|
||
private static final class Factory implements TestComponent.Factory { | ||
@Override | ||
public TestComponent create(@Nullable Bar arg) { | ||
return new TestComponentImpl(arg); | ||
} | ||
} | ||
|
||
private static final class TestComponentImpl implements TestComponent { | ||
private final TestComponentImpl testComponentImpl = this; | ||
|
||
private TestComponentImpl(Bar argParam) { | ||
|
||
|
||
} | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
...quirementFieldTest_testBindsTypeUseNullableInstance_DEFAULT_MODE_test.DaggerTestComponent
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package test; | ||
|
||
import dagger.internal.DaggerGenerated; | ||
import javax.annotation.processing.Generated; | ||
|
||
@DaggerGenerated | ||
@Generated( | ||
value = "dagger.internal.codegen.ComponentProcessor", | ||
comments = "https://dagger.dev" | ||
) | ||
@SuppressWarnings({ | ||
"unchecked", | ||
"rawtypes", | ||
"KotlinInternal", | ||
"KotlinInternalInJava", | ||
"cast", | ||
"deprecation" | ||
}) | ||
final class DaggerTestComponent { | ||
private DaggerTestComponent() { | ||
} | ||
|
||
public static TestComponent.Factory factory() { | ||
return new Factory(); | ||
} | ||
|
||
private static final class Factory implements TestComponent.Factory { | ||
@Override | ||
public TestComponent create(@Nullable Bar arg) { | ||
return new TestComponentImpl(arg); | ||
} | ||
} | ||
|
||
private static final class TestComponentImpl implements TestComponent { | ||
private final TestComponentImpl testComponentImpl = this; | ||
|
||
private TestComponentImpl(Bar argParam) { | ||
|
||
|
||
} | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
...irementFieldTest_testBindsTypeUseNullableInstance_FAST_INIT_MODE_test.DaggerTestComponent
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package test; | ||
|
||
import dagger.internal.DaggerGenerated; | ||
import javax.annotation.processing.Generated; | ||
|
||
@DaggerGenerated | ||
@Generated( | ||
value = "dagger.internal.codegen.ComponentProcessor", | ||
comments = "https://dagger.dev" | ||
) | ||
@SuppressWarnings({ | ||
"unchecked", | ||
"rawtypes", | ||
"KotlinInternal", | ||
"KotlinInternalInJava", | ||
"cast", | ||
"deprecation" | ||
}) | ||
final class DaggerTestComponent { | ||
private DaggerTestComponent() { | ||
} | ||
|
||
public static TestComponent.Factory factory() { | ||
return new Factory(); | ||
} | ||
|
||
private static final class Factory implements TestComponent.Factory { | ||
@Override | ||
public TestComponent create(@Nullable Bar arg) { | ||
return new TestComponentImpl(arg); | ||
} | ||
} | ||
|
||
private static final class TestComponentImpl implements TestComponent { | ||
private final TestComponentImpl testComponentImpl = this; | ||
|
||
private TestComponentImpl(Bar argParam) { | ||
|
||
|
||
} | ||
} | ||
} |