You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the HttpApplicationSettings class, there is a method called accountsRequestUrlFrom that constructs a URL string. The current implementation uses string concatenation to build the URL, which can be error-prone and less efficient. Consider using java.net.URI or java.net.URL classes to construct the URL instead.
In the same accountsRequestUrlFrom method, the code appends the account IDs to the URL by manually constructing a JSON array string. This approach is not recommended as it can lead to formatting errors and potential security vulnerabilities. Instead, consider using a JSON library (e.g., Jackson) to serialize the account IDs into a JSON array.
Similarly, in the storeRequestUrlFrom method, the code manually constructs a JSON array string for request IDs and imp IDs. Again, this approach should be replaced with a proper JSON serialization library.
The joinIds method in the HttpApplicationSettings class uses String.join to concatenate the IDs with a comma separator. However, according to the JSON specification, the IDs should be separated by a comma surrounded by double quotes ("%22,%22") when used in a URL parameter. Update the joinIds method to use the correct separator format.
At the end of the HttpApplicationSettings class, there is no newline at the end of the file. It is recommended to add a newline to comply with coding conventions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.