Attempt to build on Java 11 (failed)

This commit is contained in:
Dave Syer
2019-06-07 12:38:13 +01:00
parent 995d1a6884
commit baba3fa658
3 changed files with 23 additions and 8 deletions

13
pom.xml
View File

@@ -102,6 +102,19 @@
</plugins>
</build>
</profile>
<profile>
<id>java11</id>
<activation>
<jdk>[11,)</jdk>
</activation>
<dependencies>
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>1.3.2</version>
</dependency>
</dependencies>
</profile>
<profile>
<id>staging</id>
<distributionManagement>

View File

@@ -86,9 +86,8 @@ public class SubclassClassifier<T, C> implements Classifier<T, C> {
}
/**
* <<<<<<< HEAD Add a classification. The keys is the type and this will be mapped
* along with all subclasses to the corresponding value. The most specific types will
* match first.
* The keys is the type and this will be mapped along with all subclasses to the
* corresponding value. The most specific types will match first.
* @param type the type of the input object
* @param target the target value for all such types
*/
@@ -97,9 +96,8 @@ public class SubclassClassifier<T, C> implements Classifier<T, C> {
}
/**
* ======= >>>>>>> f60e17b... Allow SubclassClassifier to work with interfaces Return
* the value from the type map whose key is the class of the given Throwable, or its
* nearest ancestor if a subclass.
* Return the value from the type map whose key is the class of the given Throwable,
* or its nearest ancestor if a subclass.
* @return C the classified value
* @param classifiable the classifiable thing
*/

View File

@@ -38,12 +38,16 @@ import org.springframework.util.ClassUtils;
* Since version 1.3 it is not necessary to use this class. The same behaviour can be
* achieved by constructing a {@link CompositeRetryPolicy} with
* {@link MaxAttemptsRetryPolicy} and {@link BinaryExceptionClassifierRetryPolicy} inside,
* that is actually performed by: <pre> {@code:
* that is actually performed by:
*
* <pre>
* RetryTemplate.newBuilder()
* .maxAttempts(3)
* .retryOn(Exception.class)
* .build();
* }</pre> or by {@link org.springframework.retry.support.RetryTemplate#defaultInstance()}
* </pre>
*
* or by {@link org.springframework.retry.support.RetryTemplate#defaultInstance()}
*
* @author Dave Syer
* @author Rob Harrop