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

@@ -30,6 +30,7 @@ import org.springframework.dao.DataAccessException;
* @author Juergen Hoeller
* @since 2.0
*/
@FunctionalInterface
public interface PersistenceExceptionTranslator {
/**

View File

@@ -40,6 +40,7 @@ import org.springframework.dao.DataAccessException;
* @see CciTemplate#execute(javax.resource.cci.InteractionSpec, javax.resource.cci.Record)
* @see CciTemplate#execute(javax.resource.cci.InteractionSpec, RecordCreator, RecordExtractor)
*/
@FunctionalInterface
public interface ConnectionCallback<T> {
/**

View File

@@ -41,6 +41,7 @@ import org.springframework.dao.DataAccessException;
* @see CciTemplate#execute(javax.resource.cci.InteractionSpec, javax.resource.cci.Record)
* @see CciTemplate#execute(javax.resource.cci.InteractionSpec, RecordCreator, RecordExtractor)
*/
@FunctionalInterface
public interface InteractionCallback<T> {
/**

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2012 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.
@@ -45,6 +45,7 @@ import org.springframework.dao.DataAccessException;
* @see CciTemplate#createMappedRecord(String)
* @see CciTemplate#setOutputRecordCreator(RecordCreator)
*/
@FunctionalInterface
public interface RecordCreator {
/**

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2012 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.
@@ -42,6 +42,7 @@ import org.springframework.dao.DataAccessException;
* @see CciTemplate#execute(javax.resource.cci.InteractionSpec, RecordCreator, RecordExtractor)
* @see javax.resource.cci.ResultSet
*/
@FunctionalInterface
public interface RecordExtractor<T> {
/**

View File

@@ -630,6 +630,7 @@ public abstract class TransactionAspectSupport implements BeanFactoryAware, Init
* Simple callback interface for proceeding with the target invocation.
* Concrete interceptors/aspects adapt this to their invocation mechanism.
*/
@FunctionalInterface
protected interface InvocationCallback {
Object proceedWithInvocation() throws Throwable;

View File

@@ -32,6 +32,7 @@ import org.springframework.transaction.TransactionStatus;
* @see TransactionTemplate
* @see CallbackPreferringPlatformTransactionManager
*/
@FunctionalInterface
public interface TransactionCallback<T> {
/**