From 6cd52c123c14717bdd9c1e48c1d0ec2403be7466 Mon Sep 17 00:00:00 2001 From: cketti Date: Fri, 6 Sep 2013 19:20:48 +0200 Subject: [PATCH] Remove unnecessary type cast --- src/com/fsck/k9/mail/internet/BinaryTempFileBody.java | 2 +- src/com/fsck/k9/mail/store/LocalStore.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/fsck/k9/mail/internet/BinaryTempFileBody.java b/src/com/fsck/k9/mail/internet/BinaryTempFileBody.java index ccdeba468..eab48dbab 100644 --- a/src/com/fsck/k9/mail/internet/BinaryTempFileBody.java +++ b/src/com/fsck/k9/mail/internet/BinaryTempFileBody.java @@ -55,7 +55,7 @@ public class BinaryTempFileBody implements Body { boolean closeStream = false; InputStream in = getInputStream(); if (MimeUtil.isBase64Encoding(mEncoding)) { - out = (OutputStream) new Base64OutputStream(out); + out = new Base64OutputStream(out); closeStream = true; } else if (MimeUtil.isQuotedPrintableEncoded(mEncoding)){ out = new QuotedPrintableOutputStream(out, false); diff --git a/src/com/fsck/k9/mail/store/LocalStore.java b/src/com/fsck/k9/mail/store/LocalStore.java index 42c0309d7..f56a088bc 100644 --- a/src/com/fsck/k9/mail/store/LocalStore.java +++ b/src/com/fsck/k9/mail/store/LocalStore.java @@ -4031,7 +4031,7 @@ public class LocalStore extends Store implements Serializable { boolean closeStream = false; InputStream in = getInputStream(); if (MimeUtil.isBase64Encoding(mEncoding)) { - out = (OutputStream) new Base64OutputStream(out); + out = new Base64OutputStream(out); closeStream = true; } else if (MimeUtil.isQuotedPrintableEncoded(mEncoding)){ out = new QuotedPrintableOutputStream(out, false);