- removeFromTypeAndUriMap(resource);
- }
-
- public synchronized void removeFromTypeAndUriMap(Resource resource) {
- if (null == resource) {
- return;
- }
- String resType = resource.getResourceType();
- if (null == resType || !resType.isEmpty()) {
- return;
- }
- String uri = resource.getResourceURI();
- if (null == uri || uri.isEmpty()) {
- return;
- }
- Set<String> newTypeSet;
- newTypeSet = resTypeToResUriMap.get(resType);
- if (null != newTypeSet) {
- newTypeSet.remove(uri);
- }
- if (null == newTypeSet || newTypeSet.isEmpty()) {
- resTypeToResUriMap.remove(resType);
- }