mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-24 02:12: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:
parent
f6a9ee2e24
commit
bbd664ad3c
@ -1,8 +1,8 @@
|
|||||||
|
|
||||||
package com.fsck.k9.controller;
|
package com.fsck.k9.controller;
|
||||||
|
|
||||||
import java.io.ByteArrayOutputStream;
|
import java.io.CharArrayWriter;
|
||||||
import java.io.PrintStream;
|
import java.io.PrintWriter;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
@ -2810,8 +2810,8 @@ public class MessagingController implements Runnable
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
CharArrayWriter baos = new CharArrayWriter(t.getStackTrace().length * 10);
|
||||||
PrintStream ps = new PrintStream(baos);
|
PrintWriter ps = new PrintWriter(baos);
|
||||||
t.printStackTrace(ps);
|
t.printStackTrace(ps);
|
||||||
ps.close();
|
ps.close();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user