Skip to content

Commit

Permalink
handle release as part of try-with-resources close
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham1g5 committed Apr 10, 2024
1 parent ca1b6f4 commit 3fd1c97
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/main/java/org/commcare/cases/entity/AsyncEntity.java
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,6 @@ public String getSortField(int i) {
}
} catch (IOException e) {
Logger.exception("Error while getting sort field", e);
} finally {
mEntityStorageCache.releaseCache();
}
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
public interface EntityStorageCache {
Closeable lockCache();

void releaseCache();

String getCacheKey(String detailId, String detailFieldIndex);

String retrieveCacheValue(String cacheIndex, String cacheKey);
Expand Down

0 comments on commit 3fd1c97

Please sign in to comment.