Skip to content

Commit f27c7df

Browse files
committed
Avoid Gradle compiler warnings
1 parent 1947de3 commit f27c7df

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

spring-core/src/test/java/org/springframework/core/env/SystemEnvironmentPropertySourceTests.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2011 the original author or authors.
2+
* Copyright 2002-2014 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.
@@ -44,8 +44,6 @@ public void setUp() {
4444

4545
@Test
4646
public void none() {
47-
//envMap.put("a.key", "a_value");
48-
4947
assertThat(ps.containsProperty("a.key"), equalTo(false));
5048
assertThat(ps.getProperty("a.key"), equalTo(null));
5149
}
@@ -102,6 +100,7 @@ public void withUppercase() {
102100
}
103101

104102
@Test
103+
@SuppressWarnings("serial")
105104
public void withSecurityConstraints() throws Exception {
106105
envMap = new HashMap<String, Object>() {
107106
@Override

spring-jdbc/src/test/java/org/springframework/jdbc/core/simple/ParameterizedBeanPropertyRowMapperTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 the original author or authors.
2+
* Copyright 2002-2014 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.
@@ -31,6 +31,7 @@
3131
/**
3232
* @author Thomas Risberg
3333
*/
34+
@SuppressWarnings("deprecation")
3435
public class ParameterizedBeanPropertyRowMapperTests extends AbstractRowMapperTests {
3536

3637
@Rule

0 commit comments

Comments
 (0)