Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

fix lgtm alerts #219

Merged
merged 1 commit into from
Jan 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,9 @@ public TransportResult send(SentryEvent event) throws IOException {

connection.connect();

try (OutputStream outputStream = connection.getOutputStream()) {
serializer.serialize(event, new OutputStreamWriter(outputStream, UTF_8));
try (OutputStream outputStream = connection.getOutputStream();
OutputStreamWriter outputStreamWriter = new OutputStreamWriter(outputStream, UTF_8)) {
marandaneto marked this conversation as resolved.
Show resolved Hide resolved
serializer.serialize(event, outputStreamWriter);

// need to also close the input stream of the connection
connection.getInputStream().close();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ public interface IBackOffIntervalStrategy {
* @param attempt the number of attempts made so far
* @return the suggested delay in milliseconds
*/
long nextDelayMillis(int attempt);
long nextDelayMillis(long attempt);
}