Skip to content

Upgrade Error Prone to 2.12.0#11824

Merged
kokosing merged 4 commits intotrinodb:masterfrom
ksobolew:kudi/error-prone-2.12
Apr 25, 2022
Merged

Upgrade Error Prone to 2.12.0#11824
kokosing merged 4 commits intotrinodb:masterfrom
ksobolew:kudi/error-prone-2.12

Conversation

@ksobolew
Copy link
Contributor

@ksobolew ksobolew commented Apr 6, 2022

Description

Is this change a fix, improvement, new feature, refactoring, or other?

Improvement

Is this a change to the core query engine, a connector, client library, or the SPI interfaces? (be specific)

Static analysis

How would you describe this change to a non-technical end user or system administrator?

Better compile-time checks for bugs.

Related issues, pull requests, and links

Documentation

(x) No documentation is needed.
( ) Sufficient documentation is included in this PR.
( ) Documentation PR is available with #prnumber.
( ) Documentation issue #issuenumber is filed, and can be handled later.

Release notes

(x) No release notes entries required.
( ) Release notes entries required with the following suggested text:

# Section
* Fix some things. ({issue}`issuenumber`)

@cla-bot cla-bot bot added the cla-signed label Apr 6, 2022
@ksobolew ksobolew requested review from findepi and kokosing April 6, 2022 09:26
@ksobolew ksobolew changed the title Upgrade Error Prone to 2.12 Upgrade Error Prone to 2.12.0 Apr 6, 2022
@ksobolew
Copy link
Contributor Author

ksobolew commented Apr 6, 2022

Oh great, I thought this only happens inside my IDE:

Error:  /home/runner/work/trino/trino/core/trino-main/src/main/java/io/trino/operator/TableScanWorkProcessorOperator.java:[202,49] An unhandled exception was thrown by the Error Prone static analysis plugin.
Error:       Please report this at https://github.com/google/error-prone/issues/new and include the following:
Error:    
Error:       error-prone version: 2.12.0
Error:       BugPattern: UnnecessaryLambda

@findepi
Copy link
Member

findepi commented Apr 6, 2022

UnnecessaryLambda is something we ignore (didn't choose to care about).
still, please report this to upstream

@ksobolew
Copy link
Contributor Author

ksobolew commented Apr 6, 2022

google/error-prone#3085

@ksobolew ksobolew force-pushed the kudi/error-prone-2.12 branch from 3cdb779 to 1760559 Compare April 6, 2022 14:14
ksobolew added 4 commits April 8, 2022 16:17
This suppresses an error from Error Prone about comparing boxed
primitived using identity comparison. This is usually a bug, but it
seems that this was intended here, based on the existing suppression.
(Also, `BigDecimal` is not really a boxed primitive.)
`DoubleBraceInitialization` got upgraded to ERROR by default, so we can
remove it from the list of checks upgraded explicitly.

There is a bunch of spurious warnings about unread fields, which are
used in tests in a declarative way. Also, two comparison of `Boolean`
values using identity comparison, which should be OK (`Boolean` is
always interned), but let's make unboxing explicit.
@ksobolew ksobolew force-pushed the kudi/error-prone-2.12 branch from 1760559 to 50af90c Compare April 8, 2022 14:28
@kokosing kokosing merged commit e0b24a1 into trinodb:master Apr 25, 2022
@github-actions github-actions bot added this to the 379 milestone Apr 25, 2022
@ksobolew ksobolew deleted the kudi/error-prone-2.12 branch April 25, 2022 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants