Update ContiguousList.java
This commit is contained in:
parent
d21fd56cca
commit
977c1cb67e
1 changed files with 2 additions and 0 deletions
|
|
@ -128,6 +128,7 @@ public class ContiguousList<E> implements List<E> {
|
||||||
|
|
||||||
private void getProperties(Object element, TypeHandler type) {
|
private void getProperties(Object element, TypeHandler type) {
|
||||||
// passed type is primitive
|
// passed type is primitive
|
||||||
|
//TODO rename primitive to builtin
|
||||||
if (type instanceof PrimitiveTypeHandler<?>) {
|
if (type instanceof PrimitiveTypeHandler<?>) {
|
||||||
((PrimitiveTypeHandler<?>) type).storePropertyValue(element, this);
|
((PrimitiveTypeHandler<?>) type).storePropertyValue(element, this);
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -136,6 +137,7 @@ public class ContiguousList<E> implements List<E> {
|
||||||
if (property instanceof PrimitiveTypeHandler<?>) {
|
if (property instanceof PrimitiveTypeHandler<?>) {
|
||||||
// recurse once more -> property is stored
|
// recurse once more -> property is stored
|
||||||
getProperties(element, property);
|
getProperties(element, property);
|
||||||
|
//could easily inline this
|
||||||
} else {
|
} else {
|
||||||
CompoundTypeHandler child = ((CompoundTypeHandler) property);
|
CompoundTypeHandler child = ((CompoundTypeHandler) property);
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue