Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2d7bd606 authored by Billy Lau's avatar Billy Lau Committed by Android (Google) Code Review
Browse files

Merge "PackageUtils: Use try-with block for DigestInputStream." into main

parents 5e789dee c4b10580
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -203,9 +203,8 @@ public final class PackageUtils {
        }

        File f = new File(filePath);
        try {
            DigestInputStream digestInputStream = new DigestInputStream(new FileInputStream(f),
                    messageDigest);
        try (DigestInputStream digestInputStream = new DigestInputStream(new FileInputStream(f),
                messageDigest)) {
            while (digestInputStream.read(fileBuffer) != -1);
        } catch (IOException e) {
            e.printStackTrace();