@@ -295,57 +295,33 @@ static class VavrCollections implements CustomCollectionRegistrar {
295295
296296 private static final TypeDescriptor OBJECT_DESCRIPTOR = TypeDescriptor .valueOf (Object .class );
297297
298- /*
299- * (non-Javadoc)
300- * @see org.springframework.data.util.CustomCollectionRegistrar#isAvailable()
301- */
302298 @ Override
303299 public boolean isAvailable () {
304300 return ClassUtils .isPresent ("io.vavr.control.Option" , VavrCollections .class .getClassLoader ());
305301 }
306302
307- /*
308- * (non-Javadoc)
309- * @see org.springframework.data.util.CustomCollectionRegistrar#getMapTypes()
310- */
311303 @ Override
312304 public Collection <Class <?>> getMapTypes () {
313305 return Set .of (io .vavr .collection .Map .class );
314306 }
315307
316- /*
317- * (non-Javadoc)
318- * @see org.springframework.data.util.CustomCollectionRegistrar#getCollectionTypes()
319- */
320308 @ Override
321309 public Collection <Class <?>> getCollectionTypes () {
322310 return List .of (Seq .class , io .vavr .collection .Set .class );
323311 }
324312
325- /*
326- * (non-Javadoc)
327- * @see org.springframework.data.util.CustomCollectionRegistrar#getAllowedPaginationReturnTypes()
328- */
329313 @ Override
330314 public Collection <Class <?>> getAllowedPaginationReturnTypes () {
331315 return Set .of (Seq .class );
332316 }
333317
334- /*
335- * (non-Javadoc)
336- * @see org.springframework.data.util.CustomCollectionRegistrar#registerConvertersIn(org.springframework.core.convert.converter.ConverterRegistry)
337- */
338318 @ Override
339319 public void registerConvertersIn (ConverterRegistry registry ) {
340320
341321 registry .addConverter (JavaToVavrCollectionConverter .INSTANCE );
342322 registry .addConverter (VavrToJavaCollectionConverter .INSTANCE );
343323 }
344324
345- /*
346- * (non-Javadoc)
347- * @see org.springframework.data.util.CustomCollectionRegistrar#toJavaNativeCollection()
348- */
349325 @ Override
350326 @ SuppressWarnings ("null" )
351327 public Function <Object , Object > toJavaNativeCollection () {
@@ -361,10 +337,6 @@ private enum VavrToJavaCollectionConverter implements ConditionalGenericConverte
361337
362338 private static final TypeDescriptor TRAVERSAL_TYPE = TypeDescriptor .valueOf (Traversable .class );
363339
364- /*
365- * (non-Javadoc)
366- * @see org.springframework.core.convert.converter.GenericConverter#getConvertibleTypes()
367- */
368340 @ NonNull
369341 @ Override
370342 public Set <ConvertiblePair > getConvertibleTypes () {
@@ -374,21 +346,13 @@ public Set<ConvertiblePair> getConvertibleTypes() {
374346 .collect (Collectors .toSet ());
375347 }
376348
377- /*
378- * (non-Javadoc)
379- * @see org.springframework.core.convert.converter.ConditionalConverter#matches(org.springframework.core.convert.TypeDescriptor, org.springframework.core.convert.TypeDescriptor)
380- */
381349 @ Override
382350 public boolean matches (TypeDescriptor sourceType , TypeDescriptor targetType ) {
383351
384352 return sourceType .isAssignableTo (TRAVERSAL_TYPE )
385353 && COLLECTIONS_AND_MAP .contains (targetType .getType ());
386354 }
387355
388- /*
389- * (non-Javadoc)
390- * @see org.springframework.core.convert.converter.GenericConverter#convert(java.lang.Object, org.springframework.core.convert.TypeDescriptor, org.springframework.core.convert.TypeDescriptor)
391- */
392356 @ Nullable
393357 @ Override
394358 public Object convert (@ Nullable Object source , TypeDescriptor sourceType , TypeDescriptor targetType ) {
@@ -428,20 +392,12 @@ private enum JavaToVavrCollectionConverter implements ConditionalGenericConverte
428392 CONVERTIBLE_PAIRS = Collections .unmodifiableSet (pairs );
429393 }
430394
431- /*
432- * (non-Javadoc)
433- * @see org.springframework.core.convert.converter.GenericConverter#getConvertibleTypes()
434- */
435395 @ NonNull
436396 @ Override
437397 public java .util .Set <ConvertiblePair > getConvertibleTypes () {
438398 return CONVERTIBLE_PAIRS ;
439399 }
440400
441- /*
442- * (non-Javadoc)
443- * @see org.springframework.core.convert.converter.ConditionalConverter#matches(org.springframework.core.convert.TypeDescriptor, org.springframework.core.convert.TypeDescriptor)
444- */
445401 @ Override
446402 public boolean matches (TypeDescriptor sourceType , TypeDescriptor targetType ) {
447403
@@ -459,10 +415,6 @@ public boolean matches(TypeDescriptor sourceType, TypeDescriptor targetType) {
459415 return true ;
460416 }
461417
462- /*
463- * (non-Javadoc)
464- * @see org.springframework.core.convert.converter.GenericConverter#convert(java.lang.Object, org.springframework.core.convert.TypeDescriptor, org.springframework.core.convert.TypeDescriptor)
465- */
466418 @ Nullable
467419 @ Override
468420 public Object convert (@ Nullable Object source , TypeDescriptor sourceDescriptor , TypeDescriptor targetDescriptor ) {
@@ -503,48 +455,28 @@ public Object convert(@Nullable Object source, TypeDescriptor sourceDescriptor,
503455
504456 static class EclipseCollections implements CustomCollectionRegistrar {
505457
506- /*
507- * (non-Javadoc)
508- * @see org.springframework.data.util.CustomCollectionRegistrar#isAvailable()
509- */
510458 @ Override
511459 public boolean isAvailable () {
512460 return ClassUtils .isPresent ("org.eclipse.collections.api.list.ImmutableList" ,
513461 EclipseCollections .class .getClassLoader ());
514462 }
515463
516- /*
517- * (non-Javadoc)
518- * @see org.springframework.data.util.CustomCollectionRegistrar#getCollectionTypes()
519- */
520464 @ Override
521465 public Collection <Class <?>> getCollectionTypes () {
522466 return List .of (ImmutableList .class , ImmutableSet .class , ImmutableBag .class , MutableList .class , MutableSet .class ,
523467 MutableBag .class );
524468 }
525469
526- /*
527- * (non-Javadoc)
528- * @see org.springframework.data.util.CustomCollectionRegistrar#getMapTypes()
529- */
530470 @ Override
531471 public Collection <Class <?>> getMapTypes () {
532472 return List .of (ImmutableMap .class , MutableMap .class );
533473 }
534474
535- /*
536- * (non-Javadoc)
537- * @see org.springframework.data.util.CustomCollectionRegistrar#getAllowedPaginationReturnTypes()
538- */
539475 @ Override
540476 public Collection <Class <?>> getAllowedPaginationReturnTypes () {
541477 return List .of (ImmutableList .class , MutableList .class );
542478 }
543479
544- /*
545- * (non-Javadoc)
546- * @see org.springframework.data.util.CustomCollectionRegistrar#toJavaNativeCollection()
547- */
548480 @ Override
549481 public Function <Object , Object > toJavaNativeCollection () {
550482
@@ -553,10 +485,6 @@ public Function<Object, Object> toJavaNativeCollection() {
553485 : source ;
554486 }
555487
556- /*
557- * (non-Javadoc)
558- * @see org.springframework.data.util.CustomCollectionRegistrar#registerConvertersIn(org.springframework.core.convert.converter.ConverterRegistry)
559- */
560488 @ Override
561489 public void registerConvertersIn (ConverterRegistry registry ) {
562490
@@ -570,21 +498,13 @@ enum EclipseToJavaConverter implements Converter<Object, Object>, ConditionalCon
570498
571499 private static final TypeDescriptor RICH_ITERABLE_DESCRIPTOR = TypeDescriptor .valueOf (RichIterable .class );
572500
573- /*
574- * (non-Javadoc)
575- * @see org.springframework.core.convert.converter.ConditionalConverter#matches(org.springframework.core.convert.TypeDescriptor, org.springframework.core.convert.TypeDescriptor)
576- */
577501 @ Override
578502 public boolean matches (TypeDescriptor sourceType , TypeDescriptor targetType ) {
579503
580504 return sourceType .isAssignableTo (RICH_ITERABLE_DESCRIPTOR )
581505 && COLLECTIONS_AND_MAP .contains (targetType .getType ());
582506 }
583507
584- /*
585- * (non-Javadoc)
586- * @see org.springframework.core.convert.converter.Converter#convert(java.lang.Object)
587- */
588508 @ Nullable
589509 @ Override
590510 public Object convert (@ Nullable Object source ) {
@@ -635,20 +555,12 @@ enum JavaToEclipseConverter implements ConditionalGenericConverter {
635555 CONVERTIBLE_PAIRS = Collections .unmodifiableSet (pairs );
636556 }
637557
638- /*
639- * (non-Javadoc)
640- * @see org.springframework.core.convert.converter.GenericConverter#getConvertibleTypes()
641- */
642558 @ NonNull
643559 @ Override
644560 public Set <ConvertiblePair > getConvertibleTypes () {
645561 return CONVERTIBLE_PAIRS ;
646562 }
647563
648- /*
649- * (non-Javadoc)
650- * @see org.springframework.core.convert.converter.ConditionalConverter#matches(org.springframework.core.convert.TypeDescriptor, org.springframework.core.convert.TypeDescriptor)
651- */
652564 @ Override
653565 public boolean matches (TypeDescriptor sourceType , TypeDescriptor targetType ) {
654566
@@ -667,10 +579,6 @@ public boolean matches(TypeDescriptor sourceType, TypeDescriptor targetType) {
667579 return true ;
668580 }
669581
670- /*
671- * (non-Javadoc)
672- * @see org.springframework.core.convert.converter.GenericConverter#convert(java.lang.Object, org.springframework.core.convert.TypeDescriptor, org.springframework.core.convert.TypeDescriptor)
673- */
674582 @ Nullable
675583 @ Override
676584 public Object convert (@ Nullable Object source , TypeDescriptor sourceDescriptor , TypeDescriptor targetDescriptor ) {
0 commit comments