File tree 2 files changed +2
-15
lines changed
main/java/org/springframework/data/repository/util
test/java/org/springframework/data/repository/util
2 files changed +2
-15
lines changed Original file line number Diff line number Diff line change 59
59
*/
60
60
public abstract class QueryExecutionConverters {
61
61
62
- private static final boolean SPRING_4_2_PRESENT = ClassUtils .isPresent (
63
- "org.springframework.core.annotation.AnnotationConfigurationException" ,
64
- QueryExecutionConverters .class .getClassLoader ());
65
-
66
62
private static final boolean GUAVA_PRESENT = ClassUtils .isPresent ("com.google.common.base.Optional" ,
67
63
QueryExecutionConverters .class .getClassLoader ());
68
64
private static final boolean JDK_8_PRESENT = ClassUtils .isPresent ("java.util.Optional" ,
@@ -90,7 +86,7 @@ public abstract class QueryExecutionConverters {
90
86
UNWRAPPERS .add (Jdk8OptionalUnwrapper .INSTANCE );
91
87
}
92
88
93
- if (JDK_8_PRESENT && SPRING_4_2_PRESENT ) {
89
+ if (JDK_8_PRESENT ) {
94
90
WRAPPER_TYPES .add (NullableWrapperToCompletableFutureConverter .getWrapperType ());
95
91
}
96
92
@@ -480,7 +476,7 @@ public Object convert(Object source) {
480
476
*
481
477
* @author Oliver Gierke
482
478
* @author Mark Paluch
483
- * @author 1.13
479
+ * @since 1.12
484
480
*/
485
481
private static enum ScalOptionUnwrapper implements Converter <Object , Object > {
486
482
Original file line number Diff line number Diff line change 17
17
18
18
import static org .hamcrest .CoreMatchers .*;
19
19
import static org .junit .Assert .*;
20
- import static org .junit .Assume .*;
21
20
22
21
import scala .Option ;
23
22
27
26
28
27
import org .junit .Before ;
29
28
import org .junit .Test ;
30
- import org .springframework .core .SpringVersion ;
31
29
import org .springframework .core .convert .support .DefaultConversionService ;
32
- import org .springframework .data .util .Version ;
33
30
import org .springframework .util .ReflectionUtils ;
34
31
import org .springframework .util .concurrent .ListenableFuture ;
35
32
43
40
*/
44
41
public class QueryExecutionConvertersUnitTests {
45
42
46
- private static final Version SPRING_VERSION = Version .parse (SpringVersion .getVersion ());
47
- private static final Version FOUR_DOT_TWO = new Version (4 , 2 );
48
-
49
43
DefaultConversionService conversionService ;
50
44
51
45
@ Before
@@ -74,9 +68,6 @@ public void registersWrapperTypes() {
74
68
*/
75
69
@ Test
76
70
public void registersCompletableFutureAsWrapperTypeOnSpring42OrBetter () {
77
-
78
- assumeThat (SPRING_VERSION .isGreaterThanOrEqualTo (FOUR_DOT_TWO ), is (true ));
79
-
80
71
assertThat (QueryExecutionConverters .supports (CompletableFuture .class ), is (true ));
81
72
}
82
73
You can’t perform that action at this time.
0 commit comments