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:
[email protected]
With regards,
Apache Git Services