Skip to content

Conversation

@vibhatha
Copy link
Contributor

@vibhatha vibhatha commented Jan 9, 2024

Rationale for this change

This PR fixes the warnings generated by the errorprone library.

What changes are included in this PR?

Updating the code to remove warnings.

Covered modules

  • algorithm
  • compression
  • flight
  • tools
  • vector

Are these changes tested?

Tested by existing test cases.

Are there any user-facing changes?

No

@vibhatha
Copy link
Contributor Author

@github-actions crossbow submit java

@github-actions
Copy link

Revision: 4d87301271b4e1d82717d6029e504565de773cde

Submitted crossbow builds: ursacomputing/crossbow @ actions-4547e26b60

Task Status
java-jars GitHub Actions
verify-rc-source-java-linux-almalinux-8-amd64 GitHub Actions
verify-rc-source-java-linux-conda-latest-amd64 GitHub Actions
verify-rc-source-java-linux-ubuntu-20.04-amd64 GitHub Actions
verify-rc-source-java-linux-ubuntu-22.04-amd64 GitHub Actions
verify-rc-source-java-macos-amd64 GitHub Actions

@vibhatha
Copy link
Contributor Author

@github-actions crossbow submit java

@github-actions
Copy link

Revision: 85c5f9fcaeb68345f338673b27213e97c988d68f

Submitted crossbow builds: ursacomputing/crossbow @ actions-f76ced9dc5

Task Status
java-jars GitHub Actions
verify-rc-source-java-linux-almalinux-8-amd64 GitHub Actions
verify-rc-source-java-linux-conda-latest-amd64 GitHub Actions
verify-rc-source-java-linux-ubuntu-20.04-amd64 GitHub Actions
verify-rc-source-java-linux-ubuntu-22.04-amd64 GitHub Actions
verify-rc-source-java-macos-amd64 GitHub Actions

@vibhatha
Copy link
Contributor Author

@github-actions crossbow submit java

@github-actions
Copy link

Revision: 5226173f1adaf9cb8959b6619360bc8d69456fc0

Submitted crossbow builds: ursacomputing/crossbow @ actions-04546ec6e4

Task Status
java-jars GitHub Actions
verify-rc-source-java-linux-almalinux-8-amd64 GitHub Actions
verify-rc-source-java-linux-conda-latest-amd64 GitHub Actions
verify-rc-source-java-linux-ubuntu-20.04-amd64 GitHub Actions
verify-rc-source-java-linux-ubuntu-22.04-amd64 GitHub Actions
verify-rc-source-java-macos-amd64 GitHub Actions

@vibhatha
Copy link
Contributor Author

@github-actions crossbow submit java

@github-actions
Copy link

Revision: c09a3d81681f24841016e1037415ed05b1b2f339

Submitted crossbow builds: ursacomputing/crossbow @ actions-053fa63473

Task Status
java-jars GitHub Actions
verify-rc-source-java-linux-almalinux-8-amd64 GitHub Actions
verify-rc-source-java-linux-conda-latest-amd64 GitHub Actions
verify-rc-source-java-linux-ubuntu-20.04-amd64 GitHub Actions
verify-rc-source-java-linux-ubuntu-22.04-amd64 GitHub Actions
verify-rc-source-java-macos-amd64 GitHub Actions

@vibhatha
Copy link
Contributor Author

@github-actions crossbow submit java

@github-actions
Copy link

Revision: 8499caf1a98954aae7b8d2b4b49730cfd2d4c8e3

Submitted crossbow builds: ursacomputing/crossbow @ actions-7a3a344533

Task Status
java-jars GitHub Actions
verify-rc-source-java-linux-almalinux-8-amd64 GitHub Actions
verify-rc-source-java-linux-conda-latest-amd64 GitHub Actions
verify-rc-source-java-linux-ubuntu-20.04-amd64 GitHub Actions
verify-rc-source-java-linux-ubuntu-22.04-amd64 GitHub Actions
verify-rc-source-java-macos-amd64 GitHub Actions

@vibhatha
Copy link
Contributor Author

@github-actions crossbow submit java

@github-actions
Copy link

Revision: 57445c680643297cb977b5d687df0d7370ed01c5

Submitted crossbow builds: ursacomputing/crossbow @ actions-bde21cc636

