/** * This implementation removes the item from the cache * if it is present. Furthermore if the <code>propertyId</code> * id uuid based, and no item is found by the <code>propertyId</code> * a second lookup is done by the path. */ public Entry<PropertyInfo> getPropertyInfo(PropertyId propertyId) { Object entry = entries.remove(propertyId); if (entry == null) { entry = entries.remove(propertyId.getPath()); } else { // there might be a corresponding path-indexed entry, clear it as well entries.remove(property(entry).info.getPath()); } return property(entry); }
/** * This implementation removes the item from the cache * if it is present. Furthermore if the <code>propertyId</code> * id uuid based, and no item is found by the <code>propertyId</code> * a second lookup is done by the path. */ public Entry<PropertyInfo> getPropertyInfo(PropertyId propertyId) { Object entry = entries.remove(propertyId); if (entry == null) { entry = entries.remove(propertyId.getPath()); } else { // there might be a corresponding path-indexed entry, clear it as well entries.remove(property(entry).info.getPath()); } return property(entry); }