Add @FunctionalInterface on candidate interfaces

Issue: SPR-14432
This commit is contained in:
Stephane Nicoll
2016-07-06 14:32:13 +02:00
parent 912b63ad44
commit e4b0486c5a
110 changed files with 199 additions and 84 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2013 the original author or authors.
* Copyright 2002-2016 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.
@@ -32,6 +32,7 @@ package org.springframework.test.context;
* @since 4.0
* @see ActiveProfiles
*/
@FunctionalInterface
public interface ActiveProfilesResolver {
/**

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2015 the original author or authors.
* Copyright 2002-2016 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.
@@ -29,6 +29,7 @@ import org.springframework.http.client.ClientHttpRequest;
* @author Craig Walls
* @since 3.2
*/
@FunctionalInterface
public interface RequestMatcher {
/**

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2015 the original author or authors.
* Copyright 2002-2016 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.
@@ -29,6 +29,7 @@ import org.springframework.test.web.client.response.MockRestResponseCreators;
* @author Craig Walls
* @since 3.2
*/
@FunctionalInterface
public interface ResponseCreator {
/**

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2015 the original author or authors.
* Copyright 2002-2016 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.
@@ -44,6 +44,7 @@ package org.springframework.test.web.servlet;
* @author Sam Brannen
* @since 3.2
*/
@FunctionalInterface
public interface ResultHandler {
/**

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2015 the original author or authors.
* Copyright 2002-2016 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.
@@ -46,6 +46,7 @@ package org.springframework.test.web.servlet;
* @author Sam Brannen
* @since 3.2
*/
@FunctionalInterface
public interface ResultMatcher {
/**

View File

@@ -26,6 +26,7 @@ import com.gargoylesoftware.htmlunit.WebRequest;
* @see org.springframework.test.web.servlet.htmlunit.HostRequestMatcher
* @see org.springframework.test.web.servlet.htmlunit.UrlRegexRequestMatcher
*/
@FunctionalInterface
public interface WebRequestMatcher {
/**

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2013 the original author or authors.
* Copyright 2002-2016 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.
@@ -32,6 +32,7 @@ import org.springframework.mock.web.MockHttpServletRequest;
* @author Rob Winch
* @since 3.2
*/
@FunctionalInterface
public interface RequestPostProcessor {
/**