Task Status
java-jars GitHub Actions
verify-rc-source-java-linux-almalinux-8-amd64 GitHub Actions
verify-rc-source-java-linux-conda-latest-amd64 GitHub Actions
verify-rc-source-java-linux-ubuntu-20.04-amd64 GitHub Actions
verify-rc-source-java-linux-ubuntu-22.04-amd64 GitHub Actions
verify-rc-source-java-macos-amd64 GitHub Actions

@vibhatha
Copy link
Contributor Author

@github-actions crossbow submit java

@github-actions
Copy link

Revision: 70e9efaf083d4e34bdd5911a2215600ade899e57

Submitted crossbow builds: ursacomputing/crossbow @ actions-076ac97685

Task Status
java-jars GitHub Actions
verify-rc-source-java-linux-almalinux-8-amd64 GitHub Actions
verify-rc-source-java-linux-conda-latest-amd64 GitHub Actions
verify-rc-source-java-linux-ubuntu-20.04-amd64 GitHub Actions
verify-rc-source-java-linux-ubuntu-22.04-amd64 GitHub Actions
verify-rc-source-java-macos-amd64 GitHub Actions

@vibhatha
Copy link
Contributor Author

@github-actions crossbow submit java

@github-actions
Copy link

Only contributors can submit requests to this bot. Please ask someone from the community for help with getting the first commit in.
The Archery job run can be found at: https://github.com/apache/arrow/actions/runs/7552386532

@vibhatha
Copy link
Contributor Author

Since this PR is already too long, I will be creating a follow up PR to fix the warnings in the following modules

  1. adapter
  2. c
  3. dataset
  4. format
  5. gandiva
  6. maven
  7. memory
  8. performance

Will be addressed here: #39649

@vibhatha vibhatha marked this pull request as ready for review January 17, 2024 07:56
@vibhatha vibhatha requested a review from lidavidm as a code owner January 17, 2024 07:56
@lidavidm
Copy link
Member

At the end of this we should also be making warnings into errors so that these don't come back up.

@vibhatha
Copy link
Contributor Author

Agreed @lidavidm. Probably need to complete the follow up PR to do that. Also what would be the best way to fail builds with warnings?

@jorisvandenbossche
Copy link
Member

@github-actions crossbow submit java

@github-actions
Copy link

Revision: 56a95fdba45551a6aa9aa5c278f5312f36e74ce4

Submitted crossbow builds: ursacomputing/crossbow @ actions-e636476297

Task Status
java-jars GitHub Actions
verify-rc-source-java-linux-almalinux-8-amd64 GitHub Actions
verify-rc-source-java-linux-conda-latest-amd64 GitHub Actions
verify-rc-source-java-linux-ubuntu-20.04-amd64 GitHub Actions
verify-rc-source-java-linux-ubuntu-22.04-amd64 GitHub Actions
verify-rc-source-java-macos-amd64 GitHub Actions

@lidavidm
Copy link
Member

Agreed @lidavidm. Probably need to complete the follow up PR to do that. Also what would be the best way to fail builds with warnings?

Pass -Werror to javac in maven

@github-actions github-actions bot removed the awaiting review Awaiting review label Jan 17, 2024
@github-actions github-actions bot added awaiting change review Awaiting change review and removed awaiting changes Awaiting changes labels Jan 22, 2024
@vibhatha
Copy link
Contributor Author

@lidavidm addressed the reviews, but there are some open questions. Appreciate your feedback.

@vibhatha
Copy link
Contributor Author

@github-actions crossbow submit java

@github-actions
Copy link

Revision: 190e6df

Submitted crossbow builds: ursacomputing/crossbow @ actions-142142f8e6

Task Status
java-jars GitHub Actions
verify-rc-source-java-linux-almalinux-8-amd64 GitHub Actions
verify-rc-source-java-linux-conda-latest-amd64 GitHub Actions
verify-rc-source-java-linux-ubuntu-20.04-amd64 GitHub Actions
verify-rc-source-java-linux-ubuntu-22.04-amd64 GitHub Actions
verify-rc-source-java-macos-amd64 GitHub Actions

@github-actions github-actions bot added awaiting changes Awaiting changes and removed awaiting change review Awaiting change review labels Jan 22, 2024
@lidavidm
Copy link
Member

The only thing I have is to fix the exception message

