DATACMNS-1177 - Polishing.

Formatting. JavaDoc.

Original pull request: #250.
This commit is contained in:
Oliver Gierke
2017-09-27 11:14:32 +02:00
parent 79709629ef
commit aa7dde94d4

View File

@@ -292,6 +292,7 @@ public abstract class QueryExecutionConverters {
* Recursively unwraps well known wrapper types from the given {@link TypeInformation}.
*
* @param type must not be {@literal null}.
* @return will never be {@literal null}.
*/
public static TypeInformation<?> unwrapWrapperTypes(TypeInformation<?> type) {
@@ -299,7 +300,9 @@ public abstract class QueryExecutionConverters {
Class<?> rawType = type.getType();
boolean needToUnwrap = Iterable.class.isAssignableFrom(rawType) || rawType.isArray() || supports(rawType)
boolean needToUnwrap = Iterable.class.isAssignableFrom(rawType) //
|| rawType.isArray() //
|| supports(rawType) //
|| Stream.class.isAssignableFrom(rawType);
return needToUnwrap ? unwrapWrapperTypes(type.getRequiredComponentType()) : type;