Repository navigation
fix( #2034 ): Used Regex in replaceAll methods - #2035
Conversation
…aptured via Sonar
|
It seems something wrong with the job instance which is not able to download related dependencies/software to execute all actions. |
|
@yasarshaikh, I think in most of these cases replaceAll can be replaced by just replace. See more details here - |
There is some intermittent failure unrelated to this. |
| static final String FIELDS = "owner,followers,tags"; | ||
| public static final List<String> FIELD_LIST = Arrays.asList(FIELDS.replaceAll(" ", "").split(",")); | ||
| public static final List<String> FIELD_LIST = Arrays.asList(FIELDS.replaceAll("\\s", "").split(",")); | ||
|
|
There was a problem hiding this comment.
In this case just replace is sufficient per Sonar Cloud guidelines.
There was a problem hiding this comment.
Let me know if I should change the replaceAll to replace, I can do that it'd be a minor change :)
There was a problem hiding this comment.
That works as well. You can also create a separate issue to do that.
|
Kudos, SonarCloud Quality Gate passed! |
|
Since most of these |








Describe your changes :
Used Regex in replaceAll methods. It was part of #2034.
This issue was captured in Sonar as a code smell. Fixing it would help to make code good.
Type of change :
Checklist:
Reviewers
@sureshms