Skip to content

Commit db34b52

Browse files
committed
Remove non Javadoc comments.
Closes #2699
1 parent c5e95c2 commit db34b52

File tree

7 files changed

+0
-121
lines changed

7 files changed

+0
-121
lines changed

src/main/java/org/springframework/data/convert/DtoInstantiatingConverter.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,6 @@ public DtoInstantiatingConverter(Class<?> dtoType,
6363
this.instantiator = instantiators.getInstantiatorFor(context.getRequiredPersistentEntity(dtoType));
6464
}
6565

66-
/*
67-
* (non-Javadoc)
68-
* @see org.springframework.core.convert.converter.Converter#convert(java.lang.Object)
69-
*/
7066
@NonNull
7167
@Override
7268
public Object convert(Object source) {

src/main/java/org/springframework/data/mapping/Parameter.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,6 @@ public boolean hasSpelExpression() {
143143
return this.hasSpelExpression.get();
144144
}
145145

146-
/*
147-
* (non-Javadoc)
148-
* @see java.lang.Object#equals(java.lang.Object)
149-
*/
150146
@Override
151147
public boolean equals(Object o) {
152148

@@ -173,10 +169,6 @@ public boolean equals(Object o) {
173169
return ObjectUtils.nullSafeEquals(entity, parameter.entity);
174170
}
175171

176-
/*
177-
* (non-Javadoc)
178-
* @see java.lang.Object#hashCode()
179-
*/
180172
@Override
181173
public int hashCode() {
182174
int result = ObjectUtils.nullSafeHashCode(name);

src/main/java/org/springframework/data/mapping/callback/EntityCallbackDiscoverer.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -272,11 +272,6 @@ protected boolean supportsEvent(EntityCallback<?> callback, ResolvableType entit
272272
&& callbackType.isAssignableFrom(ResolvableType.forInstance(callback));
273273
}
274274

275-
/**
276-
* (non-Javadoc)
277-
*
278-
* @see org.springframework.beans.factory.BeanClassLoaderAware
279-
*/
280275
public void setBeanClassLoader(ClassLoader classLoader) {
281276
this.beanClassLoader = classLoader;
282277
}

src/main/java/org/springframework/data/mapping/model/InstantiationAwarePropertyAccessor.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,6 @@ public void setProperty(PersistentProperty<?> property, @Nullable Object value)
106106

107107
this.bean = (T) instantiator.createInstance(owner, new ParameterValueProvider() {
108108

109-
/*
110-
* (non-Javadoc)
111-
* @see org.springframework.data.mapping.model.ParameterValueProvider#getParameterValue(org.springframework.data.mapping.PreferredConstructor.Parameter)
112-
*/
113109
@Override
114110
@Nullable
115111
@SuppressWarnings("null")

src/main/java/org/springframework/data/util/CustomCollections.java

Lines changed: 0 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -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) {

src/main/java/org/springframework/data/web/ReactiveSortHandlerMethodArgumentResolver.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ public boolean supportsParameter(MethodParameter parameter) {
4141
return Sort.class.equals(parameter.getParameterType());
4242
}
4343

44-
/*
45-
*(non-Javadoc)
46-
* @see org.springframework.web.reactive.result.method.SyncHandlerMethodArgumentResolver#resolveArgumentValue(org.springframework.core.MethodParameter, org.springframework.web.reactive.BindingContext, org.springframework.web.server.ServerWebExchange)
47-
*/
4844
@NonNull
4945
@Override
5046
public Sort resolveArgumentValue(MethodParameter parameter, BindingContext bindingContext,

src/test/java/org/springframework/data/mapping/context/AbstractMappingContextUnitTests.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -438,10 +438,6 @@ protected <S> BasicPersistentEntity<Object, SamplePersistentProperty> createPers
438438

439439
return new BasicPersistentEntity<Object, SamplePersistentProperty>((TypeInformation<Object>) typeInformation) {
440440

441-
/*
442-
* (non-Javadoc)
443-
* @see org.springframework.data.mapping.model.BasicPersistentEntity#verify()
444-
*/
445441
@Override
446442
public void verify() {
447443
if (rejectedTypes.stream().anyMatch(it -> it.isAssignableFrom(getType()))) {

0 commit comments

Comments
 (0)