Skip to content

Conversation

@swnck
Copy link
Owner

@swnck swnck commented May 17, 2025

This pull request refactors URL handling in the AbstractRequest class and updates its usage in the JxRequestTest unit test. The changes aim to streamline the API and improve code clarity.

Refactoring of URL handling:

  • AbstractRequest.java: Replaced direct assignment of the url field with the setUrl method in the constructor to enforce consistent URL handling.

Updates to unit tests:

  • JxRequestTest.java: Simplified the GetRequest instantiation by introducing a new JxRequest.get(String url) method, removing the need for a separate setUrl call. Additionally, removed an unnecessary System.out.println statement from the test.

@swnck swnck merged commit b8a943b into master May 17, 2025
2 checks passed
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.

2 participants