You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@carbondata.apache.org by ravipesala <gi...@git.apache.org> on 2016/11/07 02:40:15 UTC

[GitHub] incubator-carbondata pull request #284: [CARBONDATA-366]Throw error when str...

Github user ravipesala commented on a diff in the pull request:

    https://github.com/apache/incubator-carbondata/pull/284#discussion_r86706791
  
    --- Diff: core/src/main/java/org/apache/carbondata/core/util/CarbonUtil.java ---
    @@ -117,18 +117,27 @@ public static void closeStreams(Closeable... streams) {
         // Added if to avoid NullPointerException in case one stream is being passed as null
         if (null != streams) {
           for (Closeable stream : streams) {
    -        if (null != stream) {
    -          try {
    -            stream.close();
    -          } catch (IOException e) {
    -            LOGGER.error("Error while closing stream" + stream);
    -          }
    +        try {
    +          closeStream(stream);
    +        } catch (IOException e) {
    +          LOGGER.error("Error while closing stream:" + e);
    --- End diff --
    
    But here you are not throwing any error. I don't see much difference from old and new code.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---