Skip to content

Commit c83404b

Browse files
samebcgdecker
authored andcommitted
use the correct suppression name, oops. also add some other suppressions.
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=312555246
1 parent 80d360b commit c83404b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

core/test/com/google/inject/KeyTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ interface B {}
250250
@BindingAnnotation
251251
@interface Foo {}
252252

253-
@SuppressWarnings("ScopeOrQualifierAnnotationRetention") // intentional, to check failure mode
253+
@SuppressWarnings("InjectScopeOrQualifierAnnotationRetention") // to check failure mode
254254
@Target({ElementType.FIELD, ElementType.PARAMETER, ElementType.METHOD})
255255
@BindingAnnotation
256256
@interface Bar {}

core/test/com/google/inject/ScopesTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ protected void configure() {
167167
}
168168
}
169169

170+
@SuppressWarnings("InjectScopeAnnotationOnInterfaceOrAbstractClass") // for testing
170171
@Singleton
171172
interface A {}
172173

@@ -175,6 +176,7 @@ static class AImpl implements A {}
175176
@Retention(RUNTIME)
176177
@interface Component {}
177178

179+
@SuppressWarnings("InjectScopeAnnotationOnInterfaceOrAbstractClass") // for testing
178180
@Component
179181
@Singleton
180182
interface ComponentAnnotationTest {}
@@ -204,6 +206,7 @@ public void testScopingAnnotationsOnAbstractTypeViaImplementedBy() {
204206
}
205207
}
206208

209+
@SuppressWarnings("InjectScopeAnnotationOnInterfaceOrAbstractClass") // for testing
207210
@Singleton
208211
@ImplementedBy(DImpl.class)
209212
interface D {}
@@ -223,6 +226,7 @@ public void testScopingAnnotationsOnAbstractTypeViaProvidedBy() {
223226
}
224227
}
225228

229+
@SuppressWarnings("InjectScopeAnnotationOnInterfaceOrAbstractClass") // for testing
226230
@Singleton
227231
@ProvidedBy(EProvider.class)
228232
interface E {}
@@ -505,7 +509,7 @@ public <T> Provider<T> scope(Key<T> key, Provider<T> unscoped) {
505509
}
506510
};
507511

508-
@SuppressWarnings("ScopeOrQualifierAnnotationRetention") // intentional, to check failure mode
512+
@SuppressWarnings("InjectScopeOrQualifierAnnotationRetention") // to check failure mode
509513
@Target({ElementType.TYPE, ElementType.METHOD})
510514
@ScopeAnnotation
511515
public @interface NotRuntimeRetainedScoped {}

0 commit comments

Comments
 (0)