@@ -304,7 +304,7 @@ public Object readResolve() throws ObjectStreamException {
304304// }
305305// }
306306
307-
307+ @ SuppressWarnings ( "unused" )
308308 private static class ShouldNotBeConfiguredBySpring {
309309
310310 private String name ;
@@ -335,6 +335,7 @@ public String getName() {
335335
336336
337337 @ Configurable
338+ @ SuppressWarnings ("unused" )
338339 private static class ShouldBeConfiguredBySpringUsingTypeNameAsBeanName {
339340
340341 private String name ;
@@ -350,6 +351,7 @@ public String getName() {
350351
351352
352353 @ Configurable (autowire =Autowire .BY_TYPE )
354+ @ SuppressWarnings ("unused" )
353355 private static class ShouldBeConfiguredBySpringUsingAutowireByType {
354356
355357 private TestBean friend = null ;
@@ -365,6 +367,7 @@ public void setFriend(TestBean friend) {
365367
366368
367369 @ Configurable (autowire =Autowire .BY_NAME )
370+ @ SuppressWarnings ("unused" )
368371 private static class ValidAutowireByName {
369372
370373 private TestBean friend = null ;
@@ -380,6 +383,7 @@ public void setRamnivas(TestBean friend) {
380383
381384
382385 @ Configurable (autowire =Autowire .BY_NAME , dependencyCheck =true )
386+ @ SuppressWarnings ("unused" )
383387 private static class InvalidAutowireByName {
384388
385389 private TestBean friend ;
@@ -393,7 +397,7 @@ public void setFriend(TestBean friend) {
393397 }
394398 }
395399
396-
400+ @ SuppressWarnings ( "unused" )
397401 private static class ArbitraryExistingPojo {
398402
399403 private TestBean friend ;
@@ -426,6 +430,7 @@ public boolean isSingleton() {
426430
427431
428432 @ Configurable
433+ @ SuppressWarnings ("unused" )
429434 private static class BaseBean {
430435
431436 public int setterCount ;
@@ -447,7 +452,7 @@ private static class SubBeanPreConstruction extends BaseBean {
447452 }
448453
449454 @ Configurable
450- @ SuppressWarnings ("serial" )
455+ @ SuppressWarnings ({ "serial" , "unused" } )
451456 private static class BaseSerializableBean implements Serializable {
452457
453458 public int setterCount ;
@@ -467,6 +472,7 @@ private static class SubSerializableBean extends BaseSerializableBean {
467472
468473
469474 @ Aspect
475+ @ SuppressWarnings ("unused" )
470476 private static class WireArbitraryExistingPojo extends AbstractBeanConfigurerAspect {
471477
472478 @ Pointcut ("initialization(ArbitraryExistingPojo.new(..)) && this(beanInstance)" )
@@ -477,6 +483,7 @@ protected void beanCreation(Object beanInstance){
477483
478484
479485 @ Aspect
486+ @ SuppressWarnings ("unused" )
480487 private static class AspectThatWillNotBeUsed extends AbstractBeanConfigurerAspect {
481488
482489 @ Pointcut ("initialization(ClassThatWillNotActuallyBeWired.new(..)) && this(beanInstance)" )
0 commit comments