We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Description
Replace getBytes("UTF-8") with getBytes(StandardCharsets.UTF_8)
Use case or motivation behind the feature request
It doesn't throw when using well defined StandardCharsets -> no need to do try/catch for something that we know is not going to throw
Related issues
Additional context
No: relpBatch.insert(syslogMessage.toRfc5424SyslogMessage().getBytes("UTF-8")); Yes: relpBatch.insert(syslogMessage.toRfc5424SyslogMessage().getBytes(StandardCharsets.UTF_8));
relpBatch.insert(syslogMessage.toRfc5424SyslogMessage().getBytes("UTF-8"));
relpBatch.insert(syslogMessage.toRfc5424SyslogMessage().getBytes(StandardCharsets.UTF_8));
The text was updated successfully, but these errors were encountered:
I think this should be done together with #37
Sorry, something went wrong.
No branches or pull requests
Description
Replace getBytes("UTF-8") with getBytes(StandardCharsets.UTF_8)
Use case or motivation behind the feature request
It doesn't throw when using well defined StandardCharsets -> no need to do try/catch for something that we know is not going to throw
Related issues
Additional context
No:
relpBatch.insert(syslogMessage.toRfc5424SyslogMessage().getBytes("UTF-8"));
Yes:
relpBatch.insert(syslogMessage.toRfc5424SyslogMessage().getBytes(StandardCharsets.UTF_8));
The text was updated successfully, but these errors were encountered: