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/01/29 06:20:39 UTC
[GitHub] MyXOF commented on a change in pull request #35: Fix sonar tianyu
MyXOF commented on a change in pull request #35: Fix sonar tianyu
URL: https://github.com/apache/incubator-iotdb/pull/35#discussion_r251703885
##########
File path: iotdb/src/main/java/org/apache/iotdb/db/exception/builder/ExceptionBuilder.java
##########
@@ -59,24 +59,13 @@ public static final ExceptionBuilder getInstance() {
* @param filePath the path of error information file
*/
public void loadInfo(String filePath) {
- InputStream in = null;
- try {
- in = new BufferedInputStream(new FileInputStream(filePath));
+ try(InputStream in=new BufferedInputStream(new FileInputStream(filePath))){
Review comment:
这里没格式化吧,
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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