Skip to content

Commit 8389e3f

Browse files
committed
Suppress warnings in Gradle build
1 parent a530a1c commit 8389e3f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2013 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.
@@ -258,6 +258,7 @@ public void resolveRequiredPlaceholders_withNullInput() {
258258
}
259259

260260
@Test
261+
@SuppressWarnings("deprecation")
261262
public void getPropertyAsClass() throws ClassNotFoundException, LinkageError {
262263
MutablePropertySources propertySources = new MutablePropertySources();
263264
propertySources.addFirst(new MockPropertySource().withProperty("some.class", SpecificType.class.getName()));
@@ -266,6 +267,7 @@ public void getPropertyAsClass() throws ClassNotFoundException, LinkageError {
266267
}
267268

268269
@Test
270+
@SuppressWarnings("deprecation")
269271
public void getPropertyAsClass_withInterfaceAsTarget() throws ClassNotFoundException, LinkageError {
270272
MutablePropertySources propertySources = new MutablePropertySources();
271273
propertySources.addFirst(new MockPropertySource().withProperty("some.class", SomeType.class.getName()));
@@ -274,6 +276,7 @@ public void getPropertyAsClass_withInterfaceAsTarget() throws ClassNotFoundExcep
274276
}
275277

276278
@Test(expected = ConversionException.class)
279+
@SuppressWarnings("deprecation")
277280
public void getPropertyAsClass_withMismatchedTypeForValue() {
278281
MutablePropertySources propertySources = new MutablePropertySources();
279282
propertySources.addFirst(new MockPropertySource().withProperty("some.class", "java.lang.String"));
@@ -282,6 +285,7 @@ public void getPropertyAsClass_withMismatchedTypeForValue() {
282285
}
283286

284287
@Test(expected = ConversionException.class)
288+
@SuppressWarnings("deprecation")
285289
public void getPropertyAsClass_withNonExistentClassForValue() {
286290
MutablePropertySources propertySources = new MutablePropertySources();
287291
propertySources.addFirst(new MockPropertySource().withProperty("some.class", "some.bogus.Class"));
@@ -290,6 +294,7 @@ public void getPropertyAsClass_withNonExistentClassForValue() {
290294
}
291295

292296
@Test
297+
@SuppressWarnings("deprecation")
293298
public void getPropertyAsClass_withObjectForValue() {
294299
MutablePropertySources propertySources = new MutablePropertySources();
295300
propertySources.addFirst(new MockPropertySource().withProperty("some.class", new SpecificType()));
@@ -298,6 +303,7 @@ public void getPropertyAsClass_withObjectForValue() {
298303
}
299304

300305
@Test(expected = ConversionException.class)
306+
@SuppressWarnings("deprecation")
301307
public void getPropertyAsClass_withMismatchedObjectForValue() {
302308
MutablePropertySources propertySources = new MutablePropertySources();
303309
propertySources.addFirst(new MockPropertySource().withProperty("some.class", new Integer(42)));
@@ -306,6 +312,7 @@ public void getPropertyAsClass_withMismatchedObjectForValue() {
306312
}
307313

308314
@Test
315+
@SuppressWarnings("deprecation")
309316
public void getPropertyAsClass_withRealClassForValue() {
310317
MutablePropertySources propertySources = new MutablePropertySources();
311318
propertySources.addFirst(new MockPropertySource().withProperty("some.class", SpecificType.class));
@@ -314,6 +321,7 @@ public void getPropertyAsClass_withRealClassForValue() {
314321
}
315322

316323
@Test(expected = ConversionException.class)
324+
@SuppressWarnings("deprecation")
317325
public void getPropertyAsClass_withMismatchedRealClassForValue() {
318326
MutablePropertySources propertySources = new MutablePropertySources();
319327
propertySources.addFirst(new MockPropertySource().withProperty("some.class", Integer.class));

0 commit comments

Comments
 (0)