From b48f6d02d3e46993b3de3cf15af78cf12864a3aa 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 | 2 ++ .../src/main/resources/checkstyle/airbase-checks.xml | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 3379baedd..dc717760b 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,7 @@ Airbase 149 * Remove bval dependency +* Checkstyle updates: + - 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 eb8c158df..da845a13e 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 @@ + + + + + + + +