X Tutup
Skip to content

Added GZIP compression for build context creation#284

Merged
marcuslinke merged 2 commits intomasterfrom
issue-283
Jul 30, 2015
Merged

Added GZIP compression for build context creation#284
marcuslinke merged 2 commits intomasterfrom
issue-283

Conversation

@marcuslinke
Copy link
Copy Markdown
Contributor

No description provided.

@mkuzmin
Copy link
Copy Markdown

mkuzmin commented Jul 29, 2015

This PR is a fix for #283.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think you need somewhere wrap try with resources

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just wrap as

try (TarArchiveOutputStream tos = new TarArchiveOutputStream(new GZIPOutputStream..  ...  )) {
main code
}

and remove finally.close, AFAIR tos may become null and then you will have NPEs, try-with-resources should save you.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Will do so.

marcuslinke added a commit that referenced this pull request Jul 30, 2015
Added GZIP compression for build context creation
@marcuslinke marcuslinke merged commit 742367d into master Jul 30, 2015
@marcuslinke marcuslinke deleted the issue-283 branch August 28, 2015 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

X Tutup