File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
core/test/com/google/inject Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ interface B {}
250
250
@ BindingAnnotation
251
251
@interface Foo {}
252
252
253
- @ SuppressWarnings ("ScopeOrQualifierAnnotationRetention " ) // intentional, to check failure mode
253
+ @ SuppressWarnings ("InjectScopeOrQualifierAnnotationRetention " ) // to check failure mode
254
254
@ Target ({ElementType .FIELD , ElementType .PARAMETER , ElementType .METHOD })
255
255
@ BindingAnnotation
256
256
@interface Bar {}
Original file line number Diff line number Diff line change @@ -167,6 +167,7 @@ protected void configure() {
167
167
}
168
168
}
169
169
170
+ @ SuppressWarnings ("InjectScopeAnnotationOnInterfaceOrAbstractClass" ) // for testing
170
171
@ Singleton
171
172
interface A {}
172
173
@@ -175,6 +176,7 @@ static class AImpl implements A {}
175
176
@ Retention (RUNTIME )
176
177
@interface Component {}
177
178
179
+ @ SuppressWarnings ("InjectScopeAnnotationOnInterfaceOrAbstractClass" ) // for testing
178
180
@ Component
179
181
@ Singleton
180
182
interface ComponentAnnotationTest {}
@@ -204,6 +206,7 @@ public void testScopingAnnotationsOnAbstractTypeViaImplementedBy() {
204
206
}
205
207
}
206
208
209
+ @ SuppressWarnings ("InjectScopeAnnotationOnInterfaceOrAbstractClass" ) // for testing
207
210
@ Singleton
208
211
@ ImplementedBy (DImpl .class )
209
212
interface D {}
@@ -223,6 +226,7 @@ public void testScopingAnnotationsOnAbstractTypeViaProvidedBy() {
223
226
}
224
227
}
225
228
229
+ @ SuppressWarnings ("InjectScopeAnnotationOnInterfaceOrAbstractClass" ) // for testing
226
230
@ Singleton
227
231
@ ProvidedBy (EProvider .class )
228
232
interface E {}
@@ -505,7 +509,7 @@ public <T> Provider<T> scope(Key<T> key, Provider<T> unscoped) {
505
509
}
506
510
};
507
511
508
- @ SuppressWarnings ("ScopeOrQualifierAnnotationRetention " ) // intentional, to check failure mode
512
+ @ SuppressWarnings ("InjectScopeOrQualifierAnnotationRetention " ) // to check failure mode
509
513
@ Target ({ElementType .TYPE , ElementType .METHOD })
510
514
@ ScopeAnnotation
511
515
public @interface NotRuntimeRetainedScoped {}
You can’t perform that action at this time.
0 commit comments