@github-actions github-actions bot added awaiting change review Awaiting change review and removed awaiting changes Awaiting changes labels Jan 23, 2024
@vibhatha
Copy link
Contributor Author

@github-actions crossbow submit java

@github-actions
Copy link

Revision: c1cb671

Submitted crossbow builds: ursacomputing/crossbow @ actions-a48ea38acd

Task Status
java-jars GitHub Actions
verify-rc-source-java-linux-almalinux-8-amd64 GitHub Actions
verify-rc-source-java-linux-conda-latest-amd64 GitHub Actions
verify-rc-source-java-linux-ubuntu-20.04-amd64 GitHub Actions
verify-rc-source-java-linux-ubuntu-22.04-amd64 GitHub Actions
verify-rc-source-java-macos-amd64 GitHub Actions

@github-actions github-actions bot added awaiting merge Awaiting merge and removed awaiting change review Awaiting change review labels Jan 23, 2024
@lidavidm lidavidm merged commit ae9c0a9 into apache:main Jan 23, 2024
@lidavidm lidavidm removed the awaiting merge Awaiting merge label Jan 23, 2024
@conbench-apache-arrow
Copy link

After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit ae9c0a9.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details.

dgreiss pushed a commit to dgreiss/arrow that referenced this pull request Feb 19, 2024
…gs (apache#39529)

### Rationale for this change

This PR fixes the warnings generated by the errorprone library. 

### What changes are included in this PR?

Updating the code to remove warnings. 

Covered modules
- [x] algorithm
- [x] compression
- [x] flight
- [x] tools
- [x] vector 

### Are these changes tested?

Tested by existing test cases.

### Are there any user-facing changes?

No
* Closes: apache#39330

Lead-authored-by: Vibhatha Lakmal Abeykoon <vibhatha@gmail.com>
Co-authored-by: vibhatha <vibhatha@gmail.com>
Signed-off-by: David Li <li.davidm96@gmail.com>
lidavidm pushed a commit that referenced this pull request Mar 20, 2024
### What changes are included in this PR?

Removing static imports of UTF_8. This has been identified as a minor enhancement as documented here: #39752 and discussed in a review [here](#39529 (comment)). 

### Are these changes tested?

Tested by existing test cases. 

### Are there any user-facing changes?

No
* GitHub Issue: #39752

Authored-by: Vibhatha Abeykoon <vibhatha@gmail.com>
Signed-off-by: David Li <li.davidm96@gmail.com>
kou pushed a commit to apache/arrow-java that referenced this pull request Nov 25, 2024
### What changes are included in this PR?

Removing static imports of UTF_8. This has been identified as a minor enhancement as documented here: apache/arrow#39752 and discussed in a review [here](apache/arrow#39529 (comment)). 

### Are these changes tested?

Tested by existing test cases. 

### Are there any user-facing changes?

No
* GitHub Issue: #39752

Authored-by: Vibhatha Abeykoon <vibhatha@gmail.com>
Signed-off-by: David Li <li.davidm96@gmail.com>
jmao-denver pushed a commit to jmao-denver/dh-flight-sql-jdbc that referenced this pull request Aug 5, 2025
### What changes are included in this PR?

Removing static imports of UTF_8. This has been identified as a minor enhancement as documented here: apache/arrow#39752 and discussed in a review [here](apache/arrow#39529 (comment)). 

### Are these changes tested?

Tested by existing test cases. 

### Are there any user-facing changes?

No
* GitHub Issue: #39752

Authored-by: Vibhatha Abeykoon <vibhatha@gmail.com>
Signed-off-by: David Li <li.davidm96@gmail.com>
pribor pushed a commit to GlobalWebIndex/arrow that referenced this pull request Oct 24, 2025
…gs (apache#39529)

### Rationale for this change

This PR fixes the warnings generated by the errorprone library. 

### What changes are included in this PR?

Updating the code to remove warnings. 

Covered modules
- [x] algorithm
- [x] compression
- [x] flight
- [x] tools
- [x] vector 

### Are these changes tested?

Tested by existing test cases.

### Are there any user-facing changes?

No
* Closes: apache#39330

Lead-authored-by: Vibhatha Lakmal Abeykoon <vibhatha@gmail.com>
Co-authored-by: vibhatha <vibhatha@gmail.com>
Signed-off-by: David Li <li.davidm96@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Java][CI] Fix or suppress spurious errorprone warnings

3 participants