Polishing: fix some compiler warnings

This commit is contained in:
Andy Wilkinson 2016-11-22 11:07:51 +00:00
parent 29f0ae3fa8
commit f5dd90815b
3 changed files with 1 additions and 6 deletions

View File

@ -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

View File

@ -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);

View File

@ -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();