Consistent abstract declaration for utility classes (plus polishing)

Issue: SPR-16968
This commit is contained in:
Juergen Hoeller
2018-07-01 02:31:20 +02:00
parent e72f4ec501
commit 4ff1e3e74b
21 changed files with 31 additions and 77 deletions

View File

@@ -26,12 +26,7 @@ import org.springframework.core.annotation.AnnotatedElementUtils;
* @author Sam Brannen
* @since 4.2
*/
public final class TestAnnotationUtils {
private TestAnnotationUtils() {
}
public abstract class TestAnnotationUtils {
/**
* Get the {@code timeout} configured via the {@link Timed @Timed}

View File

@@ -38,15 +38,11 @@ import org.springframework.util.StringUtils;
* @see org.springframework.jdbc.datasource.init.ResourceDatabasePopulator
* @see org.springframework.jdbc.datasource.init.DatabasePopulatorUtils
*/
public final class JdbcTestUtils {
public abstract class JdbcTestUtils {
private static final Log logger = LogFactory.getLog(JdbcTestUtils.class);
private JdbcTestUtils() {
}
/**
* Count the rows in the given table.
* @param jdbcTemplate the JdbcTemplate with which to perform JDBC operations

View File

@@ -35,7 +35,6 @@ import org.springframework.web.context.WebApplicationContext;
*/
public final class MockMvcBuilders {
private MockMvcBuilders() {
}