You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2019/03/14 03:12:12 UTC

[GitHub] [incubator-iotdb] jt2594838 commented on a change in pull request #94: update license

jt2594838 commented on a change in pull request #94: update license
URL: https://github.com/apache/incubator-iotdb/pull/94#discussion_r265406342
 
 

 ##########
 File path: tsfile/src/test/java/org/apache/iotdb/tsfile/write/WriteTest.java
 ##########
 @@ -98,10 +97,12 @@ public void prepare() throws IOException, WriteProcessException {
     if (errorFile.exists()) {
       errorFile.delete();
     }
-    JSONObject emptySchema = new JSONObject("{\"delta_type\": \"test_type\",\"properties\": {\n"
+
+    JSONObject emptySchema = JSON.parseObject("{\"delta_type\": \"test_type\",\"properties\": {\n"
         + "\"key1\": \"value1\",\n" + "\"key2\": \"value2\"\n" + "},\"schema\": [],}");
-    measurementArray = new JSONObject(new JSONTokener(new FileReader(new File(schemaFile))))
-        .getJSONArray(JsonFormatConstant.JSON_SCHEMA);
+    InputStream inputStream = new FileInputStream(schemaFile);
 
 Review comment:
   Is the stream closed?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services