Commit 44091652f101a3ca43bfb2c0c6d6c65a686cbb28

Authored by 潘钊
1 parent 1350f044

update...

src/main/java/com/bsth/data/gpsdata/thread/GpsDataLoaderThread.java
... ... @@ -99,7 +99,7 @@ public class GpsDataLoaderThread extends Thread {
99 99 if (null != entity) {
100 100 BufferedReader br = new BufferedReader(new InputStreamReader(entity.getContent()));
101 101 StringBuilder stringBuffer = new StringBuilder();
102   - String str = "";
  102 + String str;
103 103 while ((str = br.readLine()) != null)
104 104 stringBuffer.append(str);
105 105  
... ... @@ -177,7 +177,7 @@ public class GpsDataLoaderThread extends Thread {
177 177 * 从客户端内存获取GPS数据
178 178 */
179 179 public void load() throws Exception {
180   - List<GpsEntity> list = null;
  180 + List<GpsEntity> list;
181 181 CloseableHttpClient httpClient = null;
182 182 CloseableHttpResponse response = null;
183 183  
... ... @@ -197,7 +197,7 @@ public class GpsDataLoaderThread extends Thread {
197 197 if (null != entity) {
198 198 BufferedReader br = new BufferedReader(new InputStreamReader(entity.getContent()));
199 199 StringBuilder stringBuffer = new StringBuilder();
200   - String str = "";
  200 + String str;
201 201 while ((str = br.readLine()) != null)
202 202 stringBuffer.append(str);
203 203  
... ...