Clean up compiler warnings in the tests of spring-webmvc-portlet. This
commit adds type parameters to all the types (mostly `List` and `Map`).
After this commit the only warnings in spring-web left are the
subclasses of `MyCommandProvidingFormController`.
pull/520/merge
Philippe Marschall11 years agocommitted byStephane Nicoll
@ -36,7 +36,7 @@ public class BeanThatListens implements ApplicationListener {
@@ -36,7 +36,7 @@ public class BeanThatListens implements ApplicationListener {
@ -271,8 +271,8 @@ public class MockPortletRequest implements PortletRequest {
@@ -271,8 +271,8 @@ public class MockPortletRequest implements PortletRequest {
@Override
publicStringgetProperty(Stringkey){
Assert.notNull(key,"Property key must not be null");
@ -118,14 +119,14 @@ public class ComplexPortletApplicationContext extends StaticPortletApplicationCo
@@ -118,14 +119,14 @@ public class ComplexPortletApplicationContext extends StaticPortletApplicationCo
@ -133,7 +134,7 @@ public class ComplexPortletApplicationContext extends StaticPortletApplicationCo
@@ -133,7 +134,7 @@ public class ComplexPortletApplicationContext extends StaticPortletApplicationCo
@ -148,10 +149,10 @@ public class ComplexPortletApplicationContext extends StaticPortletApplicationCo
@@ -148,10 +149,10 @@ public class ComplexPortletApplicationContext extends StaticPortletApplicationCo
@ -171,7 +172,7 @@ public class ComplexPortletApplicationContext extends StaticPortletApplicationCo
@@ -171,7 +172,7 @@ public class ComplexPortletApplicationContext extends StaticPortletApplicationCo
@ -533,7 +534,7 @@ public class ComplexPortletApplicationContext extends StaticPortletApplicationCo
@@ -533,7 +534,7 @@ public class ComplexPortletApplicationContext extends StaticPortletApplicationCo
@ -166,7 +166,7 @@ public class PortletRequestDataBinderTests extends TestCase {
@@ -166,7 +166,7 @@ public class PortletRequestDataBinderTests extends TestCase {
publicvoidtestBindingSet(){
TestBeanbean=newTestBean();
Setset=newLinkedHashSet<>(2);
Set<TestBean>set=newLinkedHashSet<TestBean>(2);
set.add(newTestBean("test1"));
set.add(newTestBean("test2"));
bean.setSomeSet(set);
@ -181,7 +181,7 @@ public class PortletRequestDataBinderTests extends TestCase {
@@ -181,7 +181,7 @@ public class PortletRequestDataBinderTests extends TestCase {
@ -114,7 +114,7 @@ public class PortletAnnotationControllerTests extends TestCase {
@@ -114,7 +114,7 @@ public class PortletAnnotationControllerTests extends TestCase {
@ -796,7 +796,7 @@ public class PortletAnnotationControllerTests extends TestCase {
@@ -796,7 +796,7 @@ public class PortletAnnotationControllerTests extends TestCase {
@ -811,9 +811,9 @@ public class PortletAnnotationControllerTests extends TestCase {
@@ -811,9 +811,9 @@ public class PortletAnnotationControllerTests extends TestCase {
@ -830,7 +830,7 @@ public class PortletAnnotationControllerTests extends TestCase {
@@ -830,7 +830,7 @@ public class PortletAnnotationControllerTests extends TestCase {