You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The two checks in org.ehcache.core.config.ResourcePoolsImpl#validateAndMerge specific to OFFHEAP and DISK should be moved to those resource types -- the restrictions are defined as behavior of the type -- in order to remove the type-specific behavior from validateAndMerge logic.
The two checks at issue are:
if(toBeUpdated.getResourceTypeSet().contains(ResourceType.Core.OFFHEAP)) {
throw new UnsupportedOperationException("Updating OFFHEAP resource is not supported");
}
if(toBeUpdated.getResourceTypeSet().contains(ResourceType.Core.DISK)) {
throw new UnsupportedOperationException("Updating DISK resource is not supported");
}
The text was updated successfully, but these errors were encountered:
The two checks in
org.ehcache.core.config.ResourcePoolsImpl#validateAndMerge
specific toOFFHEAP
andDISK
should be moved to those resource types -- the restrictions are defined as behavior of the type -- in order to remove the type-specific behavior fromvalidateAndMerge
logic.The two checks at issue are:
The text was updated successfully, but these errors were encountered: