mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Fix unused type compiler warnings
This commit is contained in:
@@ -560,6 +560,7 @@ public class BridgeMethodResolverTests {
|
||||
}
|
||||
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private static class StringGenericParameter implements GenericParameter<String> {
|
||||
|
||||
@Override
|
||||
@@ -1163,6 +1164,7 @@ public class BridgeMethodResolverTests {
|
||||
}
|
||||
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private static class MegaMessageProducerImpl extends Other<Long, String> implements MegaMessageProducer {
|
||||
|
||||
public void receive(NewMegaMessageEvent event) {
|
||||
@@ -1198,6 +1200,7 @@ public class BridgeMethodResolverTests {
|
||||
}
|
||||
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private static abstract class AbstractImplementsInterface<D extends DomainObjectSuper> implements IGenericInterface<D> {
|
||||
|
||||
@Override
|
||||
|
||||
+5
-1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2011 the original author or authors.
|
||||
* Copyright 2002-2013 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -122,10 +122,12 @@ public class AnnotationTypeFilterTests {
|
||||
}
|
||||
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private static class SomeSubClassOfSomeComponentInterface implements SomeComponentInterface {
|
||||
}
|
||||
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private static class SomeSubClassOfSomeComponent extends SomeComponent {
|
||||
}
|
||||
|
||||
@@ -139,10 +141,12 @@ public class AnnotationTypeFilterTests {
|
||||
}
|
||||
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private static class SomeSubclassOfSomeClassMarkedWithNonInheritedAnnotation extends SomeClassMarkedWithNonInheritedAnnotation {
|
||||
}
|
||||
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private static class SomeNonCandidateClass {
|
||||
}
|
||||
|
||||
|
||||
+3
-1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
* Copyright 2002-2013 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -81,6 +81,7 @@ public class AssignableTypeFilterTests extends TestCase {
|
||||
}
|
||||
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private static class TestInterfaceImpl implements TestInterface {
|
||||
}
|
||||
|
||||
@@ -89,6 +90,7 @@ public class AssignableTypeFilterTests extends TestCase {
|
||||
}
|
||||
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private static class SomeDaoLikeImpl extends SimpleJdbcDaoSupport implements SomeDaoLikeInterface {
|
||||
}
|
||||
|
||||
|
||||
@@ -308,19 +308,25 @@ public class ClassUtilsTests extends TestCase {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private static class OverloadedMethodsClass {
|
||||
|
||||
public void print(String messages) {
|
||||
/* no-op */
|
||||
}
|
||||
|
||||
public void print(String[] messages) {
|
||||
/* no-op */
|
||||
}
|
||||
}
|
||||
|
||||
private static class SubOverloadedMethodsClass extends OverloadedMethodsClass{
|
||||
@SuppressWarnings("unused")
|
||||
private static class SubOverloadedMethodsClass extends OverloadedMethodsClass {
|
||||
|
||||
public void print(String header, String[] messages) {
|
||||
/* no-op */
|
||||
}
|
||||
|
||||
void print(String header, String[] messages, String footer) {
|
||||
/* no-op */
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
* Copyright 2002-2013 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -191,6 +191,7 @@ public class MethodInvokerTests extends TestCase {
|
||||
}
|
||||
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public static class Greeter {
|
||||
|
||||
// should handle Salesman (only interface)
|
||||
|
||||
Reference in New Issue
Block a user