Removes a cached object from the cache, and clears a name from the error names set. @param name the name of the object to remove. @return true if the file was removed from cache, false if it was never cached.
(String name)
| 374 | * @return true if the file was removed from cache, false if it was never cached. |
| 375 | */ |
| 376 | public boolean remove(String name) |
| 377 | { |
| 378 | synchronized (errorNames) |
| 379 | { |
| 380 | errorNames.remove(name); |
| 381 | } |
| 382 | synchronized (nameMap) |
| 383 | { |
| 384 | return nameMap.remove(name) != null; |
| 385 | } |
| 386 | } |
| 387 | |
| 388 | /** |
| 389 | * Removes a set of cached objects from the cache, and clears the provided names from the error names set. |
no outgoing calls
no test coverage detected