Add @FunctionalInterface on candidate interfaces
Issue: SPR-14432
This commit is contained in:
@@ -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 {
|
||||
|
||||
/**
|
||||
|
||||
@@ -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 {
|
||||
|
||||
/**
|
||||
|
||||
@@ -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 {
|
||||
|
||||
/**
|
||||
|
||||
@@ -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 {
|
||||
|
||||
/**
|
||||
|
||||
@@ -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 {
|
||||
|
||||
/**
|
||||
|
||||
@@ -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 {
|
||||
|
||||
/**
|
||||
|
||||
@@ -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 {
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user