Skip to content
This repository was archived by the owner on Jan 31, 2022. It is now read-only.

Commit 1b0deb9

Browse files
author
Clément Le Provost
committed
[refact][offline] Remove duplicate method to obtain temporary directory
1 parent f17dd78 commit 1b0deb9

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

algoliasearch/src/offline/java/com/algolia/search/saas/OfflineClient.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,6 @@ public OfflineIndex getOfflineIndex(@NonNull String indexName) {
187187
return rootDataDir;
188188
}
189189

190-
protected File getTemporaryDirectory() {
191-
return context.getCacheDir();
192-
}
193-
194190
/**
195191
* Get the path to the temporary directory used by this client.
196192
*

algoliasearch/src/offline/java/com/algolia/search/saas/OfflineIndex.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,7 @@ private File writeTmpJSONFile(@NonNull Collection<JSONObject> objects) throws Al
10601060
private File writeTempFile(@NonNull String data) throws AlgoliaException {
10611061
try {
10621062
// Create temporary file.
1063-
File tmpDir = client.getTemporaryDirectory();
1063+
File tmpDir = client.getTempDir();
10641064
File tmpFile = File.createTempFile("algolia.", ".json", tmpDir);
10651065

10661066
// Write to file.

0 commit comments

Comments
 (0)