From 3f0a6e814c36dd24c46b6a876bc04c3479b98a25 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Sat, 4 Jul 2015 15:46:25 +0200 Subject: [PATCH] Suppress warnings in spring-expression tests --- .../org/springframework/expression/spel/IndexingTests.java | 3 ++- .../expression/spel/SpelDocumentationTests.java | 3 ++- .../org/springframework/expression/spel/SpelReproTests.java | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/spring-expression/src/test/java/org/springframework/expression/spel/IndexingTests.java b/spring-expression/src/test/java/org/springframework/expression/spel/IndexingTests.java index 59930faabe1..d88760df680 100644 --- a/spring-expression/src/test/java/org/springframework/expression/spel/IndexingTests.java +++ b/spring-expression/src/test/java/org/springframework/expression/spel/IndexingTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2014 the original author or authors. + * Copyright 2002-2015 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. @@ -39,6 +39,7 @@ import org.springframework.expression.spel.support.StandardEvaluationContext; import static org.junit.Assert.*; +@SuppressWarnings("rawtypes") public class IndexingTests { @Test diff --git a/spring-expression/src/test/java/org/springframework/expression/spel/SpelDocumentationTests.java b/spring-expression/src/test/java/org/springframework/expression/spel/SpelDocumentationTests.java index 196a808c1f6..0d9dd7cff1c 100644 --- a/spring-expression/src/test/java/org/springframework/expression/spel/SpelDocumentationTests.java +++ b/spring-expression/src/test/java/org/springframework/expression/spel/SpelDocumentationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2014 the original author or authors. + * Copyright 2002-2015 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. @@ -45,6 +45,7 @@ import static org.junit.Assert.*; * * @author Andy Clement */ +@SuppressWarnings("rawtypes") public class SpelDocumentationTests extends AbstractExpressionTests { static Inventor tesla ; diff --git a/spring-expression/src/test/java/org/springframework/expression/spel/SpelReproTests.java b/spring-expression/src/test/java/org/springframework/expression/spel/SpelReproTests.java index 16978892c9a..b1743e50043 100644 --- a/spring-expression/src/test/java/org/springframework/expression/spel/SpelReproTests.java +++ b/spring-expression/src/test/java/org/springframework/expression/spel/SpelReproTests.java @@ -1886,6 +1886,7 @@ public class SpelReproTests extends AbstractExpressionTests { } @Test + @SuppressWarnings("rawtypes") public void SPR12522() { SpelExpressionParser parser = new SpelExpressionParser(); Expression expression = parser.parseExpression("T(java.util.Arrays).asList('')");