Skip to content

Conversation

@Preeti8600
Copy link
Owner

No description provided.

String count;
public void process() {
SecureRandom secureRandom = new SecureRandom();
System.runFinalizersOnExit(true);

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;

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.

Copy link
Owner Author

Quality gate Quality gate: NA

Details

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.

5 participants