Update ContiguousList.java

This commit is contained in:
Sander Hautvast 2023-05-25 22:59:06 +02:00 committed by GitHub
parent d21fd56cca
commit 977c1cb67e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -128,6 +128,7 @@ public class ContiguousList<E> implements List<E> {
private void getProperties(Object element, TypeHandler type) {
// passed type is primitive
//TODO rename primitive to builtin
if (type instanceof PrimitiveTypeHandler<?>) {
((PrimitiveTypeHandler<?>) type).storePropertyValue(element, this);
} else {
@ -136,6 +137,7 @@ public class ContiguousList<E> implements List<E> {
if (property instanceof PrimitiveTypeHandler<?>) {
// recurse once more -> property is stored
getProperties(element, property);
//could easily inline this
} else {
CompoundTypeHandler child = ((CompoundTypeHandler) property);
try {