Skip to content

#61: Use Try-With-Resources without catching clause#61

Merged
bednar merged 1 commit intomasterfrom
auto-closable
Oct 1, 2019
Merged

#61: Use Try-With-Resources without catching clause#61
bednar merged 1 commit intomasterfrom
auto-closable

Conversation

@bednar
Copy link
Copy Markdown
Contributor

@bednar bednar commented Oct 1, 2019

Use Try-With-Resources without catching clause:

try (InfluxDBClient client = InfluxDBClientFactory.create(mockServer.url("/").url().toString())){
      ...
}

instead

try (InfluxDBClient client = InfluxDBClientFactory.create(mockServer.url("/").url().toString())){
      ...
} catch (Exception e) {
      ...            
}
  • CHANGELOG.md updated
  • Rebased/mergeable
  • Tests pass
  • Sign CLA (if not already signed)

@bednar bednar added the enhancement New feature or request label Oct 1, 2019
@bednar bednar added this to the 1.1.0 milestone Oct 1, 2019
@bednar bednar self-assigned this Oct 1, 2019
@bednar bednar merged commit 3e6944a into master Oct 1, 2019
@bednar bednar deleted the auto-closable branch October 1, 2019 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant