Skip to content

Commit

Permalink
CBL-773: Re-implement close and delete
Browse files Browse the repository at this point in the history
  • Loading branch information
bmeike committed May 19, 2020
1 parent 1a5566d commit 5d36c4a
Show file tree
Hide file tree
Showing 20 changed files with 446 additions and 409 deletions.
Expand Up @@ -105,10 +105,6 @@ public static void init(

public static boolean isDebugging() { return debugging; }

/**
* This method is not part of the public API.
* It will be removed in a future release.
*/
public static ExecutionService getExecutionService() {
ExecutionService executionService = EXECUTION_SERVICE.get();
if (executionService == null) {
Expand Down Expand Up @@ -188,7 +184,7 @@ public static Map<String, String> loadErrorMessages(@NonNull Context ctxt) {
try (InputStream is = ctxt.getResources().openRawResource(R.raw.errors)) {
final JSONObject root = new JSONObject(new Scanner(is, "UTF-8").useDelimiter("\\A").next());
final Iterable<String> errors = root::keys;
for (String error : errors) { errorMessages.put(error, root.getString(error)); }
for (String error: errors) { errorMessages.put(error, root.getString(error)); }
}
catch (IOException | JSONException e) {
Log.e(LogDomain.DATABASE, "Failed to load error messages!", e);
Expand Down

0 comments on commit 5d36c4a

Please sign in to comment.