New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: catch actual exception in java doc comment #312
Changes from 1 commit
47dcb7f
16cf135
bed6047
7db165e
f320ab8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -728,7 +728,7 @@ public ReadChannel reader(BlobSourceOption... options) { | |
* try (WriteChannel writer = blob.writer()) { | ||
* try { | ||
* writer.write(ByteBuffer.wrap(content, 0, content.length)); | ||
* } catch (Exception ex) { | ||
* } catch (IOException ex) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The end There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
* // handle exception | ||
* } | ||
* } | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2505,7 +2505,7 @@ Blob create( | |
* try (WriteChannel writer = storage.writer(blobInfo)) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. don't nest the try block, one is enough There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
* try { | ||
* writer.write(ByteBuffer.wrap(content, 0, content.length)); | ||
* } catch (Exception ex) { | ||
* } catch (IOException ex) { | ||
* // handle exception | ||
* } | ||
* } | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need for the nested try block, one will do here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done