This is an automated email from the ASF dual-hosted git repository.

btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit 72e87d6b7b7bf7f17fa570596f47abd18e83cfc2
Author: Matthieu Baechler <[email protected]>
AuthorDate: Wed Apr 15 23:21:28 2020 +0200

    [Refactoring] fix a typo
---
 .../org/apache/james/mailbox/store/streaming/FullByteContent.java | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git 
a/mailbox/store/src/main/java/org/apache/james/mailbox/store/streaming/FullByteContent.java
 
b/mailbox/store/src/main/java/org/apache/james/mailbox/store/streaming/FullByteContent.java
index 534a357..46b9a2f 100644
--- 
a/mailbox/store/src/main/java/org/apache/james/mailbox/store/streaming/FullByteContent.java
+++ 
b/mailbox/store/src/main/java/org/apache/james/mailbox/store/streaming/FullByteContent.java
@@ -26,7 +26,6 @@ import java.io.SequenceInputStream;
 import java.nio.charset.StandardCharsets;
 import java.util.List;
 
-import org.apache.james.mailbox.exception.MailboxException;
 import org.apache.james.mailbox.model.Content;
 import org.apache.james.mailbox.model.Header;
 
@@ -36,18 +35,17 @@ import org.apache.james.mailbox.model.Header;
  */
 public class FullByteContent implements Content {
 
-
     private final List<Header> headers;
     private final byte[] body;
     private final long size;
     
-    public FullByteContent(byte[] body, List<Header> headers) throws 
MailboxException {
+    public FullByteContent(byte[] body, List<Header> headers) {
         this.headers = headers;
         this.body = body;
-        this.size = caculateSize();
+        this.size = computeSize();
     }
     
-    protected long caculateSize() throws MailboxException {
+    protected long computeSize() {
         long result = body.length;
         result += 2;
         for (Header header : headers) {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to