Skip to content

Fix for Useless toString on String#826

Draft
Andrey1994 wants to merge 1 commit intomasterfrom
finding-autofix-2cc9518b
Draft

Fix for Useless toString on String#826
Andrey1994 wants to merge 1 commit intomasterfrom
finding-autofix-2cc9518b

Conversation

@Andrey1994
Copy link
Copy Markdown
Member

To fix this, remove the unnecessary .toString() call from the logging statement in unpack_from_jar.
Best minimal fix (no functional change): replace:

  • file.getAbsolutePath ().toString ()

with:

  • file.getAbsolutePath ()

in java_package/brainflow/src/main/java/brainflow/JarHelper.java at the System.err.println line inside the second try block (around line 27). No imports, helper methods, or additional definitions are required.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
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.

1 participant