@@ -53,7 +53,7 @@ private IndexType geo2() {
53
53
}
54
54
55
55
private IndexType geoType (final IndexType type ) {
56
- return Integer .valueOf (template .getVersion ().getVersion ().split ("\\ ." )[1 ]) >= 4 ? IndexType .geo : type ;
56
+ return Integer .parseInt (template .getVersion ().getVersion ().split ("\\ ." )[1 ]) >= 4 ? IndexType .geo : type ;
57
57
}
58
58
59
59
public static class PersistentIndexedSingleFieldTestEntity {
@@ -310,6 +310,7 @@ public void multipleSingleFieldFulltextIndexed() {
310
310
hasItems (IndexType .primary , IndexType .fulltext ));
311
311
}
312
312
313
+ @ SuppressWarnings ("deprecation" )
313
314
@ FulltextIndex (field = "a" )
314
315
public static class FulltextIndexWithSingleFieldTestEntity {
315
316
}
@@ -327,6 +328,7 @@ public void singleFieldFulltextIndex() {
327
328
hasItems ("a" ));
328
329
}
329
330
331
+ @ SuppressWarnings ("deprecation" )
330
332
@ FulltextIndex (field = "a" )
331
333
@ FulltextIndex (field = "b" )
332
334
public static class FulltextIndexWithMultipleSingleFieldTestEntity {
@@ -342,6 +344,7 @@ public void multipleSingleFieldFulltextIndex() {
342
344
hasItems (IndexType .primary , IndexType .fulltext ));
343
345
}
344
346
347
+ @ SuppressWarnings ("deprecation" )
345
348
@ FulltextIndexes ({@ FulltextIndex (field = "a" ), @ FulltextIndex (field = "b" )})
346
349
public static class FulltextIndexWithMultipleIndexesTestEntity {
347
350
}
@@ -375,6 +378,7 @@ public void differentIndexedAnnotationsSameField() {
375
378
hasItems (IndexType .primary , IndexType .persistent , geo1 (), IndexType .fulltext , IndexType .ttl ));
376
379
}
377
380
381
+ @ SuppressWarnings ("deprecation" )
378
382
@ PersistentIndex (fields = {"a" })
379
383
@ GeoIndex (fields = {"a" })
380
384
@ FulltextIndex (field = "a" )
@@ -392,6 +396,7 @@ public void differentIndexAnnotations() {
392
396
hasItems (IndexType .primary , IndexType .persistent , geo1 (), IndexType .fulltext ));
393
397
}
394
398
399
+ @ SuppressWarnings ("deprecation" )
395
400
@ PersistentIndex (fields = {"a" })
396
401
@ PersistentIndex (fields = {"b" })
397
402
@ GeoIndex (fields = {"a" })
0 commit comments