From 0b802a60d9a2d57335359b0b141121210b4d1e14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Tue, 22 Feb 2022 20:29:20 +0100 Subject: [PATCH] Do not apply Javaformat by default * Do not apply javaformat by default This commit removes the invocation of spring-javaformat:apply by default. Doing so makes the validate goal irrelevant as apply is going to reformat the code if necessary. The idea of the plugin is that it should prevent you from pushing something that has formatting violations. Running the build, run the apply goal manually, and amending the commit is the idiomatic way of using this plugin. * Apply formatting --- pom.xml | 1 - .../java/org/springframework/retry/annotation/Backoff.java | 7 ++++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index cb9b440..57f9a3c 100644 --- a/pom.xml +++ b/pom.xml @@ -384,7 +384,6 @@ ${disable.checks} - apply validate diff --git a/src/main/java/org/springframework/retry/annotation/Backoff.java b/src/main/java/org/springframework/retry/annotation/Backoff.java index 74b711a..6f786ee 100644 --- a/src/main/java/org/springframework/retry/annotation/Backoff.java +++ b/src/main/java/org/springframework/retry/annotation/Backoff.java @@ -117,9 +117,10 @@ public @interface Backoff { boolean random() default false; /** - * Evaluates to a value. In the exponential case ({@link #multiplier()} > 0) set this to true to have the - * backoff delays randomized, so that the maximum delay is multiplier times the - * previous delay and the distribution is uniform between the two values. + * Evaluates to a value. In the exponential case ({@link #multiplier()} > 0) set + * this to true to have the backoff delays randomized, so that the maximum delay is + * multiplier times the previous delay and the distribution is uniform between the two + * values. * @return the flag to signal randomization is required (default false) */ String randomExpression() default "";