Skip to content

[ZEPPELIN-6220] Remove unused constructor in DownloadRequest.class#4970

Merged
Reamer merged 1 commit intoapache:masterfrom
eunhwa99:ZEPPELIN-6220
Jul 16, 2025
Merged

[ZEPPELIN-6220] Remove unused constructor in DownloadRequest.class#4970
Reamer merged 1 commit intoapache:masterfrom
eunhwa99:ZEPPELIN-6220

Conversation

@eunhwa99
Copy link
Copy Markdown
Contributor

@eunhwa99 eunhwa99 commented Jul 15, 2025

What is this PR for?

This PR removes unused overloaded constructors in the DownloadRequest class located at:
zeppelin/zeppelin-test/src/main/java/org/apache/zeppelin/test/DownloadRequest.java.

Specifically, the constructor:

public DownloadRequest(URL url, int retries)

is not used anywhere within the Zeppelin codebase or its test suite. Removing these unused constructors simplifies the class and reduces maintenance complexity, without affecting any functional behavior.

As this constructor was removed, other constructors that were only used by it have also been removed accordingly.

What type of PR is it?

Refactoring

Todos

  • - Verify internal and external usage
  • - Remove unused constructors

What is the Jira issue?

How should this be tested?

  • Strongly recommended: add automated unit tests for any new or changed behavior
  • Outline any manual steps to test the PR here.

Screenshots (if appropriate)

Questions:

  • Does the license files need to update? - no
  • Is there breaking changes for older versions? - no
  • Does this needs documentation? - no

Copy link
Copy Markdown
Member

@ParkGyeongTae ParkGyeongTae left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great cleanup on DownloadRequest. Removing those unused constructors keeps the test utilities lean and easier to maintain.
Could you also fill out the “Questions” section of the PR template? Thanks!

@ParkGyeongTae
Copy link
Copy Markdown
Member

Could you update the Jira issue link in the PR description?

@eunhwa99
Copy link
Copy Markdown
Contributor Author

Could you update the Jira issue link in the PR description?

I updated the link. Thanks for the check!

Copy link
Copy Markdown
Contributor

@Reamer Reamer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
The class is even written entirely by me. I think it's good that you are cleaning this up. The MalformedURLException should be caught in the actual test.

@Reamer Reamer merged commit 573fc4e into apache:master Jul 16, 2025
27 of 30 checks passed
asf-gitbox-commits pushed a commit that referenced this pull request Jul 16, 2025
### What is this PR for?
This PR removes unused overloaded constructors in the DownloadRequest class located at:
zeppelin/zeppelin-test/src/main/java/org/apache/zeppelin/test/DownloadRequest.java.

Specifically, the constructor:

```
public DownloadRequest(URL url, int retries)
```
is not used anywhere within the Zeppelin codebase or its test suite. Removing these unused constructors simplifies the class and reduces maintenance complexity, without affecting any functional behavior.

As this constructor was removed, other constructors that were only used by it have also been removed accordingly.

### What type of PR is it?
Refactoring

### Todos
* [x] - Verify internal and external usage
* [x] - Remove unused constructors

### What is the Jira issue?
* Open an issue on Jira. [ZEPPELIN-6220](https://issues.apache.org/jira/browse/ZEPPELIN-6220)

### How should this be tested?
* Strongly recommended: add automated unit tests for any new or changed behavior
* Outline any manual steps to test the PR here.

### Screenshots (if appropriate)

### Questions:
* Does the license files need to update? - no
* Is there breaking changes for older versions? - no
* Does this needs documentation? - no

Closes #4970 from eunhwa99/ZEPPELIN-6220.

Signed-off-by: Philipp Dallig <[email protected]>
(cherry picked from commit 573fc4e)
Signed-off-by: Philipp Dallig <[email protected]>
@Reamer
Copy link
Copy Markdown
Contributor

Reamer commented Jul 16, 2025

Merged into master and branch-0.12

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.

3 participants