-
Notifications
You must be signed in to change notification settings - Fork 0
Pr1 #2
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
base: 07f2_old
Are you sure you want to change the base?
Pr1 #2
Conversation
Rename gammascan.json to .gammascan.json
| String count; | ||
| public void process() { | ||
| SecureRandom secureRandom = new SecureRandom(); | ||
| System.runFinalizersOnExit(true); |
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.
I detect that this code is problematic. According to the Bad practice (BAD_PRACTICE), Dm: Method invokes dangerous method runFinalizersOnExit (DM_RUN_FINALIZERS_ON_EXIT).
Never call System.runFinalizersOnExit or Runtime.runFinalizersOnExit for any reason: they are among the most dangerous methods in the Java libraries. -- Joshua Bloch
|
|
||
|
|
||
| public void demo(String name, String surName,String count,String preeti) { | ||
| String surName = surName; |
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.
I detect that this code is problematic. According to the Dodgy code (STYLE), SA: Self assignment of local variable (SA_LOCAL_SELF_ASSIGNMENT).
This method contains a self assignment of a local variable; e.g.
Such assignments are useless, and may indicate a logic error or typo.
No description provided.