aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/cgeo/geocaching/test')
-rw-r--r--tests/src/cgeo/geocaching/test/WhitespaceTest.java2
-rw-r--r--tests/src/cgeo/geocaching/test/mock/MockedCache.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/cgeo/geocaching/test/WhitespaceTest.java b/tests/src/cgeo/geocaching/test/WhitespaceTest.java
index 156f773..d2d21dc 100644
--- a/tests/src/cgeo/geocaching/test/WhitespaceTest.java
+++ b/tests/src/cgeo/geocaching/test/WhitespaceTest.java
@@ -27,7 +27,7 @@ public class WhitespaceTest extends AndroidTestCase {
@Override
protected void setUp() throws Exception {
- final StringBuffer buffer = new StringBuffer(4096);
+ final StringBuilder buffer = new StringBuilder(4096);
final InputStream is = this.getClass().getResourceAsStream("/cgeo/geocaching/test/mock/GC2CJPF.html");
final BufferedReader br = new BufferedReader(new InputStreamReader(is), 4096);
diff --git a/tests/src/cgeo/geocaching/test/mock/MockedCache.java b/tests/src/cgeo/geocaching/test/mock/MockedCache.java
index 4eb60dd..61369ee 100644
--- a/tests/src/cgeo/geocaching/test/mock/MockedCache.java
+++ b/tests/src/cgeo/geocaching/test/mock/MockedCache.java
@@ -59,7 +59,7 @@ public abstract class MockedCache implements ICache {
final InputStream is = MockedCache.class.getResourceAsStream("/cgeo/geocaching/test/mock/" + geocode + ".html");
final BufferedReader br = new BufferedReader(new InputStreamReader(is), 150000);
- final StringBuffer buffer = new StringBuffer();
+ final StringBuilder buffer = new StringBuilder();
String line = null;
while ((line = br.readLine()) != null) {