Improved code

This commit is contained in:
Luca Frosini 2023-05-10 17:50:40 +02:00
parent e7e251dac8
commit 5aad485d06
1 changed files with 2 additions and 2 deletions

View File

@ -187,12 +187,12 @@ public class ContextCache {
public synchronized Context getContextByUUID(String uuid) throws ResourceRegistryException {
refreshContextsIfNeeded();
return uuidToContext.get(UUID.fromString(uuid));
return getContextByUUID(UUID.fromString(uuid));
}
public synchronized Context getContextByFullName(String contextFullName) throws ResourceRegistryException {
UUID uuid = getUUIDByFullName(contextFullName);
return uuidToContext.get(uuid);
return getContextByUUID(uuid);
}
/**