private final File dir;
private final Map<String, Object> objects = new HashMap<>();
- class ConstrainedOIS extends ObjectInputStream {
+ static class ConstrainedOIS extends ObjectInputStream {
ConstrainedOIS(InputStream in) throws IOException {
super(in);
}
Log.e(getClass().getSimpleName(), "Deserialization failed: " + src, e);
try {
if (in != null) in.close();
- } catch (IOException e2) {}
+ } catch (IOException ignored) {}
return null;
}
objects.put(filename, object);
}
try {
if (out != null) out.close();
- } catch (IOException e) {}
+ } catch (IOException ignored) {}
}
private PersistentObjectCache(final Context context) {