DATACMNS-1762 - Polishing.

Update JavaDoc, remove unused imports and reduce method visibility.

Original Pull Request: #459
This commit is contained in:
Christoph Strobl
2020-09-24 14:48:46 +02:00
parent 97df0fa899
commit f261220372
10 changed files with 23 additions and 36 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2014-2020 the original author or authors.
* Copyright 2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -41,7 +41,7 @@ public class NullableWrapper {
}
/**
* Returns the type of the contained value. WIll fall back to {@link Object} in case the value is {@literal null}.
* Returns the type of the contained value. Will fall back to {@link Object} in case the value is {@literal null}.
*
* @return will never be {@literal null}.
*/

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2014-2020 the original author or authors.
* Copyright 2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -228,7 +228,6 @@ public abstract class NullableWrapperConverters {
/**
* Creates a new {@link AbstractWrapperTypeConverter} using the given wrapper type.
*
* @param conversionService must not be {@literal null}.
* @param nullValue must not be {@literal null}.
*/
protected AbstractWrapperTypeConverter(Object nullValue) {
@@ -501,11 +500,11 @@ public abstract class NullableWrapperConverters {
this.cardinality = cardinality;
}
public Class<?> getType() {
Class<?> getType() {
return this.type;
}
public Cardinality getCardinality() {
Cardinality getCardinality() {
return cardinality;
}
@@ -560,19 +559,19 @@ public abstract class NullableWrapperConverters {
private final Class<?> type;
private final Cardinality cardinality;
public static WrapperType singleValue(Class<?> type) {
static WrapperType singleValue(Class<?> type) {
return new WrapperType(type, Cardinality.SINGLE);
}
public static WrapperType multiValue(Class<?> type) {
static WrapperType multiValue(Class<?> type) {
return new WrapperType(type, Cardinality.MULTI);
}
public static WrapperType noValue(Class<?> type) {
static WrapperType noValue(Class<?> type) {
return new WrapperType(type, Cardinality.NONE);
}
public boolean isSingleValue() {
boolean isSingleValue() {
return cardinality.equals(Cardinality.SINGLE);
}
}