@@ -53,7 +53,7 @@ private IndexType geo2() {
5353 }
5454
5555 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 ;
5757 }
5858
5959 public static class PersistentIndexedSingleFieldTestEntity {
@@ -310,6 +310,7 @@ public void multipleSingleFieldFulltextIndexed() {
310310 hasItems (IndexType .primary , IndexType .fulltext ));
311311 }
312312
313+ @ SuppressWarnings ("deprecation" )
313314 @ FulltextIndex (field = "a" )
314315 public static class FulltextIndexWithSingleFieldTestEntity {
315316 }
@@ -327,6 +328,7 @@ public void singleFieldFulltextIndex() {
327328 hasItems ("a" ));
328329 }
329330
331+ @ SuppressWarnings ("deprecation" )
330332 @ FulltextIndex (field = "a" )
331333 @ FulltextIndex (field = "b" )
332334 public static class FulltextIndexWithMultipleSingleFieldTestEntity {
@@ -342,6 +344,7 @@ public void multipleSingleFieldFulltextIndex() {
342344 hasItems (IndexType .primary , IndexType .fulltext ));
343345 }
344346
347+ @ SuppressWarnings ("deprecation" )
345348 @ FulltextIndexes ({@ FulltextIndex (field = "a" ), @ FulltextIndex (field = "b" )})
346349 public static class FulltextIndexWithMultipleIndexesTestEntity {
347350 }
@@ -375,6 +378,7 @@ public void differentIndexedAnnotationsSameField() {
375378 hasItems (IndexType .primary , IndexType .persistent , geo1 (), IndexType .fulltext , IndexType .ttl ));
376379 }
377380
381+ @ SuppressWarnings ("deprecation" )
378382 @ PersistentIndex (fields = {"a" })
379383 @ GeoIndex (fields = {"a" })
380384 @ FulltextIndex (field = "a" )
@@ -392,6 +396,7 @@ public void differentIndexAnnotations() {
392396 hasItems (IndexType .primary , IndexType .persistent , geo1 (), IndexType .fulltext ));
393397 }
394398
399+ @ SuppressWarnings ("deprecation" )
395400 @ PersistentIndex (fields = {"a" })
396401 @ PersistentIndex (fields = {"b" })
397402 @ GeoIndex (fields = {"a" })
0 commit comments