Skip to content

Commit f6e24d6

Browse files
gcondraAndroid (Google) Code Review
authored andcommitted
Merge "Remove pointless exception supression." into jb-mr1-dev
2 parents f9fac2c + 350bb15 commit f6e24d6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

services/java/com/android/server/updates/ConfigUpdateInstallReceiver.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ private boolean verifySignature(String content, int version, String requiredPrev
223223
return signer.verify(Base64.decode(signature.getBytes(), Base64.DEFAULT));
224224
}
225225

226-
private void writeUpdate(File dir, File file, String content) {
226+
private void writeUpdate(File dir, File file, String content) throws IOException {
227227
FileOutputStream out = null;
228228
File tmp = null;
229229
try {
@@ -247,8 +247,6 @@ private void writeUpdate(File dir, File file, String content) {
247247
if (!tmp.renameTo(file)) {
248248
throw new IOException("Failed to atomically rename " + file.getCanonicalPath());
249249
}
250-
} catch (IOException e) {
251-
Slog.e(TAG, "Failed to write update", e);
252250
} finally {
253251
if (tmp != null) {
254252
tmp.delete();
@@ -257,7 +255,7 @@ private void writeUpdate(File dir, File file, String content) {
257255
}
258256
}
259257

260-
private void install(String content, int version) {
258+
private void install(String content, int version) throws IOException {
261259
writeUpdate(updateDir, updateContent, content);
262260
writeUpdate(updateDir, updateVersion, Long.toString(version));
263261
}

0 commit comments

Comments
 (0)