We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8811c7 commit 3acfaeeCopy full SHA for 3acfaee
tools/lint/src/test/kotlin/ProviderAssignmentDetectorTests.kt
@@ -88,14 +88,16 @@ class ProviderAssignmentDetectorTests : LintDetectorTest() {
88
.expectClean()
89
}
90
91
- fun test_assignmentAnssdUseOfProvider_shouldSucceed() {
+ fun test_assignmentOfAPropertyOrMethodOfTheProvidedObject_shouldSucceed() {
92
lint().files(java(providerSource()), java("""
93
import com.google.firebase.inject.Provider;
94
95
class Foo {
96
private final int length;
97
+ private final String s;
98
Foo(Provider<String> p) {
99
length = p.get().length;
100
+ s = p.get().toString();
101
102
103
""".trimIndent()))
0 commit comments