Skip to content

Commit 7ff9f0a

Browse files
committed
Clean up warnings in spring-orm
1 parent 1954670 commit 7ff9f0a

File tree

5 files changed

+2
-6
lines changed

5 files changed

+2
-6
lines changed

spring-orm/src/main/java/org/springframework/orm/hibernate5/HibernateTemplate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1256,7 +1256,7 @@ public CloseSuppressingInvocationHandler(Session target) {
12561256
}
12571257

12581258
@Override
1259-
@SuppressWarnings("deprecation")
1259+
@SuppressWarnings({"rawtypes", "deprecation"})
12601260
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
12611261
// Invocation on Session interface coming in...
12621262

spring-orm/src/main/java/org/springframework/orm/jpa/EntityManagerFactoryUtils.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464
* @author Juergen Hoeller
6565
* @since 2.0
6666
*/
67-
@SuppressWarnings("unchecked")
6867
public abstract class EntityManagerFactoryUtils {
6968

7069
/**

spring-orm/src/test/java/org/springframework/orm/jpa/AbstractContainerEntityManagerFactoryIntegrationTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
* @author Rod Johnson
4040
* @author Juergen Hoeller
4141
*/
42-
@SuppressWarnings("deprecation")
4342
public abstract class AbstractContainerEntityManagerFactoryIntegrationTests extends AbstractEntityManagerFactoryIntegrationTests {
4443

4544
@Test

spring-orm/src/test/java/org/springframework/orm/jpa/ContainerManagedEntityManagerIntegrationTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
* @author Juergen Hoeller
4040
* @since 2.0
4141
*/
42-
@SuppressWarnings("deprecation")
4342
public class ContainerManagedEntityManagerIntegrationTests extends AbstractEntityManagerFactoryIntegrationTests {
4443

4544
@Autowired

spring-orm/src/test/java/org/springframework/orm/jpa/LocalContainerEntityManagerFactoryBeanTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2015 the original author or authors.
2+
* Copyright 2002-2016 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -306,7 +306,6 @@ public void testRejectsMissingPersistenceUnitInfo() throws Exception {
306306
}
307307

308308

309-
@SuppressWarnings("unused")
310309
private static class DummyContainerPersistenceProvider implements PersistenceProvider {
311310

312311
@Override

0 commit comments

Comments
 (0)