From ba4dd24bd533905c5d87b265a976cf9aeac83438 Mon Sep 17 00:00:00 2001 From: Jan Berkel Date: Thu, 11 Dec 2014 23:32:38 +0000 Subject: [PATCH] Package visibility --- src/com/fsck/k9/activity/MessageCompose.java | 2 +- .../fsck/k9/mail/store/local/AttachmentMessageBodyUtil.java | 4 ++-- src/com/fsck/k9/mail/store/local/BinaryAttachmentBody.java | 4 ++-- src/com/fsck/k9/mail/store/local/LocalAttachmentBody.java | 2 +- src/com/fsck/k9/mail/store/local/LocalAttachmentBodyPart.java | 2 +- .../fsck/k9/mail/store/local/LocalAttachmentMessageBody.java | 4 ++-- src/com/fsck/k9/mail/store/local/LocalFolder.java | 2 +- src/com/fsck/k9/mail/store/local/LocalTextBody.java | 4 ++-- src/com/fsck/k9/mail/store/local/TempFileBody.java | 2 +- src/com/fsck/k9/mail/store/local/TempFileMessageBody.java | 2 +- 10 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/com/fsck/k9/activity/MessageCompose.java b/src/com/fsck/k9/activity/MessageCompose.java index ac09a31c4..141399bcc 100644 --- a/src/com/fsck/k9/activity/MessageCompose.java +++ b/src/com/fsck/k9/activity/MessageCompose.java @@ -2624,7 +2624,7 @@ public class MessageCompose extends K9Activity implements OnClickListener, String name = MimeUtility.getHeaderParameter(contentType, "name"); if (name != null) { Body body = part.getBody(); - if (body != null && body instanceof LocalAttachmentBody) { + if (body instanceof LocalAttachmentBody) { final Uri uri = ((LocalAttachmentBody) body).getContentUri(); mHandler.post(new Runnable() { @Override diff --git a/src/com/fsck/k9/mail/store/local/AttachmentMessageBodyUtil.java b/src/com/fsck/k9/mail/store/local/AttachmentMessageBodyUtil.java index 61cb8456a..a1f4d5b3b 100644 --- a/src/com/fsck/k9/mail/store/local/AttachmentMessageBodyUtil.java +++ b/src/com/fsck/k9/mail/store/local/AttachmentMessageBodyUtil.java @@ -10,7 +10,7 @@ import org.apache.james.mime4j.util.MimeUtil; import com.fsck.k9.mail.MessagingException; import com.fsck.k9.mail.internet.MimeMessage; -public class AttachmentMessageBodyUtil { +class AttachmentMessageBodyUtil { public static void writeTo(BinaryAttachmentBody body, OutputStream out) throws IOException, MessagingException { InputStream in = body.getInputStream(); @@ -31,4 +31,4 @@ public class AttachmentMessageBodyUtil { in.close(); } } -} \ No newline at end of file +} diff --git a/src/com/fsck/k9/mail/store/local/BinaryAttachmentBody.java b/src/com/fsck/k9/mail/store/local/BinaryAttachmentBody.java index 27eeb243e..8efcf8992 100644 --- a/src/com/fsck/k9/mail/store/local/BinaryAttachmentBody.java +++ b/src/com/fsck/k9/mail/store/local/BinaryAttachmentBody.java @@ -16,7 +16,7 @@ import com.fsck.k9.mail.filter.Base64OutputStream; * Superclass for attachments that contain binary data. * The source for the data differs for the subclasses. */ -public abstract class BinaryAttachmentBody implements Body { +abstract class BinaryAttachmentBody implements Body { protected String mEncoding; @Override @@ -55,4 +55,4 @@ public abstract class BinaryAttachmentBody implements Body { public String getEncoding() { return mEncoding; } -} \ No newline at end of file +} diff --git a/src/com/fsck/k9/mail/store/local/LocalAttachmentBody.java b/src/com/fsck/k9/mail/store/local/LocalAttachmentBody.java index faea07a6c..7efdf949c 100644 --- a/src/com/fsck/k9/mail/store/local/LocalAttachmentBody.java +++ b/src/com/fsck/k9/mail/store/local/LocalAttachmentBody.java @@ -37,4 +37,4 @@ public class LocalAttachmentBody extends BinaryAttachmentBody { public Uri getContentUri() { return mUri; } -} \ No newline at end of file +} diff --git a/src/com/fsck/k9/mail/store/local/LocalAttachmentBodyPart.java b/src/com/fsck/k9/mail/store/local/LocalAttachmentBodyPart.java index 9fcdf71b3..e72d3b493 100644 --- a/src/com/fsck/k9/mail/store/local/LocalAttachmentBodyPart.java +++ b/src/com/fsck/k9/mail/store/local/LocalAttachmentBodyPart.java @@ -28,4 +28,4 @@ public class LocalAttachmentBodyPart extends MimeBodyPart { public String toString() { return "" + mAttachmentId; } -} \ No newline at end of file +} diff --git a/src/com/fsck/k9/mail/store/local/LocalAttachmentMessageBody.java b/src/com/fsck/k9/mail/store/local/LocalAttachmentMessageBody.java index 5c451cf15..d953bfc73 100644 --- a/src/com/fsck/k9/mail/store/local/LocalAttachmentMessageBody.java +++ b/src/com/fsck/k9/mail/store/local/LocalAttachmentMessageBody.java @@ -15,7 +15,7 @@ import com.fsck.k9.mail.MessagingException; * A {@link LocalAttachmentBody} extension containing a message/rfc822 type body * */ -public class LocalAttachmentMessageBody extends LocalAttachmentBody implements CompositeBody { +class LocalAttachmentMessageBody extends LocalAttachmentBody implements CompositeBody { public LocalAttachmentMessageBody(Uri uri, Application application) { super(uri, application); @@ -46,4 +46,4 @@ public class LocalAttachmentMessageBody extends LocalAttachmentBody implements C } mEncoding = encoding; } -} \ No newline at end of file +} diff --git a/src/com/fsck/k9/mail/store/local/LocalFolder.java b/src/com/fsck/k9/mail/store/local/LocalFolder.java index bc5895f04..b8bd961b0 100644 --- a/src/com/fsck/k9/mail/store/local/LocalFolder.java +++ b/src/com/fsck/k9/mail/store/local/LocalFolder.java @@ -2196,4 +2196,4 @@ public class LocalFolder extends Folder implements Serializable { throw(MessagingException) e.getCause(); } } -} \ No newline at end of file +} diff --git a/src/com/fsck/k9/mail/store/local/LocalTextBody.java b/src/com/fsck/k9/mail/store/local/LocalTextBody.java index c555cd43c..3d83c6eb9 100644 --- a/src/com/fsck/k9/mail/store/local/LocalTextBody.java +++ b/src/com/fsck/k9/mail/store/local/LocalTextBody.java @@ -2,7 +2,7 @@ package com.fsck.k9.mail.store.local; import com.fsck.k9.mail.internet.TextBody; -public class LocalTextBody extends TextBody { +class LocalTextBody extends TextBody { /** * This is an HTML-ified version of the message for display purposes. */ @@ -17,4 +17,4 @@ public class LocalTextBody extends TextBody { return mBodyForDisplay; } -}//LocalTextBody \ No newline at end of file +}//LocalTextBody diff --git a/src/com/fsck/k9/mail/store/local/TempFileBody.java b/src/com/fsck/k9/mail/store/local/TempFileBody.java index 82720521e..9b7916b5a 100644 --- a/src/com/fsck/k9/mail/store/local/TempFileBody.java +++ b/src/com/fsck/k9/mail/store/local/TempFileBody.java @@ -26,4 +26,4 @@ public class TempFileBody extends BinaryAttachmentBody { return new ByteArrayInputStream(LocalStore.EMPTY_BYTE_ARRAY); } } -} \ No newline at end of file +} diff --git a/src/com/fsck/k9/mail/store/local/TempFileMessageBody.java b/src/com/fsck/k9/mail/store/local/TempFileMessageBody.java index 1fdb03e4b..5cd5e207b 100644 --- a/src/com/fsck/k9/mail/store/local/TempFileMessageBody.java +++ b/src/com/fsck/k9/mail/store/local/TempFileMessageBody.java @@ -37,4 +37,4 @@ public class TempFileMessageBody extends TempFileBody implements CompositeBody { } mEncoding = encoding; } -} \ No newline at end of file +}