You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by bl...@apache.org on 2022/08/21 22:19:41 UTC

[iceberg] branch master updated: Build: Enforce LambdaMethodReference check at compile-time (#5529)

This is an automated email from the ASF dual-hosted git repository.

blue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iceberg.git


The following commit(s) were added to refs/heads/master by this push:
     new 73a6c905c4 Build: Enforce LambdaMethodReference check at compile-time (#5529)
73a6c905c4 is described below

commit 73a6c905c46733f1b95f1af42b60fda8ad2b84b7
Author: Christopher Lambert <xn...@gmx.de>
AuthorDate: Mon Aug 22 00:19:35 2022 +0200

    Build: Enforce LambdaMethodReference check at compile-time (#5529)
---
 baseline.gradle | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/baseline.gradle b/baseline.gradle
index 49b936fb5d..cf32b258fc 100644
--- a/baseline.gradle
+++ b/baseline.gradle
@@ -68,6 +68,8 @@ subprojects {
           '-Xep:RawTypes:OFF',
           // subclasses are not equal
           '-Xep:EqualsGetClass:OFF',
+          // prefer method references over lambdas
+          '-Xep:LambdaMethodReference:ERROR',
           // patterns that are allowed
           '-Xep:MissingCasesInEnumSwitch:OFF',
           //Added because it errors out compile, but we need to figure out if we want it