Test spotless check - #1960
Conversation
There was a problem hiding this comment.
Code Review
This pull request refactors the Client instantiation in BalanceControlTest.java into a single line. The reviewer noted that this change exceeds the 100-character line limit and recommended using a more concise constructor to improve readability and maintain consistency with the rest of the codebase.
| .apiKey("test") | ||
| .environment(Environment.TEST) | ||
| .liveEndpointUrlPrefix("myCompany")); | ||
| Client client = new Client(new Config().apiKey("test").environment(Environment.TEST).liveEndpointUrlPrefix("myCompany")); |
There was a problem hiding this comment.
The single-line instantiation of Client and Config is difficult to read and exceeds the standard 100-character line limit (this line is 114 characters). It is also inconsistent with the formatting used elsewhere in this file (e.g., lines 38-43). Using the more concise Client constructor is recommended to improve readability and maintain consistency.
| Client client = new Client(new Config().apiKey("test").environment(Environment.TEST).liveEndpointUrlPrefix("myCompany")); | |
| Client client = new Client("test", Environment.TEST, "myCompany"); |
References
- The Google Java Style Guide recommends a column limit of 100 characters to ensure code readability. (link)
|
Closing Pull Request - this was just for testing purposes. |
Description
Tested scenarios
Fixed issue: