Explicitly close ApplicationContexts and clean up warnings in tests

This commit is contained in:
Sam Brannen
2022-03-20 13:02:09 +01:00
parent 7f4e09e994
commit 3da7a48a17
11 changed files with 37 additions and 17 deletions

View File

@@ -27,6 +27,7 @@ import java.io.Serializable;
@SuppressWarnings("serial")
public class NumberHolder<T extends Number> implements Serializable {
@SuppressWarnings("unused")
private final T number;
public NumberHolder(T number) {

View File

@@ -18,8 +18,10 @@ package org.springframework.beans.testfixture.beans.factory.generator.property;
public class ConfigurableBean {
@SuppressWarnings("unused")
private String name;
@SuppressWarnings("unused")
private Integer counter;
public void setName(String name) {