mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Polishing: fix some compiler warnings
This commit is contained in:
parent
29f0ae3fa8
commit
f5dd90815b
@ -37,7 +37,6 @@ import org.springframework.boot.actuate.endpoint.HealthEndpoint;
|
||||
import org.springframework.boot.actuate.endpoint.InfoEndpoint;
|
||||
import org.springframework.boot.actuate.endpoint.LiquibaseEndpoint;
|
||||
import org.springframework.boot.actuate.endpoint.LoggersEndpoint;
|
||||
import org.springframework.boot.actuate.endpoint.LoggersEndpoint.LoggerLevels;
|
||||
import org.springframework.boot.actuate.endpoint.MetricsEndpoint;
|
||||
import org.springframework.boot.actuate.endpoint.PublicMetrics;
|
||||
import org.springframework.boot.actuate.endpoint.RequestMappingEndpoint;
|
||||
@ -131,9 +130,7 @@ public class EndpointAutoConfigurationTests {
|
||||
load(CustomLoggingConfig.class, EndpointAutoConfiguration.class);
|
||||
LoggersEndpoint endpoint = this.context.getBean(LoggersEndpoint.class);
|
||||
Map<String, Object> result = endpoint.invoke();
|
||||
Map<String, LoggerLevels> loggers = (Map<String, LoggerLevels>) result
|
||||
.get("loggers");
|
||||
assertThat(loggers.size()).isGreaterThan(0);
|
||||
assertThat((Map<?, ?>) result.get("loggers")).size().isGreaterThan(0);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -20,7 +20,6 @@ import java.util.List;
|
||||
|
||||
import org.springframework.data.neo4j.repository.GraphRepository;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public interface CustomerRepository extends GraphRepository<Customer> {
|
||||
|
||||
public Customer findByFirstName(String firstName);
|
||||
|
@ -27,7 +27,6 @@ public class SampleNeo4jApplication implements CommandLineRunner {
|
||||
@Autowired
|
||||
private CustomerRepository repository;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@Override
|
||||
public void run(String... args) throws Exception {
|
||||
this.repository.deleteAll();
|
||||
|
Loading…
Reference in New Issue
Block a user