public List<Property> findSerializableProperties(Class<?> cls) throws SecurityException { ClassDescriptor descriptor = getDescriptor(cls); if (descriptor == null) return Collections.emptyList(); return descriptor.getInheritedSerializableProperties(); }
public List<Property> findSerializableProperties(Class<?> cls) throws SecurityException { ClassDescriptor descriptor = getDescriptor(cls); if (descriptor == null) return Collections.emptyList(); return descriptor.getInheritedSerializableProperties(); }
public List<Property> findSerializableProperties(Class<?> cls) throws SecurityException { ClassDescriptor descriptor = getDescriptor(cls); if (descriptor == null) return Collections.emptyList(); return descriptor.getInheritedSerializableProperties(); }
public List<Property> getInheritedSerializableProperties() { List<Property> inheritedSerializableProperties = inheritedProperties.get(); if (inheritedSerializableProperties == null) { if (parent == null) inheritedSerializableProperties = properties; else { List<Property> parentProperties = parent.getInheritedSerializableProperties(); if (!parentProperties.isEmpty()) { if (!properties.isEmpty()) { inheritedSerializableProperties = new ArrayList<Property>(parentProperties.size() + properties.size()); inheritedSerializableProperties.addAll(parentProperties); inheritedSerializableProperties.addAll(properties); inheritedSerializableProperties = Collections.unmodifiableList(inheritedSerializableProperties); } else inheritedSerializableProperties = parentProperties; } else inheritedSerializableProperties = properties; } inheritedProperties = new SoftReference<List<Property>>(inheritedSerializableProperties); } return inheritedSerializableProperties; }
public List<Property> getInheritedSerializableProperties() { List<Property> inheritedSerializableProperties = inheritedProperties.get(); if (inheritedSerializableProperties == null) { if (parent == null) inheritedSerializableProperties = properties; else { List<Property> parentProperties = parent.getInheritedSerializableProperties(); if (!parentProperties.isEmpty()) { if (!properties.isEmpty()) { inheritedSerializableProperties = new ArrayList<Property>(parentProperties.size() + properties.size()); inheritedSerializableProperties.addAll(parentProperties); inheritedSerializableProperties.addAll(properties); inheritedSerializableProperties = Collections.unmodifiableList(inheritedSerializableProperties); } else inheritedSerializableProperties = parentProperties; } else inheritedSerializableProperties = properties; } inheritedProperties = new SoftReference<List<Property>>(inheritedSerializableProperties); } return inheritedSerializableProperties; }
public List<Property> getInheritedSerializableProperties() { List<Property> inheritedSerializableProperties = inheritedProperties.get(); if (inheritedSerializableProperties == null) { if (parent == null) inheritedSerializableProperties = properties; else { List<Property> parentProperties = parent.getInheritedSerializableProperties(); if (!parentProperties.isEmpty()) { if (!properties.isEmpty()) { inheritedSerializableProperties = new ArrayList<Property>(parentProperties.size() + properties.size()); inheritedSerializableProperties.addAll(parentProperties); inheritedSerializableProperties.addAll(properties); inheritedSerializableProperties = Collections.unmodifiableList(inheritedSerializableProperties); } else inheritedSerializableProperties = parentProperties; } else inheritedSerializableProperties = properties; } inheritedProperties = new SoftReference<List<Property>>(inheritedSerializableProperties); } return inheritedSerializableProperties; }