Clean up warnings in spring-orm

This commit is contained in:
Sam Brannen 2016-07-26 14:02:33 +02:00
parent 195467083c
commit 7ff9f0a8e9
5 changed files with 2 additions and 6 deletions

View File

@ -1256,7 +1256,7 @@ public class HibernateTemplate implements HibernateOperations, InitializingBean
}
@Override
@SuppressWarnings("deprecation")
@SuppressWarnings({"rawtypes", "deprecation"})
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
// Invocation on Session interface coming in...

View File

@ -64,7 +64,6 @@ import org.springframework.util.StringUtils;
* @author Juergen Hoeller
* @since 2.0
*/
@SuppressWarnings("unchecked")
public abstract class EntityManagerFactoryUtils {
/**

View File

@ -39,7 +39,6 @@ import static org.junit.Assert.*;
* @author Rod Johnson
* @author Juergen Hoeller
*/
@SuppressWarnings("deprecation")
public abstract class AbstractContainerEntityManagerFactoryIntegrationTests extends AbstractEntityManagerFactoryIntegrationTests {
@Test

View File

@ -39,7 +39,6 @@ import static org.junit.Assert.*;
* @author Juergen Hoeller
* @since 2.0
*/
@SuppressWarnings("deprecation")
public class ContainerManagedEntityManagerIntegrationTests extends AbstractEntityManagerFactoryIntegrationTests {
@Autowired

View File

@ -1,5 +1,5 @@
/*
* Copyright 2002-2015 the original author or authors.
* Copyright 2002-2016 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.
@ -306,7 +306,6 @@ public class LocalContainerEntityManagerFactoryBeanTests extends AbstractEntityM
}
@SuppressWarnings("unused")
private static class DummyContainerPersistenceProvider implements PersistenceProvider {
@Override