framework/src/main/java/org/apache/felix/framework/DTOFactory.java [496:525]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private static Object convertAttrToDTO(Object value)
    {
        if (value instanceof Version)
        {
            return value.toString();
        }
        else if (isPermissibleAttribute(value.getClass())
                || (value.getClass().isArray()
                && isPermissibleAttribute(value.getClass().getComponentType())))
        {
            return value;
        }
        else if (value instanceof List)
        {
            List result = new ArrayList();
            for (Object v : ((List) value))
            {
                Object vv = convertAttrToDTO(v);
                if (vv != null)
                {
                    result.add(vv);
                }
            }
            return result.isEmpty() ? null : result;
        }
        else
        {
            return null;
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



connect/src/main/java/org/apache/felix/connect/felix/framework/DTOFactory.java [485:514]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private static Object convertAttrToDTO(Object value)
    {
        if (value instanceof Version)
        {
            return value.toString();
        }
        else if (isPermissibleAttribute(value.getClass())
                || (value.getClass().isArray()
                && isPermissibleAttribute(value.getClass().getComponentType())))
        {
            return value;
        }
        else if (value instanceof List)
        {
            List result = new ArrayList();
            for (Object v : ((List) value))
            {
                Object vv = convertAttrToDTO(v);
                if (vv != null)
                {
                    result.add(vv);
                }
            }
            return result.isEmpty() ? null : result;
        }
        else
        {
            return null;
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



