Skip to content
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

The return string from String.replaceAll() is not being used #34

Closed
scuniff opened this issue Mar 8, 2023 · 0 comments
Closed

The return string from String.replaceAll() is not being used #34

scuniff opened this issue Mar 8, 2023 · 0 comments

Comments

@scuniff
Copy link

scuniff commented Mar 8, 2023

The Static Code Analyzer (Spot Bugs) flagged the following as a possible issue.

In SaveSession.java (https://github.com/fiji/3D_Viewer/blob/master/src/main/java/ij3d/SaveSession.java)

The return string from String.replaceAll() is not being used at line 587:

                    name.replaceAll(" ", "_").replaceAll("#", "--");

Should probably be:

                    name = name.replaceAll(" ", "_").replaceAll("#", "--");
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

No branches or pull requests

1 participant