Commit f3f230a37849aea05295fce0a0e2650a35abb4ee
1 parent
e5682fa8
update...
Showing
1 changed file
with
2 additions
and
2 deletions
src/main/java/com/bsth/data/gpsdata/thread/GpsDataLoaderThread.java
| ... | ... | @@ -97,7 +97,7 @@ public class GpsDataLoaderThread extends Thread { |
| 97 | 97 | HttpEntity entity = response.getEntity(); |
| 98 | 98 | if (null != entity) { |
| 99 | 99 | BufferedReader br = new BufferedReader(new InputStreamReader(entity.getContent())); |
| 100 | - StringBuffer stringBuffer = new StringBuffer(); | |
| 100 | + StringBuilder stringBuffer = new StringBuilder(); | |
| 101 | 101 | String str = ""; |
| 102 | 102 | while ((str = br.readLine()) != null) |
| 103 | 103 | stringBuffer.append(str); |
| ... | ... | @@ -167,7 +167,7 @@ public class GpsDataLoaderThread extends Thread { |
| 167 | 167 | HttpEntity entity = response.getEntity(); |
| 168 | 168 | if (null != entity) { |
| 169 | 169 | BufferedReader br = new BufferedReader(new InputStreamReader(entity.getContent())); |
| 170 | - StringBuffer stringBuffer = new StringBuffer(); | |
| 170 | + StringBuilder stringBuffer = new StringBuilder(); | |
| 171 | 171 | String str = ""; |
| 172 | 172 | while ((str = br.readLine()) != null) |
| 173 | 173 | stringBuffer.append(str); | ... | ... |