From 790b632a0c5a90e29b6a4dd3963f32196485c210 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 | 4 ++++ .../src/main/resources/checkstyle/airbase-checks.xml | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 6fd406cd9..b841235ce 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,7 @@ +Airbase 155 +* Checkstyle updates: + - Require exactly one space between array type and array initializer. + Airbase 154 * Fix javadoc building when `air.compiler.enable-preview` is set diff --git a/airbase-policy/src/main/resources/checkstyle/airbase-checks.xml b/airbase-policy/src/main/resources/checkstyle/airbase-checks.xml index eb8c158df..8e6281cab 100644 --- a/airbase-policy/src/main/resources/checkstyle/airbase-checks.xml +++ b/airbase-policy/src/main/resources/checkstyle/airbase-checks.xml @@ -256,6 +256,14 @@ + + + + + + + +