From ebb63fead0fbf84a5d51e09b1b92de4c7ba607e0 Mon Sep 17 00:00:00 2001 From: Piotr Findeisen Date: Wed, 10 Jan 2024 15:42:56 +0100 Subject: [PATCH] Forbid no/abundant whitespace before array initializer Forbid these new int[]{... new int[] {.... --- CHANGES.md | 1 + .../src/main/resources/checkstyle/airbase-checks.xml | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index a423f78e0..8c74a5663 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -2,6 +2,7 @@ Airbase 149 * Remove bval dependency * Checkstyle updates: - Disallow single-line non-empty lambda and method body code blocks. + - Require exactly one space between array type and array initializer. * Plugin updates: - git-commit-id-maven-plugin 7.0.0 (from 6.0.0) - spotbugs-maven-plugins 4.8.1.0 (from 4.7.3.6) diff --git a/airbase-policy/src/main/resources/checkstyle/airbase-checks.xml b/airbase-policy/src/main/resources/checkstyle/airbase-checks.xml index 5b5ae26af..b5ecd08fc 100644 --- a/airbase-policy/src/main/resources/checkstyle/airbase-checks.xml +++ b/airbase-policy/src/main/resources/checkstyle/airbase-checks.xml @@ -272,6 +272,14 @@ + + + + + + + +