1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-23 18:02:15 -05:00

Optimization: don't use bytes and related byte/char conversion when we're actually working on string only

This commit is contained in:
Fiouz 2010-09-11 11:20:50 +00:00
parent f6a9ee2e24
commit bbd664ad3c

View File

@ -1,8 +1,8 @@
package com.fsck.k9.controller;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.io.CharArrayWriter;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
@ -2810,8 +2810,8 @@ public class MessagingController implements Runnable
return;
}
ByteArrayOutputStream baos = new ByteArrayOutputStream();
PrintStream ps = new PrintStream(baos);
CharArrayWriter baos = new CharArrayWriter(t.getStackTrace().length * 10);
PrintWriter ps = new PrintWriter(baos);
t.printStackTrace(ps);
ps.close();