Details
Description
DefaultAttributeType.validate is visible on data rendring profiles because Class.isAssignameFrom is not as quick
as one could think. Adding a class equality comparison before it makes it disappear from profiles:
...
else if (type != attribute.getClass() && !type.isAssignableFrom(attribute.getClass())) {
...
Small thing, but one that should not be there and has a quick fix.
rg.geotools.data.FIDFeatureReader.next()
953 3 %
org.geotools.data.FIDFeatureReader.readFeature(AttributeReader)
859 3 %
org.geotools.feature.DefaultFeatureType.create(Object[], String)
703 3 %
org.geotools.feature.DefaultFeature.<init>(DefaultFeatureType, Object[], String)
703 3 %
org.geotools.feature.DefaultFeature.setAttributes(Object[])
703 3 %
org.geotools.feature.DefaultFeature.setAttribute(int, Object)
703 3 %
org.geotools.feature.DefaultAttributeType.validate(Object)
703 3 %
java.lang.Class.isAssignableFrom(Class)
703
Activity
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Andrea Aime [ aaime ] |
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
| Status | Resolved [ 5 ] | Closed [ 6 ] |
| Component/s | main [ 10810 ] | |
| Component/s | core feature [ 12128 ] |